mirror of
https://github.com/status-im/secp256k1.git
synced 2025-02-23 11:18:15 +00:00
make test count iteration configurable by environment variable
This commit is contained in:
parent
9e5939d284
commit
0ce4554881
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user