kmalloc_incref()
[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,        CONFIG_TEST_ipi_sending),
15         PB_K_TEST_REG(pic_reception,      CONFIG_TEST_pic_reception),
16         PB_K_TEST_REG(ioapic_pit_reroute, CONFIG_TEST_ioapic_status_bit),
17         PB_K_TEST_REG(lapic_status_bit,   CONFIG_TEST_lapic_status_bit),
18         PB_K_TEST_REG(pit,                CONFIG_TEST_pit),
19         PB_K_TEST_REG(circ_buffer,        CONFIG_TEST_circ_buffer),
20         PB_K_TEST_REG(kernel_messages,    CONFIG_TEST_kernel_messages),
21 #endif // CONFIG_X86
22 #ifdef CONFIG_PAGE_COLORING
23         PB_K_TEST_REG(page_coloring,      CONFIG_TEST_page_coloring),
24         PB_K_TEST_REG(color_alloc,        CONFIG_TEST_color_alloc),
25 #endif // CONFIG_PAGE_COLORING
26         PB_K_TEST_REG(print_info,         CONFIG_TEST_print_info),
27         PB_K_TEST_REG(barrier,            CONFIG_TEST_barrier),
28         PB_K_TEST_REG(interrupts_irqsave, CONFIG_TEST_interrupts_irqsave),
29         PB_K_TEST_REG(bitmasks,           CONFIG_TEST_bitmasks),
30         PB_K_TEST_REG(checklists,         CONFIG_TEST_checklists),
31         PB_K_TEST_REG(smp_call_functions, CONFIG_TEST_smp_call_functions),
32         PB_K_TEST_REG(slab,               CONFIG_TEST_slab),
33         PB_K_TEST_REG(kmalloc,            CONFIG_TEST_kmalloc),
34         PB_K_TEST_REG(hashtable,          CONFIG_TEST_hashtable),
35         PB_K_TEST_REG(bcq,                CONFIG_TEST_bcq),
36         PB_K_TEST_REG(ucq,                CONFIG_TEST_ucq),
37         PB_K_TEST_REG(vm_regions,         CONFIG_TEST_vm_regions),
38         PB_K_TEST_REG(radix_tree,         CONFIG_TEST_radix_tree),
39         PB_K_TEST_REG(random_fs,          CONFIG_TEST_random_fs),
40         PB_K_TEST_REG(kthreads,           CONFIG_TEST_kthreads),
41         PB_K_TEST_REG(kref,               CONFIG_TEST_kref),
42         PB_K_TEST_REG(atomics,            CONFIG_TEST_atomics),
43         PB_K_TEST_REG(abort_halt,         CONFIG_TEST_abort_halt),
44         PB_K_TEST_REG(cv,                 CONFIG_TEST_cv),
45         PB_K_TEST_REG(memset,             CONFIG_TEST_memset),
46         PB_K_TEST_REG(setjmp,             CONFIG_TEST_setjmp),
47         PB_K_TEST_REG(apipe,              CONFIG_TEST_apipe),
48         PB_K_TEST_REG(rwlock,             CONFIG_TEST_rwlock),
49         PB_K_TEST_REG(rv,                 CONFIG_TEST_rv),
50         PB_K_TEST_REG(alarm,              CONFIG_TEST_alarm)
51 };
52
53 int num_pb_kernel_tests = sizeof(pb_kernel_tests) /
54                           sizeof(struct pb_kernel_test);