blob: dea9cfed2a018cc5ec4ee632fbb838900b93e783 [file] [log] [blame]
David Browndd2b1182017-11-02 15:39:21 -06001//! Core tests
2//!
3//! Run the existing testsuite as a Rust unit test.
4
5extern crate bootsim;
6
7use bootsim::{ALL_DEVICES, RunStatus};
8
9#[test]
10fn core_tests() {
11 let mut status = RunStatus::new();
12
13 for &dev in ALL_DEVICES {
14 for &align in &[1, 2, 4, 8] {
15 status.run_single(dev, align);
16 }
17 }
18
19 assert!(status.failures() == 0);
20}