From: Carl Hetherington Date: Wed, 6 Nov 2013 20:20:23 +0000 (+0000) Subject: Pass parameters to tests so that we can use --log_level and --run_test etc. X-Git-Tag: v2.0.48~1194 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=b498722efc903900e264ac820bea08b6a99db3c8 Pass parameters to tests so that we can use --log_level and --run_test etc. --- diff --git a/run/tests b/run/tests index e6cdf4ba8..d1317e000 100755 --- a/run/tests +++ b/run/tests @@ -2,10 +2,12 @@ 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 $* fi