#![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]"); }