make test count iteration configurable by environment variable

This commit is contained in:
Andrew Poelstra 2020-11-23 01:05:31 +00:00
parent 9e5939d284
commit 0ce4554881
1 changed files with 5 additions and 0 deletions

View File

@ -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);