Move things round a bit.
[dcpomatic.git] / run / long-tests
diff --git a/run/long-tests b/run/long-tests
new file mode 100755 (executable)
index 0000000..6c29254
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+    gdb --args build/test/long-unit-tests
+elif [ "$1" == "--valgrind" ]; then
+    valgrind --tool="memcheck" --leak-check=full build/test/long-unit-tests
+else
+    build/test/long-unit-tests
+fi