diff options
author | vanhauser-thc <vh@thc.org> | 2023-03-10 11:10:09 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-03-10 11:10:09 +0100 |
commit | 1d4f779d4d5b1e20cb4b660676f92cd5db70589b (patch) | |
tree | 120e98a662c93c26c976ef87e01d5c3ef77b4fe8 | |
parent | 4c7c78d92648bd1c5ec1e2d5115d32872a2a5905 (diff) | |
download | afl++-1d4f779d4d5b1e20cb4b660676f92cd5db70589b.tar.gz |
debug macos ci
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 6921cc85..81d392a6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -547,9 +547,13 @@ test_build: afl-cc afl-gcc afl-as afl-showmap @echo "[*] Testing the CC wrapper afl-cc and its instrumentation output..." @unset AFL_MAP_SIZE AFL_USE_UBSAN AFL_USE_CFISAN AFL_USE_LSAN AFL_USE_ASAN AFL_USE_MSAN; ASAN_OPTIONS=detect_leaks=0 AFL_INST_RATIO=100 AFL_PATH=. ./afl-cc test-instr.c $(LDFLAGS) -o test-instr 2>&1 || (echo "Oops, afl-cc failed"; exit 1 ) ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null - echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr + echo debug 0 + -echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr + echo debug 1 @rm -f test-instr + echo debug 2 @cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation of afl-cc does not seem to be behaving correctly!"; echo; echo "Please post to https://github.com/AFLplusplus/AFLplusplus/issues to troubleshoot the issue."; echo; exit 1; fi + echo debug 3 @echo @echo "[+] All right, the instrumentation of afl-cc seems to be working!" # @echo "[*] Testing the CC wrapper afl-gcc and its instrumentation output..." |