Fix test running when LD_LIBRARY_PATH is set in the environment.
[libsub.git] / run / tests
1 #!/bin/bash -e
2
3 private=../libsub-test-private
4
5 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/src
6 if [ "$1" == "--debug" ]; then
7     shift
8     gdb --args build/test/tests $private $*
9 elif [ "$1" == "--valgrind" ]; then
10     shift
11     valgrind --tool="memcheck" build/test/tests $private $*
12 else
13     build/test/tests $private $*
14 fi