From 1ce2721d901dcd5f9f21d5e4aea2e96eb8288c2f Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 30 May 2017 18:41:31 +0200 Subject: [PATCH] travis: Run fuzz targets --- .travis.yml | 2 ++ scripts/test.sh | 13 +++++++++++++ 2 files changed, 15 insertions(+) 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 ;; -- 2.47.2