From 6732e5ef2fde4adc7db65880ff866111f1d1cbc8 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Fri, 2 Aug 2019 00:18:58 +0200 Subject: Add basic test adapter for AFL --- testing/run_afl.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 testing/run_afl.sh (limited to 'testing/run_afl.sh') diff --git a/testing/run_afl.sh b/testing/run_afl.sh new file mode 100755 index 00000000..c7a3bbc6 --- /dev/null +++ b/testing/run_afl.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +# move to repo root +cd ../ +rm -R _afl_build +mkdir _afl_build +cd _afl_build + +# build c-toxcore using afl instrumentation +cmake -DCMAKE_C_COMPILER=afl-clang -DBUILD_MISC_TESTS=ON .. +make + +# start fuzzing +afl-fuzz -i ../testing/afl_testdata/tox_saves/ -o afl_out/ ./afl_toxsave @@ -- cgit v1.2.3