summaryrefslogtreecommitdiff
path: root/testing/run_afl.sh
diff options
context:
space:
mode:
authorsudden6 <sudden6@gmx.at>2019-08-02 00:18:58 +0200
committersudden6 <sudden6@gmx.at>2020-03-24 16:49:41 +0100
commit6732e5ef2fde4adc7db65880ff866111f1d1cbc8 (patch)
treee33cca67d04011499994e585a7c9c4fc538f602a /testing/run_afl.sh
parentef7058422eec1c8b90208bb3522fce28374feb58 (diff)
Add basic test adapter for AFL
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 @@