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