-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.c
More file actions
43 lines (34 loc) · 858 Bytes
/
test.c
File metadata and controls
43 lines (34 loc) · 858 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
35
36
37
38
39
40
41
42
43
#if !defined(_WIN32) && !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
#define AVEN_IMPLEMENTATION
#include <aven.h>
#include <aven/arena.h>
#include <aven/fs.h>
#include <aven/path.h>
#include <aven/str.h>
#include <aven/test.h>
#include <stdlib.h>
#include "test/bfs.h"
#include "test/dfs.h"
#include "test/io.h"
#include "test/plane.h"
#include "test/p3color.h"
#include "test/p3choose.h"
#define ARENA_SIZE (4096 * 2000)
int main(void) {
aven_fs_utf8_mode();
void *mem = malloc(ARENA_SIZE);
if (mem == NULL) {
aven_panic("malloc failed");
}
AvenArena test_arena = aven_arena_init(mem, ARENA_SIZE);
test_bfs(test_arena);
test_dfs(test_arena);
test_io(test_arena);
test_plane(test_arena);
test_p3color(test_arena);
test_p3choose(test_arena);
free(mem);
return 0;
}