mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 00:31:33 +00:00
posix compatible sourcing
This commit is contained in:
parent
8850e1a5bf
commit
79f873a597
@ -1,23 +1,23 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
. ./test-post.sh
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
|
@ -1,9 +1,9 @@
|
||||
#!/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
|
||||
|
Loading…
x
Reference in New Issue
Block a user