projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46e5114
)
Pass parameters to tests so that we can use --log_level and --run_test etc.
author
Carl Hetherington
<cth@carlh.net>
Wed, 6 Nov 2013 20:20:23 +0000
(20:20 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 6 Nov 2013 20:20:23 +0000
(20:20 +0000)
run/tests
patch
|
blob
|
history
diff --git
a/run/tests
b/run/tests
index e6cdf4ba84656f4b739b0c54bd3e4d5ff16a6652..d1317e0001850bce28fc4a1e801b828e79bc9e7d 100755
(executable)
--- a/
run/tests
+++ b/
run/tests
@@
-2,10
+2,12
@@
export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
if [ "$1" == "--debug" ]; then
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
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
else
- build/test/unit-tests --catch_system_errors=no
+ build/test/unit-tests --catch_system_errors=no
$*
fi
fi