From e05ed58bf8562d214fe2c2bb42c9a4f8503da63b Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Tue, 16 Jun 2020 19:44:52 +0200 Subject: fix test.sh for failing unit tests --- test/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test.sh') diff --git a/test/test.sh b/test/test.sh index 95aa6159..921e2087 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1121,7 +1121,7 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && { $ECHO "$BLUE[*] Execution cmocka Unit-Tests $GREY" unset AFL_CC -make -C .. unit || "$CODE" = "1" +make -C .. unit || CODE=1 INCOMPLETE=1 : $ECHO "$GREY[*] all test cases completed.$RESET" test "$INCOMPLETE" = "0" && $ECHO "$GREEN[+] all test cases executed" -- cgit 1.4.1 From 990b234067888bcfd83961e3112e734a6a5548b1 Mon Sep 17 00:00:00 2001 From: jonasmollerlarsen Date: Sat, 20 Jun 2020 11:50:53 +0200 Subject: Fix when env. PATH contains spaces --- test/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test.sh') diff --git a/test/test.sh b/test/test.sh index 921e2087..4430b5ac 100755 --- a/test/test.sh +++ b/test/test.sh @@ -86,7 +86,7 @@ export AFL_LLVM_INSTRUMENT=AFL # on OpenBSD we need to work with llvm from /usr/local/bin test -e /usr/local/bin/opt && { - export PATH=/usr/local/bin:${PATH} + export PATH="/usr/local/bin:${PATH}" } # on MacOS X we prefer afl-clang over afl-gcc, because # afl-gcc does not work there @@ -108,7 +108,7 @@ RESET="\\033[0m" MEM_LIMIT=none -export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin +export PATH="${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" $ECHO "${RESET}${GREY}[*] starting afl++ test framework ..." -- cgit 1.4.1