Run ctime test in Linux MSan CI job

This commit is contained in:
Pieter Wuille 2022-12-06 18:53:51 -05:00
parent 18974061a3
commit 5e2e6fcfc0
2 changed files with 15 additions and 8 deletions

View File

@ -330,10 +330,11 @@ task:
ECDH: yes ECDH: yes
RECOVERY: yes RECOVERY: yes
SCHNORRSIG: yes SCHNORRSIG: yes
CTIMETEST: no CTIMETEST: yes
CC: clang CC: clang
SECP256K1_TEST_ITERS: 32 SECP256K1_TEST_ITERS: 32
ASM: no ASM: no
WITH_VALGRIND: no
container: container:
memory: 2G memory: 2G
matrix: matrix:

View File

@ -62,6 +62,7 @@ fi
--enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" \ --enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" \
--enable-module-schnorrsig="$SCHNORRSIG" \ --enable-module-schnorrsig="$SCHNORRSIG" \
--enable-examples="$EXAMPLES" \ --enable-examples="$EXAMPLES" \
--enable-ctime-tests="$CTIMETEST" \
--with-valgrind="$WITH_VALGRIND" \ --with-valgrind="$WITH_VALGRIND" \
--host="$HOST" $EXTRAFLAGS --host="$HOST" $EXTRAFLAGS
@ -78,14 +79,15 @@ export LOG_COMPILER="$WRAPPER_CMD"
make "$BUILD" make "$BUILD"
if [ "$BENCH" = "yes" ]
then
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool # Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
EXEC='./libtool --mode=execute' EXEC='./libtool --mode=execute'
if [ -n "$WRAPPER_CMD" ] if [ -n "$WRAPPER_CMD" ]
then then
EXEC="$EXEC $WRAPPER_CMD" EXEC="$EXEC $WRAPPER_CMD"
fi fi
if [ "$BENCH" = "yes" ]
then
{ {
$EXEC ./bench_ecmult $EXEC ./bench_ecmult
$EXEC ./bench_internal $EXEC ./bench_internal
@ -95,7 +97,11 @@ fi
if [ "$CTIMETEST" = "yes" ] if [ "$CTIMETEST" = "yes" ]
then then
if [ "$WITH_VALGRIND" = "yes" ]; then
./libtool --mode=execute valgrind --error-exitcode=42 ./ctime_tests > ctime_tests.log 2>&1 ./libtool --mode=execute valgrind --error-exitcode=42 ./ctime_tests > ctime_tests.log 2>&1
else
$EXEC ./ctime_tests > ctime_tests.log 2>&1
fi
fi fi
# Rebuild precomputed files (if not cross-compiling). # Rebuild precomputed files (if not cross-compiling).