summaryrefslogtreecommitdiff
path: root/kernel/tests
diff options
context:
space:
mode:
authornatrixaeria <upezu@student.kit.edu>2019-11-09 04:44:04 +0100
committernatrixaeria <upezu@student.kit.edu>2019-11-09 04:44:04 +0100
commitb17a0a41bea7789178919f4a0999ea8519e1f897 (patch)
tree96ef6db92da1c63e99041ef7220e58e8af577543 /kernel/tests
parenta68a9a11c91c3aca4d6f2e8a32df673ca39ec34d (diff)
Introduce integration test crate
Diffstat (limited to 'kernel/tests')
-rw-r--r--kernel/tests/test01.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/kernel/tests/test01.rs b/kernel/tests/test01.rs
new file mode 100644
index 0000000..933d689
--- /dev/null
+++ b/kernel/tests/test01.rs
@@ -0,0 +1,25 @@
+#![no_main]
+#![feature(compiler_builtins_lib)]
+#![feature(custom_test_frameworks)]
+#![feature(abi_x86_interrupt)]
+#![feature(panic_info_message)]
+#![test_runner(crate::testing::serial_test_runner)]
+#![no_std]
+
+use kernel;
+use kernel::io::qemu;
+
+#[no_mangle]
+extern "C" fn _start() -> ! {
+ kernel::io::panic_screen::show(Some(&format_args!("hey bro")));
+
+
+ loop {}
+}
+
+#[cfg(test)]
+#[panic_handler]
+#[no_mangle]
+extern "C" fn panic_handler(info: &core::panic::PanicInfo) -> ! {
+ loop {}
+}