aboutsummaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-07-30 13:46:52 +0200
committerhexcoder- <heiko@hexco.de>2020-07-30 13:46:52 +0200
commit5ce55d87ecf5d3f0e8fbd0e1ce68f74efb0cf528 (patch)
treef00fbed89ce3851128d0d6c626c38dcc81b065c2 /test/test.sh
parentffe5619a9d0934f9088ef32ddbd507a0ddbde321 (diff)
downloadafl++-5ce55d87ecf5d3f0e8fbd0e1ce68f74efb0cf528.tar.gz
make travis green again (floating point testcase), but all laf testcases need AFL_DEBUG=1 (that is another bug)
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test.sh b/test/test.sh
index 76b089e7..427509a4 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -385,17 +385,18 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
CODE=1
}
rm -f test-compcov.compcov test.out
- AFL_LLVM_INSTRUMENT=AFL AFL_LLVM_LAF_ALL=1 ../afl-clang-fast -o test-floatingpoint test-floatingpoint.c > test.out 2>&1
+ AFL_LLVM_INSTRUMENT=AFL AFL_DEBUG=1 AFL_LLVM_LAF_ALL=1 ../afl-clang-fast -o test-floatingpoint test-floatingpoint.c
test -e test-floatingpoint && {
mkdir -p in
- echo ZZ > in/in
+ echo ZZZZ > in/in
$ECHO "$GREY[*] running afl-fuzz with floating point splitting, this will take max. 30 seconds"
{
- AFL_BENCH_UNTIL_CRASH=1 AFL_NO_UI=1 ../afl-fuzz -s 123 -V30 -m ${MEM_LIMIT} -i in -o out -- ./test-floatingpoint >>errors 2>&1
+ AFL_BENCH_UNTIL_CRASH=1 AFL_NO_UI=1 ../afl-fuzz -s 1 -V30 -m ${MEM_LIMIT} -i in -o out -- ./test-floatingpoint >>errors 2>&1
} >>errors 2>&1
test -n "$( ls out/crashes/id:* 2>/dev/null )" && {
$ECHO "$GREEN[+] llvm_mode laf-intel floatingpoint splitting feature works correctly"
} || {
+ cat errors
$ECHO "$RED[!] llvm_mode laf-intel floatingpoint splitting feature failed"
CODE=1
}