From f73592503981eaacf1836f0d0049bed2f989212e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 30 Aug 2020 09:59:03 +0200 Subject: Added kernel testing suit --- kernel/test.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 kernel/test.c (limited to 'kernel/test.c') diff --git a/kernel/test.c b/kernel/test.c new file mode 100644 index 0000000..b328a2c --- /dev/null +++ b/kernel/test.c @@ -0,0 +1,34 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +void test_all(struct vid_info *vid_info) +{ + heap_init(0x00f00000); + boot_passed = vid_info; + + // Serial connection + serial_install(); + serial_print("\nConnected testing.\n"); + assert(vid_info && vid_info->mode && vid_info->vbe); + + // Install drivers + interrupts_install(); + timer_install(); + keyboard_install(); + mouse_install(); + + ls_root(); + + idle(); +} -- cgit v1.2.3