Skip to content

Commit

Permalink
ci: Make test iterations configurable and tweak for sanitizer builds
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed May 17, 2021
1 parent 78c449e commit 1191bb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:
EXPERIMENTAL: no
CTIMETEST: yes
BENCH: yes
ITERS: 2
TEST_ITERS: 16
BENCH_ITERS: 2
MAKEFLAGS: -j2

cat_logs_snippet: &CAT_LOGS
Expand Down Expand Up @@ -271,6 +272,7 @@ task:
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
ASAN_OPTIONS: "strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1"
LSAN_OPTIONS: "use_unaligned=0"
TEST_ITERS: 32
# Try to cover many configurations with just a tiny matrix.
matrix:
- env:
Expand Down
6 changes: 3 additions & 3 deletions ci/cirrus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi

if [ -n "$WRAPPER_CMD" ]
then
$WRAPPER_CMD ./tests 16
$WRAPPER_CMD ./tests $TEST_ITERS
$WRAPPER_CMD ./exhaustive_tests
fi

Expand All @@ -48,8 +48,8 @@ then
then
EXEC="$EXEC $WRAPPER_CMD"
fi
# This limits the iterations in the benchmarks below to ITER iterations.
export SECP256K1_BENCH_ITERS="$ITERS"
# This limits the iterations in the benchmarks below to BENCH_ITERS iterations.
export SECP256K1_BENCH_ITERS="$BENCH_ITERS"
{
$EXEC ./bench_ecmult
$EXEC ./bench_internal
Expand Down

0 comments on commit 1191bb0

Please sign in to comment.