Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/tests_exhaustive.c
Show First 20 Lines • Show All 347 Lines • ▼ Show 20 Lines | |||||
int main(int argc, char** argv) { | int main(int argc, char** argv) { | ||||
int i; | int i; | ||||
secp256k1_gej groupj[EXHAUSTIVE_TEST_ORDER]; | secp256k1_gej groupj[EXHAUSTIVE_TEST_ORDER]; | ||||
secp256k1_ge group[EXHAUSTIVE_TEST_ORDER]; | secp256k1_ge group[EXHAUSTIVE_TEST_ORDER]; | ||||
unsigned char rand32[32]; | unsigned char rand32[32]; | ||||
secp256k1_context *ctx; | secp256k1_context *ctx; | ||||
/* Disable buffering for stdout to improve reliability of getting | |||||
* diagnostic information. Happens right at the start of main because | |||||
* setbuf must be used before any other operation on the stream. */ | |||||
setbuf(stdout, NULL); | |||||
/* Also disable buffering for stderr because it's not guaranteed that it's | |||||
* unbuffered on all systems. */ | |||||
setbuf(stderr, NULL); | |||||
printf("Exhaustive tests for order %lu\n", (unsigned long)EXHAUSTIVE_TEST_ORDER); | printf("Exhaustive tests for order %lu\n", (unsigned long)EXHAUSTIVE_TEST_ORDER); | ||||
/* find iteration count */ | /* find iteration count */ | ||||
if (argc > 1) { | if (argc > 1) { | ||||
count = strtol(argv[1], NULL, 0); | count = strtol(argv[1], NULL, 0); | ||||
} | } | ||||
printf("test count = %i\n", count); | printf("test count = %i\n", count); | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |