travis enhancement
MODIFY
.travis.yml
.travis.yml
@@ -11,14 +11,14 @@ matrix:
env: NAME="bionic-amd64" MODERN="yes" GCC="7"
- os: linux
dist: xenial
- env: NAME="xenial-amd64" MODERN="no" GCC="5" EXTRA="libtool-bin"
+ env: NAME="xenial-amd64" MODERN="no" GCC="5" EXTRA="libtool-bin clang-6.0"
- os: linux
dist: trusty
env: NAME="trusty-amd64" MODERN="no" GCC="4.8"
- os: linux
dist: xenial
arch: arm64
- env: NAME="xenial-arm64" MODERN="no" GCC="5" EXTRA="libtool-bin" AFL_NO_X86="1" CPU_TARGET="aarch64"
+ env: NAME="xenial-arm64" MODERN="no" GCC="5" EXTRA="libtool-bin clang-6.0" AFL_NO_X86="1" CPU_TARGET="aarch64"
# - os: osx
# osx_image: xcode11.2
# env: NAME="osx" HOMEBREW_NO_ANALYTICS="1" LINK="http://releases.llvm.org/9.0.0/" NAME="clang+llvm-9.0.0-x86_64-darwin-apple"
@@ -37,8 +37,8 @@ before_install:
# export LLVM_DIR=${TRAVIS_BUILD_DIR}/${LLVM_PACKAGE}
- echo Testing on $NAME
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then wget "$LINK""$NAME".tar.xz ; export LLVM_CONFIG=`pwd`/"$NAME" ; tar xJf "$NAME".tar.xz ; fi
- - if [ "$MODERN" = "yes" ]; then sudo apt update ; sudo apt upgrade ; sudo apt install -y libtool libtool-bin automake bison libglib2.0 build-essential clang gcc-7 gcc-7-plugin-dev libc++-7-dev ; fi
- - if [ "$MODERN" = "no" ]; then sudo apt update ; apt-cache search clang ; sudo apt install -y libtool $EXTRA automake bison libglib2.0 build-essential clang-6.0 gcc gcc-"$GCC"-plugin-dev libc++-dev ; fi
+ - if [ "$MODERN" = "yes" ]; then sudo apt update ; sudo apt upgrade ; sudo apt install -y libtool libtool-bin automake bison libglib2.0 build-essential clang gcc-"$GCC" gcc-"$GCC"-plugin-dev libc++-"$GCC"-dev ; fi
+ - if [ "$MODERN" = "no" ]; then sudo apt update ; sudo apt install -y libtool $EXTRA automake bison libglib2.0 build-essential gcc-"$GCC" gcc-"$GCC"-plugin-dev libc++-dev ; fi
script:
- gcc -v

MODIFY
test/test.sh
test/test.sh
@@ -145,7 +145,7 @@ test -e ../${AFL_GCC} -a -e ../afl-showmap -a -e ../afl-fuzz && {
}
$ECHO "$BLUE[*] Testing: llvm_mode"
-test -e ../afl-clang-fast && {
+test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
# on FreeBSD need to set AFL_CC
if which clang >/dev/null; then
export AFL_CC=`which clang`
@@ -302,7 +302,7 @@ test -e ../afl-gcc-fast -a -e ../afl-gcc-rt.o && {
} || {
$ECHO "$RED[!] gcc_plugin instrumentation produces a weird number of instrumented locations: $TUPLES"
$ECHO "$YELLOW[!] the gcc_plugin instrumentation issue is not flagged as an error because travis builds would all fail otherwise :-("
- CODE=0
+ #CODE=1
}
}
} || {

travis enhancement