summaryrefslogtreecommitdiff
path: root/src/test/fuzz_static_testcases.sh
blob: 276bc6e1571d64dba6c54a4cd2b319e01f5be4ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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