Implement code for integration test post

This commit is contained in:
Philipp Oppermann
2018-06-12 19:25:53 +02:00
parent 40eb19b613
commit 8b5be6ebc0
7 changed files with 125 additions and 12 deletions

View File

@@ -3,22 +3,12 @@
#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points
#![cfg_attr(test, allow(dead_code, unused_macros))] // allow unused code in test mode
extern crate spin;
extern crate volatile;
#[macro_use]
extern crate lazy_static;
#[cfg(test)]
extern crate array_init;
#[cfg(test)]
extern crate std;
extern crate blog_os;
#[cfg(not(test))]
use core::panic::PanicInfo;
#[macro_use]
mod vga_buffer;
/// This function is the entry point, since the linker looks for a function
/// named `_start_` by default.
#[cfg(not(test))]
@@ -36,4 +26,4 @@ pub extern "C" fn _start() -> ! {
pub fn panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
}
}