summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMax Dymond <cmeister2@gmail.com>2017-09-25 10:59:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-10-04 15:33:36 +0200
commit4f38db1d28a971f938400f558e968fdffb9233a0 (patch)
treea2d59227a02d39d3b0ca9ee7832d8055d3f4a374 /.travis.yml
parent120d963a64f121619d69d6590b2cba7783a7df2a (diff)
downloadcurl-4f38db1d28a971f938400f558e968fdffb9233a0.tar.gz
fuzzer: move to using external curl-fuzzer
Use the external curl-fuzzer repository for fuzzing. Closes #1923
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml19
1 files changed, 8 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index 541628d99..b7776c98d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -156,18 +156,15 @@ script:
fi
- |
if [ "$T" = "fuzzer" ]; then
- export CC=clang
- export CXX=clang++
- export CFLAGS="-fsanitize=address"
+ # Download the fuzzer to a temporary folder
+ ./tests/fuzz/download_fuzzer.sh /tmp/curl_fuzzer
- # Specifically use libstdc++ for travis as libc++ is not installed.
- # This is ok because we're not compiling against libFuzzer.
- export CXXFLAGS="-fsanitize=address -stdlib=libstdc++"
- ./configure --disable-shared --enable-debug --enable-maintainer-mode
- make
- cd tests/fuzz
- make clean
- make check
+ export CURLSRC=$PWD
+
+ # Run the mainline fuzzer test
+ pushd /tmp/curl_fuzzer
+ ./mainline.sh ${CURLSRC}
+ popd
fi
# whitelist branches to avoid testing feature branches twice (as branch and as pull request)