From 4414337f2e6f2370d94b2737305bb66112f5dece Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 27 Feb 2016 22:25:25 -0800 Subject: [PATCH] Move fuzz script into makefile. --- adsbus/Makefile | 6 ++++++ adsbus/fuzz.sh | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100755 adsbus/fuzz.sh diff --git a/adsbus/Makefile b/adsbus/Makefile index bbbeaf9..c4de208 100644 --- a/adsbus/Makefile +++ b/adsbus/Makefile @@ -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 diff --git a/adsbus/fuzz.sh b/adsbus/fuzz.sh deleted file mode 100755 index 2177d48..0000000 --- a/adsbus/fuzz.sh +++ /dev/null @@ -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