aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/fuzzer/run_test.sh
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-25 10:10:32 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-25 10:10:32 +0200
commit611aa0defd63ebc3b4e3d16a86c495a9af120728 (patch)
tree08dbfc737c2ca3ffd34e64558229ab1e68d1b375 /tests/fuzzer/run_test.sh
parentd64ad7bb3e8fd632217ba0e8aae0586d8ed72ac6 (diff)
downloadOneRoll-611aa0defd63ebc3b4e3d16a86c495a9af120728.tar.gz
OneRoll-611aa0defd63ebc3b4e3d16a86c495a9af120728.zip
add fuzzer test
Diffstat (limited to 'tests/fuzzer/run_test.sh')
-rwxr-xr-xtests/fuzzer/run_test.sh21
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