tests: cleanup core files, more time for llvm cmplog
MODIFY
test/test-all.sh
test/test-all.sh
. ./test-gcc-plugin.sh
-. ./test-compcov.sh
+. ./test-libextensions.sh
. ./test-qemu-mode.sh

MODIFY
test/test-custom-mutators.sh
test/test-custom-mutators.sh
@@ -54,7 +54,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
}
# Clean
- rm -rf out errors
+ rm -rf out errors core.*
# Run afl-fuzz w/ multiple C mutators
$ECHO "$GREY[*] running afl-fuzz with multiple custom C mutators, this will take approx 5 seconds"
@@ -73,7 +73,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
}
# Clean
- rm -rf out errors
+ rm -rf out errors core.*
# Run afl-fuzz w/ the Python mutator
$ECHO "$GREY[*] running afl-fuzz for the Python mutator, this will take approx 5 seconds"
@@ -97,7 +97,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
}
# Clean
- rm -rf in out errors
+ rm -rf in out errors core.*
rm -rf ${CUSTOM_MUTATOR_PATH}/__pycache__/
rm -f test-multiple-mutators test-custom-mutator libexamplemutator.so libexamplemutator2.so
} || {

RENAME
test/test-compcov.sh
test/test-libextensions.sh
MODIFY
test/test-llvm.sh
test/test-llvm.sh
@@ -172,7 +172,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
$ECHO "$RED[!] llvm_mode laf-intel floatingpoint splitting feature compilation failed"
CODE=1
}
- rm -f test-floatingpoint test.out in/in errors
+ rm -f test-floatingpoint test.out in/in errors core.*
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 && {
@@ -208,7 +208,7 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
$ECHO "$YELLOW[-] we cannot test llvm_mode cmplog because it is not present"
INCOMPLETE=1
}
- rm -rf errors test-cmplog in
+ rm -rf errors test-cmplog in core.*
../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 && {

tests: cleanup core files, more time for llvm cmplog