summaryrefslogtreecommitdiffstats
path: root/fuzz/test-runner.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/test-runner.sh')
-rwxr-xr-xfuzz/test-runner.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/fuzz/test-runner.sh b/fuzz/test-runner.sh
new file mode 100755
index 0000000..a29531b
--- /dev/null
+++ b/fuzz/test-runner.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+WRAPPER=""
+
+if [ -n "$VALGRIND_TESTS" ]; then
+ WRAPPER="valgrind --error-exitcode=301 --leak-check=yes --show-reachable=yes --track-origins=yes"
+fi
+
+exec $WRAPPER "$@"