File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -328,10 +328,11 @@ task:
328
328
ECDH : yes
329
329
RECOVERY : yes
330
330
SCHNORRSIG : yes
331
- CTIMETEST : no
331
+ CTIMETEST : yes
332
332
CC : clang
333
333
SECP256K1_TEST_ITERS : 32
334
334
ASM : no
335
+ WITH_VALGRIND : no
335
336
container :
336
337
memory : 2G
337
338
matrix :
Original file line number Diff line number Diff line change 62
62
--enable-module-ecdh=" $ECDH " --enable-module-recovery=" $RECOVERY " \
63
63
--enable-module-schnorrsig=" $SCHNORRSIG " \
64
64
--enable-examples=" $EXAMPLES " \
65
+ --enable-ctime-tests=" $CTIMETEST " \
65
66
--with-valgrind=" $WITH_VALGRIND " \
66
67
--host=" $HOST " $EXTRAFLAGS
67
68
@@ -78,14 +79,15 @@ export LOG_COMPILER="$WRAPPER_CMD"
78
79
79
80
make " $BUILD "
80
81
82
+ # Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
83
+ EXEC=' ./libtool --mode=execute'
84
+ if [ -n " $WRAPPER_CMD " ]
85
+ then
86
+ EXEC=" $EXEC $WRAPPER_CMD "
87
+ fi
88
+
81
89
if [ " $BENCH " = " yes" ]
82
90
then
83
- # Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
84
- EXEC=' ./libtool --mode=execute'
85
- if [ -n " $WRAPPER_CMD " ]
86
- then
87
- EXEC=" $EXEC $WRAPPER_CMD "
88
- fi
89
91
{
90
92
$EXEC ./bench_ecmult
91
93
$EXEC ./bench_internal
95
97
96
98
if [ " $CTIMETEST " = " yes" ]
97
99
then
98
- ./libtool --mode=execute valgrind --error-exitcode=42 ./ctime_tests > ctime_tests.log 2>&1
100
+ if [ " $WITH_VALGRIND " = " yes" ]; then
101
+ ./libtool --mode=execute valgrind --error-exitcode=42 ./ctime_tests > ctime_tests.log 2>&1
102
+ else
103
+ $EXEC ./ctime_tests > ctime_tests.log 2>&1
104
+ fi
99
105
fi
100
106
101
107
# Rebuild precomputed files (if not cross-compiling).
You can’t perform that action at this time.
0 commit comments