Add callgrind to dcpomatic_cli script.
[dcpomatic.git] / run / tests
index b9af0f5e715a45b0839a24aeacf4ddc27cdf515b..49bc63142939caa39b67d4e9c36c8d48e5dc4fff 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -3,13 +3,19 @@
 # e.g. --run_tests=foo
 
 export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
+export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd`
 if [ "$1" == "--debug" ]; then
     shift;
     gdb --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--valgrind" ]; then
     shift;
     valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
+elif [ "$1" == "--callgrind" ]; then
+    shift;
+    valgrind --tool="callgrind" build/test/unit-tests $*
+elif [ "$1" == "--quiet" ]; then
+    shift;
+    build/test/unit-tests --catch_system_errors=no $*
 else
-    build/test/unit-tests --catch_system_errors=no $* 3>&1 1>&2 2>&3 | grep -v "No accelerated colorspace conversion" | grep -v "full chroma interpolation"
+    build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*
 fi
-