summaryrefslogtreecommitdiff
path: root/run/tests
diff options
context:
space:
mode:
Diffstat (limited to 'run/tests')
-rwxr-xr-xrun/tests11
1 files changed, 11 insertions, 0 deletions
diff --git a/run/tests b/run/tests
new file mode 100755
index 000000000..e1686a55c
--- /dev/null
+++ b/run/tests
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+ gdb --args build/test/unit-tests
+elif [ "$1" == "--valgrind" ]; then
+ valgrind --tool="memcheck" --leak-check=full build/test/unit-tests
+else
+ build/test/unit-tests
+fi
+