diff options
author | sudden6 <sudden6@gmx.at> | 2019-08-02 00:18:58 +0200 |
---|---|---|
committer | sudden6 <sudden6@gmx.at> | 2020-03-24 16:49:41 +0100 |
commit | 6732e5ef2fde4adc7db65880ff866111f1d1cbc8 (patch) | |
tree | e33cca67d04011499994e585a7c9c4fc538f602a /testing/run_afl.sh | |
parent | ef7058422eec1c8b90208bb3522fce28374feb58 (diff) |
Add basic test adapter for AFL
Diffstat (limited to 'testing/run_afl.sh')
-rwxr-xr-x | testing/run_afl.sh | 14 |
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 | ||
4 | cd ../ | ||
5 | rm -R _afl_build | ||
6 | mkdir _afl_build | ||
7 | cd _afl_build | ||
8 | |||
9 | # build c-toxcore using afl instrumentation | ||
10 | cmake -DCMAKE_C_COMPILER=afl-clang -DBUILD_MISC_TESTS=ON .. | ||
11 | make | ||
12 | |||
13 | # start fuzzing | ||
14 | afl-fuzz -i ../testing/afl_testdata/tox_saves/ -o afl_out/ ./afl_toxsave @@ | ||