summaryrefslogtreecommitdiff
path: root/src/user/app/tests/tests.c
blob: f9b085af47a59ecf17a2646f52d38fe98ac0efec (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
#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_string();
	r_s_printf();
	r_s_ringbuf();
	return 0;
}