summaryrefslogtreecommitdiff
path: root/run/tests
blob: 5154e736c1eaf8a9b80d161c23ad6135c39050f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash -e

private=../libsub-test-private

export LD_LIBRARY_PATH=build/src:/usr/local/lib64:$LD_LIBRARY_PATH
if [ "$1" == "--debug" ]; then
    shift
    gdb --args build/test/tests $private $*
elif [ "$1" == "--valgrind" ]; then
    shift
    valgrind --tool="memcheck" build/test/tests $private $*
else
    build/test/tests $* $private
fi