Implemented Kernel Post-boot testing.
[akaros.git] / kern / src / tests.c
1 /*
2  * Declaration of all the tests to be ran.
3  */
4
5 #include <stdbool.h>
6 #include <test_infrastructure.h>
7 #include "tests_pb_kernel.c"
8
9
10 /* Postboot kernel tests declarations. */
11
12 struct pb_kernel_test pb_kernel_tests[] = {
13 #ifdef CONFIG_X86
14         PB_K_TEST_REG(ipi_sending),
15         PB_K_TEST_REG(pic_reception),
16         PB_K_TEST_REG(ioapic_pit_reroute),
17         PB_K_TEST_REG(lapic_status_bit),
18         PB_K_TEST_REG(pit),
19         PB_K_TEST_REG(circ_buffer),
20         PB_K_TEST_REG(kernel_messages),
21 #endif // CONFIG_X86
22 #ifdef CONFIG_PAGE_COLORING
23         PB_K_TEST_REG(page_coloring),
24         PB_K_TEST_REG(color_alloc),
25 #endif // CONFIG_PAGE_COLORING
26         PB_K_TEST_REG(print_info), 
27         PB_K_TEST_REG(barrier),
28         PB_K_TEST_REG(interrupts_irqsave),
29         PB_K_TEST_REG(bitmasks),
30         PB_K_TEST_REG(checklists),
31         PB_K_TEST_REG(smp_call_functions),
32         PB_K_TEST_REG(slab),
33         PB_K_TEST_REG(kmalloc),
34         PB_K_TEST_REG(hashtable),
35         PB_K_TEST_REG(bcq),
36         PB_K_TEST_REG(ucq),
37         PB_K_TEST_REG(vm_regions),
38         PB_K_TEST_REG(radix_tree),
39         PB_K_TEST_REG(random_fs),
40         PB_K_TEST_REG(kthreads),
41         PB_K_TEST_REG(kref),
42         PB_K_TEST_REG(atomics),
43         PB_K_TEST_REG(abort_halt),
44         PB_K_TEST_REG(cv),
45         PB_K_TEST_REG(memset),
46         PB_K_TEST_REG(setjmp),
47         PB_K_TEST_REG(apipe),
48         PB_K_TEST_REG(rwlock),
49         PB_K_TEST_REG(rv),
50         PB_K_TEST_REG(alarm)
51 };
52
53 int num_pb_kernel_tests = sizeof(pb_kernel_tests) /
54                           sizeof(struct pb_kernel_test);