From: Tobias Brunner Date: Tue, 30 May 2017 16:41:31 +0000 (+0200) Subject: travis: Run fuzz targets X-Git-Tag: 5.6.1dr1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce2721d901dcd5f9f21d5e4aea2e96eb8288c2f;p=thirdparty%2Fstrongswan.git travis: Run fuzz targets --- diff --git a/.travis.yml b/.travis.yml index e1329b347d..a17f242d1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/scripts/test.sh b/scripts/test.sh index e3bc37e302..e62c9f5bba 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -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 ;;