aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-09-12 21:50:20 +0200
committerGitHub <noreply@github.com>2024-09-12 21:50:20 +0200
commit7e9abf1bba84e74280168a095bd2a6c5405d1a72 (patch)
tree71bc11a7cf65d43793c39477e438770beb68b14a /test
parentfc7c95e9f4d26ea3ab13543d166ed0dc4d0b81a3 (diff)
parent6a285021917824696708647b2c55f11b55c5dc0b (diff)
downloadafl++-7e9abf1bba84e74280168a095bd2a6c5405d1a72.tar.gz
Merge pull request #2206 from smoelius/afl-sha1-filenames-test
Add `AFL_SHA1_FILENAMES` test
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-llvm.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test-llvm.sh b/test/test-llvm.sh
index 4dd35e6e..8236d138 100755
--- a/test/test-llvm.sh
+++ b/test/test-llvm.sh
@@ -269,9 +269,9 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
{
mkdir -p in
echo 00000000000000000000000000000000 > in/in
- AFL_BENCH_UNTIL_CRASH=1 ../afl-fuzz -Z -l 3 -m none -V30 -i in -o out -c 0 -- ./test-cmplog >>errors 2>&1
+ AFL_BENCH_UNTIL_CRASH=1 AFL_NO_CRASH_README=1 AFL_SHA1_FILENAMES=1 ../afl-fuzz -Z -l 3 -m none -V30 -i in -o out -c 0 -- ./test-cmplog >>errors 2>&1
} >>errors 2>&1
- test -n "$( ls out/default/crashes/id:000000* out/default/hangs/id:000000* 2>/dev/null )" && {
+ test -n "$( ls out/default/crashes/* out/default/hangs/* 2>/dev/null )" && {
$ECHO "$GREEN[+] afl-fuzz is working correctly with llvm_mode cmplog"
} || {
echo CUT------------------------------------------------------------------CUT
@@ -280,6 +280,10 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
$ECHO "$RED[!] afl-fuzz is not working correctly with llvm_mode cmplog"
CODE=1
}
+ test -n "$( ls out/default/crashes/id:000000* out/default/hangs/id:000000* 2>/dev/null )" && {
+ $ECHO "$RED[!] filenames are not SHA1"
+ CODE=1
+ } || true
} || {
$ECHO "$YELLOW[-] we cannot test llvm_mode cmplog because it is not present"
INCOMPLETE=1