travis: Build and check fuzz tests
Signed-off-by: John Andersen <john.s.andersen@intel.com>
diff --git a/.travis.yml b/.travis.yml
index 7996a90..3610023 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,6 +9,7 @@
matrix:
- WITH_CRYPTO=ossl OPENSSL_BRANCH=OpenSSL_1_0_2-stable COVERALLS=send
- WITH_CRYPTO=ossl OPENSSL_BRANCH=OpenSSL_1_1_0-stable COVERALLS=send
+ - WITH_CRYPTO=ossl OPENSSL_BRANCH=OpenSSL_1_1_0-stable FUZZING=1
- WITH_CRYPTO=gcrypt OPENSSL_BRANCH=NONE
- WITH_TCTI_ASYNC=yes WITH_TCTI_PARTIAL=yes WITH_CRYPTO=gcrypt OPENSSL_BRANCH=NONE COVERALLS=send
- WITH_TCTI_ASYNC=yes WITH_TCTI_PARTIAL=no WITH_CRYPTO=gcrypt OPENSSL_BRANCH=NONE
@@ -114,6 +115,15 @@
else
make -j$(nproc) check
fi
+# check fuzz targets
+ - |
+ if [ "$CC" == "clang" ] && [ "x$FUZZING" == "x1" ]; then
+ ../configure --enable-tcti-partial-reads=$WITH_TCTI_PARTIAL --enable-tcti-device-async=$WITH_TCTI_ASYNC --with-fuzzing=libfuzzer --enable-tcti-fuzzing --enable-tcti-device=no --enable-tcti-mssim=no --disable-shared --with-crypto=$WITH_CRYPTO $CONFIGURE_OPTIONS CFLAGS=-I${PWD}/../osslinstall/usr/local/include LDFLAGS=-L${PWD}/../osslinstall/usr/local/lib
+ fi
+ - |
+ if [ "$CC" == "clang" ] && [ "x$FUZZING" == "x1" ]; then
+ make -j$(nproc) check
+ fi
- |
- popd
# make distcheck