Skip to content

Commit dd98cc9

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

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.travis.yml

Lines changed: 18 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 ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes
67+
- 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 ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes
75+
- VALGRIND=yes EXTRAFLAGS="--disable-openssl-tests CPPFLAGS=-DVALGRIND" BUILD=
6876
addons:
6977
apt:
7078
packages:
@@ -73,9 +81,16 @@ matrix:
7381
before_install: mkdir -p `dirname $GUAVA_JAR`
7482
install: if [ ! -f $GUAVA_JAR ]; then wget $GUAVA_URL -O $GUAVA_JAR; fi
7583
before_script: ./autogen.sh
84+
7685
script:
7786
- if [ -n "$HOST" ]; then export USE_HOST="--host=$HOST"; fi
7887
- if [ "x$HOST" = "xi686-linux-gnu" ]; then export CC="$CC -m32"; fi
7988
- ./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
8089
- 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
90+
- # 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)
91+
- # 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)
92+
- if [ -n "$VALGRIND" ]; then
93+
make -j2 &&
94+
travis_wait 30 valgrind --error-exitcode=42 ./tests 16 &&
95+
travis_wait 30 valgrind --error-exitcode=42 ./exhaustive_tests;
96+
fi

0 commit comments

Comments
 (0)