From 606d213766fb94a4653ec41ef3b91cc0a96b9570 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 1 Nov 2020 23:26:04 +0100 Subject: [PATCH] travis: use valgrind when running tests for debug builds Except the non-x86 and sanitizer builds Closes #6154 --- .travis.yml | 8 ++++---- scripts/travis/script.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2f036c833..6ee8228ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -334,7 +334,7 @@ jobs: - libbrotli-dev - libzstd-dev - env: - - T=debug CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" LIBS="-ldl -lubsan" + - T=debug CFLAGS="-fsanitize=address,undefined,signed-integer-overflow -fno-sanitize-recover=undefined,integer -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined -fno-sanitize-recover=undefined,integer" LIBS="-ldl -lubsan" TFLAGS=-n - *clang compiler: clang addons: @@ -346,7 +346,7 @@ jobs: - libbrotli-dev - libzstd-dev - env: - - T=debug C="" + - T=debug C="" TFLAGS=-n - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" arch: arm64 addons: @@ -364,7 +364,7 @@ jobs: - zlib1g-dev - env: - - T=debug C="" + - T=debug C="" TFLAGS=-n - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" arch: ppc64le addons: @@ -382,7 +382,7 @@ jobs: - zlib1g-dev - env: - - T=debug C="" + - T=debug C="" TFLAGS=-n - OVERRIDE_CC="CC=gcc-8" OVERRIDE_CXX="CXX=g++-8" arch: s390x addons: diff --git a/scripts/travis/script.sh b/scripts/travis/script.sh index 732a50fd7..4b7b7bb0a 100755 --- a/scripts/travis/script.sh +++ b/scripts/travis/script.sh @@ -49,7 +49,7 @@ if [ "$T" = "debug" ]; then make make examples if [ -z $NOTESTS ]; then - make TFLAGS=-n test-nonflaky + make test-nonflaky fi fi