blob: 8cdf79fde01abf975014c38567903a1112cdf51b (
plain)
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
|
#include "tests.h"
#include <camellia/syscalls.h>
#include <unistd.h>
void run_test(void (*fn)()) {
if (!fork()) {
fn();
exit(0);
} else {
/* successful tests must return 0 */
if (_syscall_await() != 0) test_fail();
}
}
int main(void) {
r_k_fs();
r_k_misc();
r_k_miscsyscall();
r_k_path();
r_k_threads();
r_libc_esemaphore();
r_libc_setjmp();
r_libc_string();
r_s_printf();
r_s_ringbuf();
return 0;
}
|