dendrobates-t-azureus/tests/basic_boot.rs
2019-11-13 14:26:39 +01:00

36 lines
773 B
Rust

#![no_std]
#![no_main]
#![feature(custom_test_frameworks)]
#![test_runner(dendrobates_tinctoreus_azureus::test_runner)]
#![reexport_test_harness_main = "test_main"]
use core::panic::PanicInfo;
use polling_serial::{serial_print, serial_println};
use vga_buffer::println;
use bootloader::{entry_point, BootInfo};
entry_point!(test_kernel_main);
/// Entry point for `cargo xtest`
fn test_kernel_main(_boot_info: &'static BootInfo) -> ! {
dendrobates_tinctoreus_azureus::init();
test_main();
loop {}
}
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
dendrobates_tinctoreus_azureus::test_panic_handler(info)
}
#[test_case]
fn test_println() {
serial_print!("test_println... ");
println!("test_println output");
serial_println!("[ok]");
}