summaryrefslogtreecommitdiff
path: root/testing/run_afl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testing/run_afl.sh')
-rwxr-xr-xtesting/run_afl.sh14
1 files changed, 14 insertions, 0 deletions
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 @@
1#! /bin/sh
2
3# move to repo root
4cd ../
5rm -R _afl_build
6mkdir _afl_build
7cd _afl_build
8
9# build c-toxcore using afl instrumentation
10cmake -DCMAKE_C_COMPILER=afl-clang -DBUILD_MISC_TESTS=ON ..
11make
12
13# start fuzzing
14afl-fuzz -i ../testing/afl_testdata/tox_saves/ -o afl_out/ ./afl_toxsave @@