aboutsummaryrefslogtreecommitdiff
path: root/fuzz/Makefile.am
diff options
context:
space:
mode:
authorPhilippe Antoine <contact@catenacyber.fr>2020-01-22 16:12:50 +0100
committerPhilippe Antoine <contact@catenacyber.fr>2020-01-22 16:12:50 +0100
commit77db14fd7a8ef94e8a501944dab6c8aa919ed9ab (patch)
tree750ccfe0485cf6b0c932521fcf95832b308fb76e /fuzz/Makefile.am
parent5a40f9b7fd50a53a55e0d842672b68abb5543190 (diff)
Generates automatically corpus for fuzz target
Diffstat (limited to 'fuzz/Makefile.am')
-rw-r--r--fuzz/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index d85dbac15..a6298699b 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -24,3 +24,10 @@ endif
fuzz_ndpi_reader_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) \
$(fuzz_ndpi_reader_LDFLAGS) $(LDFLAGS) -o $@
+
+EXTRA_fuzz_ndpi_reader_DEPENDENCIES = fuzz_ndpi_reader_seed_corpus.zip
+
+testpcaps := $(wildcard ../tests/pcap/*.pcap)
+
+fuzz_ndpi_reader_seed_corpus.zip: $(testpcaps)
+ zip -r fuzz_ndpi_reader_seed_corpus.zip $(testpcaps)