From e4dc41cdc3ebb84ef7e42f5cf261e36fe874c901 Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Wed, 23 Oct 2024 15:40:41 +0200 Subject: Fix test --- src/tests/fuzzer/run_test.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/tests/fuzzer/run_test.sh') diff --git a/src/tests/fuzzer/run_test.sh b/src/tests/fuzzer/run_test.sh index 9ecdeef..e10c5d9 100755 --- a/src/tests/fuzzer/run_test.sh +++ b/src/tests/fuzzer/run_test.sh @@ -1,20 +1,22 @@ #!/bin/sh rm -rf build +rm -rf /home/renaud/applications/mine/renaudg/rolisteam/src/libraries/diceparser/src/tests/fuzzer/sync_dir/fuzzer01 mkdir build cd build -CC=afl-gcc CXX=afl-g++ cmake ../ -DSTATIC_BUILD=ON && make -#export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" +CC=afl-gcc CXX=afl-g++ cmake ../ -DCMAKE_PREFIX_PATH:PATH=/home/renaud/applications/other/.qt/6.7.2/gcc_64 -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/renaud/applications/other/.qt/6.7.2/gcc_64/bin/qmake -DSTATIC_BUILD=ON && make +fuzzRoot=/home/renaud/applications/mine/renaudg/rolisteam/src/libraries/diceparser/src/tests/fuzzer +fuzzTestCase=/home/renaud/applications/mine/renaudg/rolisteam/src/libraries/diceparser/build/src/tests/fuzzer/fuzzTestCase #./fuzzTestCase ../testcase_dir/gooddata.txt # afl-fuzz -m 2G -i ../testcase_dir -o ../findings_dir ./fuzzTestCase @@ -afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -M fuzzer01 ./fuzzTestCase @@ & -screen -S fuzz1 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer02 ./fuzzTestCase @@ & -screen -S fuzz2 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer03 ./fuzzTestCase @@ & -screen -S fuzz3 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer04 ./fuzzTestCase @@ & -screen -S fuzz4 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer05 ./fuzzTestCase @@ & -screen -S fuzz5 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S fuzzer06 ./fuzzTestCase @@ +afl-fuzz -m 2G -i $fuzzRoot/testcase_dir -o $fuzzRoot/sync_dir -M fuzzer01 $fuzzTestCase @@ & +screen -S fuzz1 -d -m touch afl-fuzz -m 2G -i $fuzzRoot/testcase_dir -o $fuzzRoot/sync_dir -S fuzzer02 $fuzzTestCase @@ & +screen -S fuzz2 -d -m touch afl-fuzz -m 2G -i $fuzzRoot/testcase_dir -o $fuzzRoot/sync_dir -S fuzzer03 $fuzzTestCase @@ & +screen -S fuzz3 -d -m touch afl-fuzz -m 2G -i $fuzzRoot/testcase_dir -o $fuzzRoot/sync_dir -S fuzzer04 $fuzzTestCase @@ & +screen -S fuzz4 -d -m touch afl-fuzz -m 2G -i $fuzzRoot/testcase_dir -o $fuzzRoot/sync_dir -S fuzzer05 $fuzzTestCase @@ & +screen -S fuzz5 -d -m touch afl-fuzz -m 2G -i $fuzzRoot/testcase_dir -o $fuzzRoot/sync_dir -S fuzzer06 $fuzzTestCase @@ @@ -22,6 +24,6 @@ screen -S fuzz5 -d -m touch afl-fuzz -m 2G -i ../testcase_dir -o ../sync_dir -S # echo core >/proc/sys/kernel/core_pattern +# cd /sys/devices/system/cpu # echo performance | tee cpu*/cpufreq/scaling_governor - # echo ondemand | tee cpu*/cpufreq/scaling_governor -- cgit v1.2.3-70-g09d2