mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
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.
This commit is contained in:
parent
81e44c2257
commit
3c74855934
@ -52,6 +52,7 @@ FUZZERS = \
|
||||
src/test/fuzz/fuzz-extrainfo \
|
||||
src/test/fuzz/fuzz-http
|
||||
|
||||
# The fuzzers aren't built by default right now. That should change.
|
||||
EXTRA_PROGRAMS += $(FUZZERS)
|
||||
noinst_PROGRAMS += $(FUZZERS)
|
||||
fuzzers: $(FUZZERS)
|
||||
|
||||
|
||||
|
15
src/test/fuzz_static_testcases.sh
Executable file
15
src/test/fuzz_static_testcases.sh
Executable file
@ -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
|
@ -8,7 +8,9 @@ TESTS_ENVIRONMENT = \
|
||||
export builddir="$(builddir)"; \
|
||||
export TESTING_TOR_BINARY="$(TESTING_TOR_BINARY)";
|
||||
|
||||
TESTSCRIPTS = src/test/test_zero_length_keys.sh \
|
||||
TESTSCRIPTS = \
|
||||
src/test/fuzz_static_testcases.sh \
|
||||
src/test/test_zero_length_keys.sh \
|
||||
src/test/test_workqueue_cancel.sh \
|
||||
src/test/test_workqueue_efd.sh \
|
||||
src/test/test_workqueue_efd2.sh \
|
||||
|
Loading…
Reference in New Issue
Block a user