test: add fuzzing check script to tests

Add a test script that runs the fuzzing command over the
corpus of DNS packets.  This doesn't actually do any fuzzing
(it just runs them as inputs without generating any variations)
but it does ensure that the fuzzing entrypoint is still working.
pull/54/head
David Drysdale 9 years ago
parent cc6a16d6c2
commit 2401623710
  1. 2
      test/.gitignore
  2. 2
      test/Makefile.am
  3. 3
      test/fuzzcheck.sh

2
test/.gitignore vendored

@ -5,6 +5,8 @@ arestest
aresfuzz aresfuzz
arestest.log arestest.log
arestest.trs arestest.trs
fuzzcheck.sh.log
fuzzcheck.sh.trs
test-suite.log test-suite.log
fuzzoutput fuzzoutput
config.h.in config.h.in

@ -13,7 +13,7 @@ CXXFLAGS += -Wall $(PTHREAD_CFLAGS)
# Makefile.inc provides the TESTSOURCES, TESTHEADERS and FUZZSOURCES defines # Makefile.inc provides the TESTSOURCES, TESTHEADERS and FUZZSOURCES defines
include Makefile.inc include Makefile.inc
TESTS = arestest TESTS = arestest fuzzcheck.sh
noinst_PROGRAMS = arestest aresfuzz dnsdump noinst_PROGRAMS = arestest aresfuzz dnsdump
arestest_SOURCES = $(TESTSOURCES) $(TESTHEADERS) arestest_SOURCES = $(TESTSOURCES) $(TESTHEADERS)

@ -0,0 +1,3 @@
#!/bin/sh
# Check that all of the base fuzzing corpus parse without errors
./aresfuzz fuzzinput/*
Loading…
Cancel
Save