travis: Run fuzz targets

This commit is contained in:
Tobias Brunner
2017-08-15 10:35:20 +02:00
parent 9f2e74cfbb
commit 1ce2721d90
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -60,6 +60,8 @@ matrix:
- compiler: gcc
env: TEST=win32 MONOLITHIC=yes
dist: precise
- compiler: clang
env: TEST=fuzzing MONOLITHIC=yes
- compiler: clang
os: osx
env: TEST=osx
+13
View File
@@ -121,6 +121,19 @@ osx)
export CPPFLAGS
export LDFLAGS
;;
fuzzing)
CFLAGS="$CFLAGS -DNO_CHECK_MEMWIPE"
CONFIG="--enable-fuzzing --enable-static --disable-shared --disable-scripts"
# don't run any of the unit tests
export TESTS_RUNNERS=
# prepare corpora
if test -z "$1"; then
if test -z "$FUZZING_CORPORA"; then
git clone --depth 1 https://github.com/strongswan/fuzzing-corpora.git fuzzing-corpora
export FUZZING_CORPORA=$TRAVIS_BUILD_DIR/fuzzing-corpora
fi
fi
;;
dist)
TARGET=distcheck
;;