diff options
Diffstat (limited to 'tests/fuzzer/run_test.sh')
| -rwxr-xr-x | tests/fuzzer/run_test.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/fuzzer/run_test.sh b/tests/fuzzer/run_test.sh new file mode 100755 index 0000000..16579fd --- /dev/null +++ b/tests/fuzzer/run_test.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +rm -rf build +mkdir build +cd build +CC=afl-gcc CXX=afl-g++ cmake ../ && make +#export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" + + +#./fuzzTestCase ../testcase_dir/gooddata.txt +afl-fuzz -m 2G -i ../testcase_dir -o ../findings_dir ./fuzzTestCase @@ + + + +# as root + +# echo core >/proc/sys/kernel/core_pattern + +# echo performance | tee cpu*/cpufreq/scaling_governor + +# echo ondemand | tee cpu*/cpufreq/scaling_governor |