mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 08:41:32 +00:00
posix compatible sourcing
This commit is contained in:
parent
8850e1a5bf
commit
79f873a597
@ -1,23 +1,23 @@
|
|||||||
#!/bin/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
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: ${AFL_GCC}, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
|
$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" && {
|
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"
|
$ECHO "$YELLOW[-] not an intel platform, cannot test afl-gcc"
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
test -z "$AFL_CC" && unset AFL_CC
|
test -z "$AFL_CC" && unset AFL_CC
|
||||||
|
|
||||||
@ -48,4 +48,4 @@ test -z "$AFL_CC" && {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: custom mutator"
|
$ECHO "$BLUE[*] Testing: custom mutator"
|
||||||
test "1" = "`../afl-fuzz | grep -i 'without python' >/dev/null; echo $?`" && {
|
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
|
INCOMPLETE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: gcc_plugin"
|
$ECHO "$BLUE[*] Testing: gcc_plugin"
|
||||||
test -e ../afl-gcc-fast -a -e ../afl-gcc-rt.o && {
|
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
|
INCOMPLETE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: LTO llvm_mode"
|
$ECHO "$BLUE[*] Testing: LTO llvm_mode"
|
||||||
test -e ../afl-clang-lto -a -e ../afl-llvm-lto-instrumentation.so && {
|
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
|
INCOMPLETE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
|
$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 && {
|
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
|
INCOMPLETE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: qemu_mode"
|
$ECHO "$BLUE[*] Testing: qemu_mode"
|
||||||
test -e ../afl-qemu-trace && {
|
test -e ../afl-qemu-trace && {
|
||||||
@ -214,4 +214,4 @@ test -e ../afl-qemu-trace && {
|
|||||||
INCOMPLETE=1
|
INCOMPLETE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Testing: unicorn_mode"
|
$ECHO "$BLUE[*] Testing: unicorn_mode"
|
||||||
test -d ../unicorn_mode/unicornafl -a -e ../unicorn_mode/unicornafl/samples/shellcode && {
|
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
|
INCOMPLETE=1
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ./test-pre.sh
|
. ./test-pre.sh
|
||||||
|
|
||||||
$ECHO "$BLUE[*] Execution cmocka Unit-Tests $GREY"
|
$ECHO "$BLUE[*] Execution cmocka Unit-Tests $GREY"
|
||||||
unset AFL_CC
|
unset AFL_CC
|
||||||
make -C .. unit || CODE=1 INCOMPLETE=1 :
|
make -C .. unit || CODE=1 INCOMPLETE=1 :
|
||||||
|
|
||||||
source ./test-post.sh
|
. ./test-post.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user