Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
test_main.c File Reference
#include "test_declarations.h"
#include "test_utils.h"
#include <utilities.h>
Include dependency graph for test_main.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[MUNIT_ARRAY_PARAM(argc+1)])

Function Documentation

◆ main()

int main ( int argc,
char * argv[MUNIT_ARRAY_PARAM(argc+1)] )

Definition at line 25 of file test_main.c.

25 {
26
27 // create/clean file: for testing random 2-isogeny walks
28 char file_name2[256];
29
30 strcpy(file_name2, "TEST-");
31 strcat(file_name2, FIELD_NAME);
32 strcat(file_name2, "-deg2.log");
33
34 FILE *fptr2 = fopen(file_name2, "w");
35 if (fptr2 == NULL) {
36 printf("Could not open file");
37 return 0;
38 }
39 fclose(fptr2);
40 // create/clean file: for testing random 3-isogeny walks
41 char file_name3[256];
42
43 strcpy(file_name3, "TEST-");
44 strcat(file_name3, FIELD_NAME);
45 strcat(file_name3, "-deg3.log");
46
47 FILE *fptr3 = fopen(file_name3, "w");
48 if (fptr3 == NULL) {
49 printf("Could not open file");
50 return 0;
51 }
52 fclose(fptr3);
53
54 return munit_suite_main(&test_suite, NULL, argc, argv);
55}
int munit_suite_main(const MunitSuite *suite, void *user_data, int argc, char *const argv[MUNIT_ARRAY_PARAM(argc+1)])
Definition munit.c:2094
#define FIELD_NAME
Definition p254.h:6

References FIELD_NAME, and munit_suite_main().

Here is the call graph for this function: