Move fuzz script into makefile.

This commit is contained in:
Ian Gulliver
2016-02-27 22:25:25 -08:00
parent c79beb441f
commit 4414337f2e
2 changed files with 6 additions and 8 deletions

View File

@@ -22,3 +22,9 @@ adsb.pb-c.c: ../proto/adsb.proto
adsbus: adsbus.o $(OBJ_NETWORK) $(OBJ_PROTOCOL) $(OBJ_UTIL) $(OBJ_PROTO)
$(COMP) $(LDFLAGS) -o adsbus adsbus.o $(OBJ_NETWORK) $(OBJ_PROTOCOL) $(OBJ_UTIL) $(OBJ_PROTO) $(LIBS)
fuzz:
test -d findings || mkdir findings
$(MAKE) clean
COMP=afl-clang $(MAKE) adsbus
afl-fuzz -i testcase/ -o findings/ ./adsbus --stdin --stdout=airspy_adsb --stdout=beast --stdout=json --stdout=proto --stdout=raw --stdout=stats

View File

@@ -1,8 +0,0 @@
#!/bin/sh
set -x
set -e
test -d findings || mkdir findings
make clean
COMP=afl-clang make
afl-fuzz -i testcase/ -o findings/ ./adsbus --stdin --stdout=airspy_adsb --stdout=beast --stdout=json --stdout=proto --stdout=raw --stdout=stats