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