-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.c
More file actions
34 lines (27 loc) · 663 Bytes
/
Copy pathtest.c
File metadata and controls
34 lines (27 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "std.h"
#include "vec.h"
void test_path(void);
void test_vec(void);
void test_map(void);
void test_lexer(void);
void test_preprocessor(Vec *include_directories);
void test_parser(void);
void test_generator(void);
void test_engine(void);
int main(int argc, char **argv) {
if (argc != 2) {
fprintf(stderr, "%s <test directory>\n", argv[0]);
exit(1);
}
test_path();
test_vec();
test_map();
test_lexer();
Vec *include_directories = vec_new();
vec_push(include_directories, argv[1]);
test_preprocessor(include_directories);
test_parser();
test_generator();
test_engine();
return 0;
}