Skip to content

Commit 87191d1

Browse files
committed
travis: Added a valgrind test without endro and enabled recovery+ecdh
1 parent b4c1382 commit 87191d1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.travis.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,16 @@ matrix:
6363
- libgmp-dev:i386
6464
- compiler: gcc
6565
env:
66-
- FIELD=auto BIGNUM=no SCALAR=auto ENDOMORPHISM=yes STATICPRECOMPUTATION=yes ASM=x86_64
67-
- EXPERIMENTAL=no ECDH=no RECOVERY=no VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests CPPFLAGS=-DVALGRIND" HOST= BUILD= JNI=no
66+
- BIGNUM=no ENDOMORPHISM=yes STATICPRECOMPUTATION=yes ASM=x86_64
67+
- EXPERIMENTAL=yes ECDH=yes RECOVERY=yes VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests CPPFLAGS=-DVALGRIND" BUILD=
68+
addons:
69+
apt:
70+
packages:
71+
- valgrind
72+
- compiler: gcc
73+
env: # The same as above but without endomorphism.
74+
- BIGNUM=no ENDOMORPHISM=no STATICPRECOMPUTATION=yes ASM=x86_64
75+
- EXPERIMENTAL=yes ECDH=yes RECOVERY=yes VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests CPPFLAGS=-DVALGRIND" BUILD=
6876
addons:
6977
apt:
7078
packages:
@@ -78,4 +86,10 @@ script:
7886
- if [ "x$HOST" = "xi686-linux-gnu" ]; then export CC="$CC -m32"; fi
7987
- ./configure --enable-experimental=$EXPERIMENTAL --enable-endomorphism=$ENDOMORPHISM --with-field=$FIELD --with-bignum=$BIGNUM --with-asm=$ASM --with-scalar=$SCALAR --enable-ecmult-static-precomputation=$STATICPRECOMPUTATION --with-ecmult-gen-precision=$ECMULTGENPRECISION --enable-module-ecdh=$ECDH --enable-module-recovery=$RECOVERY --enable-jni=$JNI $EXTRAFLAGS $USE_HOST
8088
- if [ -n "$BUILD" ]; then make -j2 $BUILD; fi
81-
- if [ -n "$VALGRIND" ]; then make -j2 && travis_wait 30 valgrind --error-exitcode=42 ./tests 8; fi
89+
- if [ -n "$VALGRIND" ]; then
90+
make -j2 &&
91+
/* travis_wait extends the 10 minutes without output allowed https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received */
92+
/* the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 http://valgrind.org/docs/manual/manual-core.html */
93+
travis_wait 30 valgrind --error-exitcode=42 ./tests 8 &&
94+
travis_wait 30 valgrind --error-exitcode=42 ./exhaustive_tests 8;
95+
fi

0 commit comments

Comments
 (0)