Skip to content

Commit

Permalink
Enable more sanitizers on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Nov 12, 2020
1 parent 9e5939d commit 9e55f58
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,24 @@ env:
- BUILD=distcheck WITH_VALGRIND=no CTIMETEST=no BENCH=no
- CPPFLAGS=-DDETERMINISTIC
- CFLAGS=-O0 CTIMETEST=no
- CFLAGS="-fsanitize=undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=undefined -fno-omit-frame-pointer" UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1" BIGNUM=no ASM=x86_64 ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes CTIMETEST=no
- >-
BIGNUM=no ASM=no STATICPRECOMPUTATION=no ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes CTIMETEST=no
CFLAGS="-fsanitize=undefined,address" LDFLAGS="-fsanitize=undefined,address"
CFLAGS_FOR_BUILD="-fsanitize=undefined,address" LDFLAGS_FOR_BUILD="-fsanitize=undefined,address"
UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1"
ASAN_OPTIONS="strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1"
LSAN_OPTIONS="use_unaligned=0"
- >-
BIGNUM=auto ASM=x86_64 STATICPRECOMPUTATION=yes ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes CTIMETEST=no
CFLAGS="-fsanitize=undefined,address" LDFLAGS="-fsanitize=undefined,address"
CFLAGS_FOR_BUILD="-fsanitize=undefined,address" LDFLAGS_FOR_BUILD="-fsanitize=undefined,address"
UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1"
ASAN_OPTIONS="strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1"
LSAN_OPTIONS="use_unaligned=0"
- ECMULTGENPRECISION=2
- ECMULTGENPRECISION=8
- RUN_VALGRIND=yes BIGNUM=no ASM=x86_64 ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes EXTRAFLAGS="--disable-openssl-tests" BUILD=
- RUN_VALGRIND=yes BIGNUM=no ASM=x86_64 STATICPRECOMPUTATION=no ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes EXTRAFLAGS="--disable-openssl-tests" BUILD=
- RUN_VALGRIND=yes BIGNUM=auto ASM=no STATICPRECOMPUTATION=yes ECDH=yes RECOVERY=yes EXPERIMENTAL=yes SCHNORRSIG=yes EXTRAFLAGS="--disable-openssl-tests" BUILD=
matrix:
fast_finish: true
include:
Expand Down Expand Up @@ -107,3 +121,4 @@ after_script:
- cat ./bench.log
- $CC --version
- valgrind --version
- cat ./config.log
12 changes: 8 additions & 4 deletions contrib/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
set -e
set -x

if [ "$HOST" = "i686-linux-gnu" ]
then
export CC="$CC -m32"
fi
if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$TRAVIS_COMPILER" = "gcc" ]
then
export CC="gcc-9"
export CC_FOR_BUILD="$CC"
fi

if [ "$HOST" = "i686-linux-gnu" ]
then
export CC="$CC -m32"
fi

$CC --version

./configure \
--enable-experimental="$EXPERIMENTAL" \
--with-test-override-wide-multiply="$WIDEMUL" --with-bignum="$BIGNUM" --with-asm="$ASM" \
Expand Down

0 comments on commit 9e55f58

Please sign in to comment.