projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.
[dcpomatic.git]
/
run
/
tests
diff --git
a/run/tests
b/run/tests
index e6cdf4ba84656f4b739b0c54bd3e4d5ff16a6652..9b94ada80452c305ee67d31cf9e4436f800005a0 100755
(executable)
--- a/
run/tests
+++ b/
run/tests
@@
-1,11
+1,15
@@
#!/bin/bash
#!/bin/bash
+#
+# e.g. --run_tests=foo
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