Skip to content

Commit 7d48f5e

Browse files
Merge #1581: test, ci: Lower default iteration count to 16
0f73caf test, ci: Lower default iteration count to 16 (Hennadii Stepanov) Pull request description: The number of test iterations in the CI remains the same. Resolves #1561. ``` $ ./build/src/tests test count = 16 random seed = 59ea2b21267ec0ef0b4d13821292489f random run = 2936c044f82c7598a866869b9d954d42 no problems found ``` ACKs for top commit: sipa: utACK 0f73caf jonasnick: ACK 0f73caf Tree-SHA512: 84b265dc5d2780b3ea0a38f50ac8871d850ef2c97f33a0a5816baf20ac71c01db8b85696b343b089d7116d9cdb9450a6ca668229d95e54a39920d0e91a3127b3
2 parents 9a8db52 + 0f73caf commit 7d48f5e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.cirrus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
MUSIG: no
2626
ELLSWIFT: no
2727
### test options
28-
SECP256K1_TEST_ITERS:
28+
SECP256K1_TEST_ITERS: 64
2929
BENCH: yes
3030
SECP256K1_BENCH_ITERS: 2
3131
CTIMETESTS: yes

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
MUSIG: 'no'
3737
ELLSWIFT: 'no'
3838
### test options
39-
SECP256K1_TEST_ITERS:
39+
SECP256K1_TEST_ITERS: 64
4040
BENCH: 'yes'
4141
SECP256K1_BENCH_ITERS: 2
4242
CTIMETESTS: 'yes'

src/tests.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define CONDITIONAL_TEST(cnt, nam) if (COUNT < (cnt)) { printf("Skipping %s (iteration count too low)\n", nam); } else
3939

40-
static int COUNT = 64;
40+
static int COUNT = 16;
4141
static secp256k1_context *CTX = NULL;
4242
static secp256k1_context *STATIC_CTX = NULL;
4343

@@ -5544,7 +5544,7 @@ static void run_ecmult_constants(void) {
55445544
test_ecmult_constants_sha(1607366309u, 2048, expected32_8bit8);
55455545
}
55465546

5547-
CONDITIONAL_TEST(35, "test_ecmult_constants_2bit") {
5547+
CONDITIONAL_TEST(16, "test_ecmult_constants_2bit") {
55485548
test_ecmult_constants_2bit();
55495549
}
55505550
}

0 commit comments

Comments
 (0)