Skip to content

Commit 79f873a

Browse files
committed
posix compatible sourcing
1 parent 8850e1a commit 79f873a

10 files changed

+29
-29
lines changed

test/test-all.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

5-
source ./test-basic.sh
5+
. ./test-basic.sh
66

7-
source ./test-llvm.sh
7+
. ./test-llvm.sh
88

9-
source ./test-llvm-lto.sh
9+
. ./test-llvm-lto.sh
1010

11-
source ./test-gcc-plugin.sh
11+
. ./test-gcc-plugin.sh
1212

13-
source ./test-compcov.sh
13+
. ./test-compcov.sh
1414

15-
source ./test-qemu-mode.sh
15+
. ./test-qemu-mode.sh
1616

17-
source ./test-unicorn-mode.sh
17+
. ./test-unicorn-mode.sh
1818

19-
source ./test-custom-mutators.sh
19+
. ./test-custom-mutators.sh
2020

21-
source ./test-unittests.sh
21+
. ./test-unittests.sh
2222

23-
source ./test-post.sh
23+
. ./test-post.sh

test/test-basic.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: ${AFL_GCC}, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
66
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
122122
$ECHO "$YELLOW[-] not an intel platform, cannot test afl-gcc"
123123
}
124124

125-
source ./test-post.sh
125+
. ./test-post.sh

test/test-compcov.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
test -z "$AFL_CC" && unset AFL_CC
66

@@ -48,4 +48,4 @@ test -z "$AFL_CC" && {
4848
fi
4949
}
5050

51-
source ./test-post.sh
51+
. ./test-post.sh

test/test-custom-mutators.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: custom mutator"
66
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 $?`" && {
122122
INCOMPLETE=1
123123
}
124124

125-
source ./test-post.sh
125+
. ./test-post.sh

test/test-gcc-plugin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: gcc_plugin"
66
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 && {
113113
INCOMPLETE=1
114114
}
115115

116-
source ./test-post.sh
116+
. ./test-post.sh

test/test-llvm-lto.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: LTO llvm_mode"
66
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 && {
7575
INCOMPLETE=1
7676
}
7777

78-
source ./test-post.sh
78+
. ./test-post.sh

test/test-llvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
66
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 && {
227227
INCOMPLETE=1
228228
}
229229

230-
source ./test-post.sh
230+
. ./test-post.sh

test/test-qemu-mode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: qemu_mode"
66
test -e ../afl-qemu-trace && {
@@ -214,4 +214,4 @@ test -e ../afl-qemu-trace && {
214214
INCOMPLETE=1
215215
}
216216

217-
source ./test-post.sh
217+
. ./test-post.sh

test/test-unicorn-mode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Testing: unicorn_mode"
66
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
109109
INCOMPLETE=1
110110
}
111111

112-
source ./test-post.sh
112+
. ./test-post.sh

test/test-unittests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/sh
22

3-
source ./test-pre.sh
3+
. ./test-pre.sh
44

55
$ECHO "$BLUE[*] Execution cmocka Unit-Tests $GREY"
66
unset AFL_CC
77
make -C .. unit || CODE=1 INCOMPLETE=1 :
88

9-
source ./test-post.sh
9+
. ./test-post.sh

0 commit comments

Comments
 (0)