mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 21:25:43 +00:00
another freebsd fix in test.sh
This commit is contained in:
12
test/test.sh
12
test/test.sh
@ -179,11 +179,13 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" && {
|
|||||||
$ECHO "$BLUE[*] Testing: llvm_mode"
|
$ECHO "$BLUE[*] Testing: llvm_mode"
|
||||||
test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
|
test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
|
||||||
# on FreeBSD need to set AFL_CC
|
# on FreeBSD need to set AFL_CC
|
||||||
if which clang >/dev/null; then
|
test `uname -s` = 'FreeBSD' && {
|
||||||
export AFL_CC=`which clang`
|
if which clang >/dev/null; then
|
||||||
else
|
export AFL_CC=`which clang`
|
||||||
export AFL_CC=`$LLVM_CONFIG --bindir`/clang
|
else
|
||||||
fi
|
export AFL_CC=`$LLVM_CONFIG --bindir`/clang
|
||||||
|
fi
|
||||||
|
}
|
||||||
../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
|
../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
|
||||||
AFL_HARDEN=1 ../afl-clang-fast -o test-compcov.harden test-compcov.c > /dev/null 2>&1
|
AFL_HARDEN=1 ../afl-clang-fast -o test-compcov.harden test-compcov.c > /dev/null 2>&1
|
||||||
test -e test-instr.plain && {
|
test -e test-instr.plain && {
|
||||||
|
Reference in New Issue
Block a user