summaryrefslogtreecommitdiff
path: root/run/tests
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-29 14:20:17 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-29 14:20:17 +0100
commitf6fb2090f4180f8cd507d694f7eb663b3f25d2f0 (patch)
tree0df38a2b6377f12c3760197c7a107984e1e3407f /run/tests
parentaebf2cb7812c8f593b85182611b587e6014aefc6 (diff)
Separate out STL binary tables so that writer can use them; start of writer.
Diffstat (limited to 'run/tests')
-rwxr-xr-xrun/tests12
1 files changed, 11 insertions, 1 deletions
diff --git a/run/tests b/run/tests
index 6858a34..09e5880 100755
--- a/run/tests
+++ b/run/tests
@@ -1,4 +1,14 @@
#!/bin/bash -e
+private=../libsub-test-private
+
export LD_LIBRARY_PATH=build/src
-build/test/tests ../libsub-test-private $*
+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