Fix numerous bugs in subtitle XML generation.
[libdcp.git] / run / test / subs_in_out
diff --git a/run/test/subs_in_out b/run/test/subs_in_out
new file mode 100755 (executable)
index 0000000..cd464da
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src
+if [ "$1" == "--debug" ]; then
+    shift
+    gdb --args build/test/subs_in_out "$@"
+elif [ "$1" == "--valgrind" ]; then
+    shift
+    valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/test/subs_in_out "$@"
+else
+    build/test/subs_in_out "$@"
+fi