summaryrefslogtreecommitdiff
path: root/src/test/fuzz_static_testcases.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fuzz_static_testcases.sh')
-rwxr-xr-xsrc/test/fuzz_static_testcases.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/fuzz_static_testcases.sh b/src/test/fuzz_static_testcases.sh
new file mode 100755
index 0000000000..276bc6e157
--- /dev/null
+++ b/src/test/fuzz_static_testcases.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Copyright (c) 2016, The Tor Project, Inc.
+# See LICENSE for licensing information
+
+set -e
+
+for fuzzer in "${builddir:-.}"/src/test/fuzz/fuzz-* ; do
+ f=`basename $fuzzer`
+ case="${f#fuzz-}"
+ echo "Running tests for ${case}"
+ for entry in ${abs_top_srcdir:-.}/src/test/fuzz/data/${case}/*; do
+ "${fuzzer}" "--err" < "$entry"
+ done
+done