posix compatible sourcing
MODIFY
test/test-all.sh
test/test-all.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
-source ./test-basic.sh
+. ./test-basic.sh
-source ./test-llvm.sh
+. ./test-llvm.sh
-source ./test-llvm-lto.sh
+. ./test-llvm-lto.sh
-source ./test-gcc-plugin.sh
+. ./test-gcc-plugin.sh
-source ./test-compcov.sh
+. ./test-compcov.sh
-source ./test-qemu-mode.sh
+. ./test-qemu-mode.sh
-source ./test-unicorn-mode.sh
+. ./test-unicorn-mode.sh
-source ./test-custom-mutators.sh
+. ./test-custom-mutators.sh
-source ./test-unittests.sh
+. ./test-unittests.sh
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-basic.sh
test/test-basic.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: ${AFL_GCC}, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc" -o "$SYS" = "i386" && {
@@ -122,4 +122,4 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc
$ECHO "$YELLOW[-] not an intel platform, cannot test afl-gcc"
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-compcov.sh
test/test-compcov.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
test -z "$AFL_CC" && unset AFL_CC
@@ -48,4 +48,4 @@ test -z "$AFL_CC" && {
fi
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-custom-mutators.sh
test/test-custom-mutators.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: custom mutator"
test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
@@ -122,4 +122,4 @@ test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
INCOMPLETE=1
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-gcc-plugin.sh
test/test-gcc-plugin.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: gcc_plugin"
test -e ../afl-gcc-fast -a -e ../afl-gcc-rt.o && {
@@ -113,4 +113,4 @@ test -e ../afl-gcc-fast -a -e ../afl-gcc-rt.o && {
INCOMPLETE=1
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-llvm-lto.sh
test/test-llvm-lto.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: LTO llvm_mode"
test -e ../afl-clang-lto -a -e ../afl-llvm-lto-instrumentation.so && {
@@ -75,4 +75,4 @@ test -e ../afl-clang-lto -a -e ../afl-llvm-lto-instrumentation.so && {
INCOMPLETE=1
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-llvm.sh
test/test-llvm.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
@@ -227,4 +227,4 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
INCOMPLETE=1
}
-source ./test-post.sh
\ No newline at end of file
+. ./test-post.sh
\ No newline at end of file

MODIFY
test/test-qemu-mode.sh
test/test-qemu-mode.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: qemu_mode"
test -e ../afl-qemu-trace && {
@@ -214,4 +214,4 @@ test -e ../afl-qemu-trace && {
INCOMPLETE=1
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-unicorn-mode.sh
test/test-unicorn-mode.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Testing: unicorn_mode"
test -d ../unicorn_mode/unicornafl -a -e ../unicorn_mode/unicornafl/samples/shellcode && {
@@ -109,4 +109,4 @@ test -d ../unicorn_mode/unicornafl -a -e ../unicorn_mode/unicornafl/samples/shel
INCOMPLETE=1
}
-source ./test-post.sh
+. ./test-post.sh

MODIFY
test/test-unittests.sh
test/test-unittests.sh
#!/bin/sh
-source ./test-pre.sh
+. ./test-pre.sh
$ECHO "$BLUE[*] Execution cmocka Unit-Tests $GREY"
unset AFL_CC
make -C .. unit || CODE=1 INCOMPLETE=1 :
-source ./test-post.sh
+. ./test-post.sh

posix compatible sourcing