summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-06 20:20:23 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-06 20:20:23 +0000
commitb498722efc903900e264ac820bea08b6a99db3c8 (patch)
tree4b97499537e10e1af71a830e8df6ca4e3e7ea7a8
parent46e5114a019a2be34b3d17cc11a0ff994368eedc (diff)
Pass parameters to tests so that we can use --log_level and --run_test etc.
-rwxr-xr-xrun/tests8
1 files changed, 5 insertions, 3 deletions
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