aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-30 23:34:26 +0200
committerGitHub <noreply@github.com>2020-06-30 23:34:26 +0200
commit9d5007b18e41f17c395fcfc5fc0a8c8c87f4f75d (patch)
tree8e368959e6d86214b6a31c10c49e3e41578633d2 /test
parent3f1288e2f91bcb0e9176761ceb9662b187f3f508 (diff)
downloadafl++-9d5007b18e41f17c395fcfc5fc0a8c8c87f4f75d.tar.gz
Big renaming (#429)
* first commit, looks good * fix ascii percentage calc * fix ascii percentage calc * modify txt configs for test * further refinement * Revert "Merge branch 'text_inputs' into dev" This reverts commit 6d9b29daca46c8912aa9ddf6c053bc8554e9e9f7, reversing changes made to 07648f75ea5ef8f03a92db0c7566da8c229dc27b. * blacklist -> ignore renaming * rename whitelist -> instrumentlist * reduce the time interval in which the secondaries sync Co-authored-by: root <root@localhost.localdomain>
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-performance.sh4
-rwxr-xr-xtest/test.sh40
2 files changed, 22 insertions, 22 deletions
diff --git a/test/test-performance.sh b/test/test-performance.sh
index 87eea665..cee46060 100755
--- a/test/test-performance.sh
+++ b/test/test-performance.sh
@@ -21,8 +21,8 @@ unset AFL_USE_ASAN
unset AFL_USE_MSAN
unset AFL_CC
unset AFL_PRELOAD
-unset AFL_GCC_WHITELIST
-unset AFL_LLVM_WHITELIST
+unset AFL_GCC_INSTRUMENT_FILE
+unset AFL_LLVM_INSTRUMENT_FILE
unset AFL_LLVM_INSTRIM
unset AFL_LLVM_LAF_SPLIT_SWITCHES
unset AFL_LLVM_LAF_TRANSFORM_COMPARES
diff --git a/test/test.sh b/test/test.sh
index a7d9fc49..90920215 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -62,8 +62,8 @@ unset AFL_USE_UBSAN
unset AFL_TMPDIR
unset AFL_CC
unset AFL_PRELOAD
-unset AFL_GCC_WHITELIST
-unset AFL_LLVM_WHITELIST
+unset AFL_GCC_INSTRUMENT_FILE
+unset AFL_LLVM_INSTRUMENT_FILE
unset AFL_LLVM_INSTRIM
unset AFL_LLVM_LAF_SPLIT_SWITCHES
unset AFL_LLVM_LAF_TRANSFORM_COMPARES
@@ -386,20 +386,20 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
CODE=1
}
rm -f test-compcov.compcov test.out
- echo foobar.c > whitelist.txt
- AFL_DEBUG=1 AFL_LLVM_WHITELIST=whitelist.txt ../afl-clang-fast -o test-compcov test-compcov.c > test.out 2>&1
+ echo foobar.c > instrumentlist.txt
+ AFL_DEBUG=1 AFL_LLVM_INSTRUMENT_FILE=instrumentlist.txt ../afl-clang-fast -o test-compcov test-compcov.c > test.out 2>&1
test -e test-compcov && test_compcov_binary_functionality ./test-compcov && {
grep -q "No instrumentation targets found" test.out && {
- $ECHO "$GREEN[+] llvm_mode whitelist feature works correctly"
+ $ECHO "$GREEN[+] llvm_mode instrumentlist feature works correctly"
} || {
- $ECHO "$RED[!] llvm_mode whitelist feature failed"
+ $ECHO "$RED[!] llvm_mode instrumentlist feature failed"
CODE=1
}
} || {
- $ECHO "$RED[!] llvm_mode whitelist feature compilation failed"
+ $ECHO "$RED[!] llvm_mode instrumentlist feature compilation failed"
CODE=1
}
- rm -f test-compcov test.out whitelist.txt
+ rm -f test-compcov test.out instrumentlist.txt
../afl-clang-fast -o test-persistent ../examples/persistent_demo/persistent_demo.c > /dev/null 2>&1
test -e test-persistent && {
echo foo | ../afl-showmap -m ${MEM_LIMIT} -o /dev/null -q -r ./test-persistent && {
@@ -459,20 +459,20 @@ test -e ../afl-clang-lto -a -e ../afl-llvm-lto-instrumentation.so && {
}
rm -f test-instr.plain
- echo foobar.c > whitelist.txt
- AFL_DEBUG=1 AFL_LLVM_WHITELIST=whitelist.txt ../afl-clang-lto -o test-compcov test-compcov.c > test.out 2>&1
+ echo foobar.c > instrumentlist.txt
+ AFL_DEBUG=1 AFL_LLVM_INSTRUMENT_FILE=instrumentlist.txt ../afl-clang-lto -o test-compcov test-compcov.c > test.out 2>&1
test -e test-compcov && {
grep -q "No instrumentation targets found" test.out && {
- $ECHO "$GREEN[+] llvm_mode LTO whitelist feature works correctly"
+ $ECHO "$GREEN[+] llvm_mode LTO instrumentlist feature works correctly"
} || {
- $ECHO "$RED[!] llvm_mode LTO whitelist feature failed"
+ $ECHO "$RED[!] llvm_mode LTO instrumentlist feature failed"
CODE=1
}
} || {
- $ECHO "$RED[!] llvm_mode LTO whitelist feature compilation failed"
+ $ECHO "$RED[!] llvm_mode LTO instrumentlist feature compilation failed"
CODE=1
}
- rm -f test-compcov test.out whitelist.txt
+ rm -f test-compcov test.out instrumentlist.txt
../afl-clang-lto -o test-persistent ../examples/persistent_demo/persistent_demo.c > /dev/null 2>&1
test -e test-persistent && {
echo foo | ../afl-showmap -m none -o /dev/null -q -r ./test-persistent && {
@@ -569,20 +569,20 @@ test -e ../afl-gcc-fast -a -e ../afl-gcc-rt.o && {
rm -f test-instr.plain.gccpi
# now for the special gcc_plugin things
- echo foobar.c > whitelist.txt
- AFL_GCC_WHITELIST=whitelist.txt ../afl-gcc-fast -o test-compcov test-compcov.c > /dev/null 2>&1
+ echo foobar.c > instrumentlist.txt
+ AFL_GCC_INSTRUMENT_FILE=instrumentlist.txt ../afl-gcc-fast -o test-compcov test-compcov.c > /dev/null 2>&1
test -e test-compcov && test_compcov_binary_functionality ./test-compcov && {
echo 1 | ../afl-showmap -m ${MEM_LIMIT} -o - -r -- ./test-compcov 2>&1 | grep -q "Captured 1 tuples" && {
- $ECHO "$GREEN[+] gcc_plugin whitelist feature works correctly"
+ $ECHO "$GREEN[+] gcc_plugin instrumentlist feature works correctly"
} || {
- $ECHO "$RED[!] gcc_plugin whitelist feature failed"
+ $ECHO "$RED[!] gcc_plugin instrumentlist feature failed"
CODE=1
}
} || {
- $ECHO "$RED[!] gcc_plugin whitelist feature compilation failed"
+ $ECHO "$RED[!] gcc_plugin instrumentlist feature compilation failed"
CODE=1
}
- rm -f test-compcov test.out whitelist.txt
+ rm -f test-compcov test.out instrumentlist.txt
../afl-gcc-fast -o test-persistent ../examples/persistent_demo/persistent_demo.c > /dev/null 2>&1
test -e test-persistent && {
echo foo | ../afl-showmap -m ${MEM_LIMIT} -o /dev/null -q -r ./test-persistent && {