Various updates to test reference files; mostly small changes after 12-bit support.
[dcpomatic.git] / run / tests
index e6cdf4ba84656f4b739b0c54bd3e4d5ff16a6652..b9af0f5e715a45b0839a24aeacf4ddc27cdf515b 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -1,11 +1,15 @@
 #!/bin/bash
+#
+# e.g. --run_tests=foo
 
 export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
 if [ "$1" == "--debug" ]; then
-    gdb --args build/test/unit-tests --catch_system_errors=no
+    shift;
+    gdb --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--valgrind" ]; then
-    valgrind --tool="memcheck" --leak-check=full build/test/unit-tests
+    shift;
+    valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
 else
-    build/test/unit-tests --catch_system_errors=no
+    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"
 fi