travis: Run fuzz targets
authorTobias Brunner <tobias@strongswan.org>
Tue, 30 May 2017 16:41:31 +0000 (18:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 15 Aug 2017 08:35:20 +0000 (10:35 +0200)
.travis.yml
scripts/test.sh

index e1329b3..a17f242 100644 (file)
@@ -61,5 +61,7 @@ matrix:
       env: TEST=win32 MONOLITHIC=yes
       dist: precise
     - compiler: clang
+      env: TEST=fuzzing MONOLITHIC=yes
+    - compiler: clang
       os: osx
       env: TEST=osx
index e3bc37e..e62c9f5 100755 (executable)
@@ -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
        ;;