You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#846: ci: Run ASan/LSan and reorganize sanitizer and Valgrind jobs
02dcea1 ci: Make test iterations configurable and tweak for sanitizer builds (Tim Ruffing)
489ff5c tests: Treat empty SECP2561_TEST_ITERS as if it was unset (Tim Ruffing)
fcfcb97 ci: Simplify to use generic wrapper for QEMU, Valgrind, etc (Tim Ruffing)
de4157f ci: Run ASan/LSan and reorganize sanitizer and Valgrind jobs (Tim Ruffing)
Pull request description:
ACKs for top commit:
sipa:
utACK 02dcea1
jonasnick:
ACK 02dcea1 spot-checked ci output, checked that when `valgrind ./tests` crashes then `LOG_COMPILER=valgrind make check` also crashes.
Tree-SHA512: 5f4a2fe186eca0b4ca29190eb18e20d0804934df614cdc8eb8cf0145ff36ded43194325572bb77eaaeba85c369f6effe69b7bdf7df97ba418d72cf36c9749a8c
# The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
Copy file name to clipboardExpand all lines: ci/cirrus.sh
+8-33Lines changed: 8 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -29,48 +29,23 @@ file *tests* || true
29
29
file bench_*||true
30
30
file .libs/*||true
31
31
32
-
if [ -n"$BUILD" ]
33
-
then
34
-
make "$BUILD"
35
-
fi
32
+
# This tells `make check` to wrap test invocations.
33
+
export LOG_COMPILER="$WRAPPER_CMD"
36
34
37
-
if [ "$RUN_VALGRIND"="yes" ]
38
-
then
39
-
# the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
40
-
valgrind --error-exitcode=42 ./tests 16
41
-
valgrind --error-exitcode=42 ./exhaustive_tests
42
-
fi
35
+
# This limits the iterations in the tests and benchmarks.
36
+
export SECP256K1_TEST_ITERS="$TEST_ITERS"
37
+
export SECP256K1_BENCH_ITERS="$BENCH_ITERS"
43
38
44
-
if [ -n"$QEMU_CMD" ]
45
-
then
46
-
$QEMU_CMD ./tests 16
47
-
$QEMU_CMD ./exhaustive_tests
48
-
fi
49
-
50
-
if [ -n"$WINE_CMD" ]
51
-
then
52
-
$WINE_CMD ./tests 16
53
-
$WINE_CMD ./exhaustive_tests
54
-
fi
39
+
make "$BUILD"
55
40
56
41
if [ "$BENCH"="yes" ]
57
42
then
58
43
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
59
44
EXEC='./libtool --mode=execute'
60
-
if [ -n"$QEMU_CMD" ]
61
-
then
62
-
EXEC="$EXEC$QEMU_CMD"
63
-
fi
64
-
if [ "$RUN_VALGRIND"="yes" ]
65
-
then
66
-
EXEC="$EXEC valgrind --error-exitcode=42"
67
-
fi
68
-
if [ -n"$WINE_CMD" ]
45
+
if [ -n"$WRAPPER_CMD" ]
69
46
then
70
-
EXEC="$WINE_CMD"
47
+
EXEC="$EXEC$WRAPPER_CMD"
71
48
fi
72
-
# This limits the iterations in the benchmarks below to ITER iterations.
0 commit comments