Skip to content

Commit a25d305

Browse files
committed
Run valgrind_ctime_test in travis
1 parent bc53580 commit a25d305

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.travis.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ addons:
55
packages:
66
- libgmp-dev
77
- valgrind
8+
- libtool-bin
89
compiler:
910
- clang
1011
- gcc
1112
env:
1213
global:
13-
- FIELD=auto BIGNUM=auto SCALAR=auto ENDOMORPHISM=no STATICPRECOMPUTATION=yes ECMULTGENPRECISION=auto ASM=no BUILD=check EXTRAFLAGS= HOST= ECDH=no RECOVERY=no EXPERIMENTAL=no
14+
- FIELD=auto BIGNUM=auto SCALAR=auto ENDOMORPHISM=no STATICPRECOMPUTATION=yes ECMULTGENPRECISION=auto ASM=no BUILD=-j EXTRAFLAGS= HOST= ECDH=no RECOVERY=no EXPERIMENTAL=no CTIMETEST=yes
1415
matrix:
1516
- SCALAR=32bit RECOVERY=yes
1617
- SCALAR=32bit FIELD=32bit ECDH=yes EXPERIMENTAL=yes
@@ -24,7 +25,7 @@ env:
2425
- BIGNUM=no
2526
- BIGNUM=no ENDOMORPHISM=yes RECOVERY=yes EXPERIMENTAL=yes
2627
- BIGNUM=no STATICPRECOMPUTATION=no
27-
- BUILD=distcheck
28+
- BUILD=distcheck CTIMETEST=
2829
- EXTRAFLAGS=CPPFLAGS=-DDETERMINISTIC
2930
- EXTRAFLAGS=CFLAGS=-O0
3031
- ECMULTGENPRECISION=2
@@ -39,25 +40,37 @@ matrix:
3940
packages:
4041
- gcc-multilib
4142
- libgmp-dev:i386
43+
- valgrind
44+
- libtool-bin
45+
- libc6-dbg:i386
4246
- compiler: clang
4347
env: HOST=i686-linux-gnu
4448
addons:
4549
apt:
4650
packages:
4751
- gcc-multilib
52+
- valgrind
53+
- libtool-bin
54+
- libc6-dbg:i386
4855
- compiler: gcc
4956
env: HOST=i686-linux-gnu ENDOMORPHISM=yes
5057
addons:
5158
apt:
5259
packages:
5360
- gcc-multilib
61+
- valgrind
62+
- libtool-bin
63+
- libc6-dbg:i386
5464
- compiler: gcc
5565
env: HOST=i686-linux-gnu
5666
addons:
5767
apt:
5868
packages:
5969
- gcc-multilib
6070
- libgmp-dev:i386
71+
- valgrind
72+
- libtool-bin
73+
- libc6-dbg:i386
6174
- compiler: gcc
6275
env:
6376
- BIGNUM=no ENDOMORPHISM=yes ASM=x86_64 EXPERIMENTAL=yes ECDH=yes RECOVERY=yes
@@ -73,15 +86,19 @@ script:
7386
- if [ -n "$HOST" ]; then export USE_HOST="--host=$HOST"; fi
7487
- if [ "x$HOST" = "xi686-linux-gnu" ]; then export CC="$CC -m32"; fi
7588
- ./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 $EXTRAFLAGS $USE_HOST
76-
- if [ -n "$BUILD" ]; then make -j2 $BUILD; fi
89+
- if [ -n "$BUILD" ]; then
90+
make -j2 $BUILD;
91+
fi
7792
- # 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)
7893
- # 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)
7994
- if [ -n "$VALGRIND" ]; then
80-
make -j2 &&
81-
travis_wait 30 valgrind --error-exitcode=42 ./tests 16 &&
82-
travis_wait 30 valgrind --error-exitcode=42 ./exhaustive_tests;
95+
make -j2;
96+
fi
97+
- if [ -n "$CTIMETEST" ]; then
98+
libtool --mode=execute valgrind ./valgrind_ctime_test &> valgrind_ctime_test.log;
8399
fi
84100

85101
after_script:
86102
- cat ./tests.log
87103
- cat ./exhaustive_tests.log
104+
- cat ./valgrind_ctime_test.log

0 commit comments

Comments
 (0)