projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '2.0' of git.carlh.net:git/dcpomatic into 2.0
[dcpomatic.git]
/
run
/
tests
diff --git
a/run/tests
b/run/tests
index e6cdf4ba84656f4b739b0c54bd3e4d5ff16a6652..e9c02589375a47d2a60d291390b890153b73ada6 100755
(executable)
--- a/
run/tests
+++ b/
run/tests
@@
-1,11
+1,16
@@
#!/bin/bash
#!/bin/bash
+#
+# e.g. --run_tests=foo
export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
+export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd`
if [ "$1" == "--debug" ]; then
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