tor/src/test/fuzz_static_testcases.sh
Nick Mathewson 3c74855934 Addition to test cases: make sure fuzzer binaries allow known cases
This isn't fuzzing per se, so much as replaying the highlights of
past fuzzer runs.
2017-01-30 08:37:24 -05:00

16 lines
362 B
Bash
Executable File

#!/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