Skip to content

Commit

Permalink
make test count iteration configurable by environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Nov 23, 2020
1 parent 9e5939d commit 0ce4554
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -5626,6 +5626,11 @@ int main(int argc, char **argv) {
/* find iteration count */
if (argc > 1) {
count = strtol(argv[1], NULL, 0);
} else {
const char* env = getenv("SECP256K1_TEST_ITERS");
if (env) {
count = strtol(env, NULL, 0);
}
}
printf("test count = %i\n", count);

Expand Down

0 comments on commit 0ce4554

Please sign in to comment.