diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-01-12 14:26:06 -0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-01-12 15:19:04 -0800 |
commit | 4f1a929fed98173f35da2d95263037c921a7ff6e (patch) | |
tree | 9dd8d3cbf7d6c595f06f7823a9e795ac9b0c6096 /test/travis-build.sh | |
parent | bcb8f7599539248c53051b06b81c3d4f3b327f94 (diff) |
Only use valgrind if requested explicitly + enable address sanitizer
Diffstat (limited to 'test/travis-build.sh')
-rwxr-xr-x | test/travis-build.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/travis-build.sh b/test/travis-build.sh index d0b172b..f971cbe 100755 --- a/test/travis-build.sh +++ b/test/travis-build.sh @@ -2,7 +2,12 @@ set -e +# Disable leak checking for now, there are some issues (or false positives) +# that we still need to fix +export ASAN_OPTIONS="detect_leaks=0" + export CFLAGS="-Werror" +export LSAN_OPTIONS="suppressions=$(pwd)/test/lsan_suppress.txt" export CC # Standard build @@ -18,14 +23,14 @@ for CC in gcc gcc-6 clang; do sudo chown root:root util/fusermount3 sudo chmod 4755 util/fusermount3 - ninja tests + TEST_WITH_VALGRIND=true ninja tests cd .. done (cd build-$CC; sudo ninja install) # Sanitized build CC=clang -for san in undefined; do +for san in undefined address; do mkdir build-${san}; cd build-${san} # b_lundef=false is required to work around clang # bug, cf. https://groups.google.com/forum/#!topic/mesonbuild/tgEdAXIIdC4 |