summaryrefslogtreecommitdiff
path: root/src/kernel/tests/main.c
blob: 41ebe8dea7229a171731a1425bc44a57c47a39ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <kernel/panic.h>
#include <kernel/tests/base.h>
#include <kernel/tests/tests.h>

bool _did_tests_fail;

TEST(basic_math) {
	TEST_IF(2 + 2 == 4);
	TEST_IF(2 * 2 == 4);
}

void tests_all() {
	_did_tests_fail = false;

	TEST_RUN(basic_math);
	tests_utils();

	if (_did_tests_fail)
		panic();
}