summaryrefslogtreecommitdiff
path: root/kern/kernel.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-05-20 00:02:46 +0200
committerRichard Braun <rbraun@sceen.net>2014-05-20 00:07:36 +0200
commit9a3698e511e3dad24823b01cff4ecbd7f8627205 (patch)
treebbe17f96de143a33a32509ac7ae09f3db19c48ec /kern/kernel.c
parenta4645ebc5aaa798730e1dd47b2391174b257ce47 (diff)
Add basic internal test framework
Diffstat (limited to 'kern/kernel.c')
-rw-r--r--kern/kernel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kern/kernel.c b/kern/kernel.c
index 658c18d1..5d8b31ae 100644
--- a/kern/kernel.c
+++ b/kern/kernel.c
@@ -27,6 +27,10 @@
#include <machine/cpu.h>
#include <vm/vm_page.h>
+#ifdef RUN_TEST_MODULE
+#include <test/test.h>
+#endif /* RUN_TEST_MODULE */
+
void __init
kernel_main(void)
{
@@ -39,6 +43,10 @@ kernel_main(void)
work_setup();
llsync_setup();
+#ifdef RUN_TEST_MODULE
+ test_setup();
+#endif /* RUN_TEST_MODULE */
+
/*
* Enabling application processors is done late in the boot process for
* two reasons :