Separate out STL binary tables so that writer can use them; start of writer.
[libsub.git] / run / tests
index 6858a3437fe1fda14e4b6b6e029212b70ba783a4..09e58806c9e827b95898d1f9d92bfbd8922a2a9c 100755 (executable)
--- 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