Skip to content

Commit 0ce4554

Browse files
committed
make test count iteration configurable by environment variable
1 parent 9e5939d commit 0ce4554

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests.c

+5
Original file line numberDiff line numberDiff line change
@@ -5626,6 +5626,11 @@ int main(int argc, char **argv) {
56265626
/* find iteration count */
56275627
if (argc > 1) {
56285628
count = strtol(argv[1], NULL, 0);
5629+
} else {
5630+
const char* env = getenv("SECP256K1_TEST_ITERS");
5631+
if (env) {
5632+
count = strtol(env, NULL, 0);
5633+
}
56295634
}
56305635
printf("test count = %i\n", count);
56315636

0 commit comments

Comments
 (0)