Missing library from test link list.
[dcpomatic.git] / run / tests
index d9815a449ae619ba6a55678584599908b2202ac3..13aa1f6e6ffdde09bfbc407a06b90262dd21ab7d 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -9,17 +9,25 @@ if [ "$1" == "--debug" ]; then
     gdb --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--backtrace" ]; then
     shift;
     gdb --args build/test/unit-tests --catch_system_errors=no $*
 elif [ "$1" == "--backtrace" ]; then
     shift;
-    gdb -batch -ex "run" -ex "thread apply all bt" --args build/test/unit-tests --catch_system_errors=no $*
+    gdb -batch -ex "run" -ex "thread apply all bt" -return-child-result --args build/test/unit-tests --catch_system_errors=yes $*
 elif [ "$1" == "--valgrind" ]; then
     shift;
 elif [ "$1" == "--valgrind" ]; then
     shift;
-    valgrind --tool="memcheck" --leak-check=full build/test/unit-tests $*
+#    valgrind --tool="memcheck" --vgdb=yes --vgdb-error=0 build/test/unit-tests $*
+    valgrind --tool="memcheck" --suppressions=suppressions 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 $*
 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 $*
+elif [ "$1" == "--drd" ]; then
+    shift;
+    valgrind --tool="drd" build/test/unit-tests $*
+elif [ "$1" == "--helgrind" ]; then
+    shift;
+    valgrind --tool="helgrind" build/test/unit-tests $*
 else
 else
+    ulimit -c unlimited
     build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*
 #    build/test/unit-tests --catch_system_errors=no $*
 fi
     build/test/unit-tests --catch_system_errors=no --log_level=test_suite $*
 #    build/test/unit-tests --catch_system_errors=no $*
 fi