File tree 2 files changed +9
-17
lines changed
2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 53
53
54
54
kernel_build :
55
55
@cargo build $(CARGO_ARGS )
56
-
56
+
57
57
kernel_test :
58
- @cargo test $(CARGO_ARGS )
58
+ @cargo rustc $(CARGO_ARGS ) -- --test
59
59
60
60
$(ISO ) : gen_build_dirs limine ovmf
61
61
@cp target/x86_64-unknown-none/$(PROFILE ) /monoos $(KERNEL_BIN )
@@ -70,8 +70,7 @@ run: kernel_build iso
70
70
@qemu-system-x86_64 $(QEMU_ARGS )
71
71
72
72
test : kernel_test iso
73
- override QEMU_ARGS += -display none
74
- @qemu-system-x86_64 $(QEMU_ARGS )
73
+ @qemu-system-x86_64 $(QEMU_ARGS ) -display none
75
74
76
75
miri :
77
76
@MIRI_NO_STD=1 cargo miri run --target x86_64-unknown-none
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ pub struct Test {
5
5
}
6
6
7
7
pub fn test_runner ( tests : & [ & Test ] ) {
8
- log:: info!( "running {} tests " , tests. len( ) ) ;
8
+ log:: info!( "running {} test(s) " , tests. len( ) ) ;
9
9
10
- let mut successful = 0 ;
10
+ let mut passed = 0 ;
11
11
let mut suppressed = 0 ;
12
12
13
13
for test in tests {
@@ -18,20 +18,13 @@ pub fn test_runner(tests: &[&Test]) {
18
18
} else {
19
19
suppressed += 1 ;
20
20
}
21
+
22
+ passed += 1 ;
21
23
}
22
24
23
- log:: info!( "" ) ;
24
25
log:: info!(
25
- "tests completed. {} successful ; {} suppressed" ,
26
- successful ,
26
+ "tests completed: {} passed ; {} suppressed" ,
27
+ passed ,
27
28
suppressed
28
29
) ;
29
30
}
30
-
31
- #[ cfg( test) ]
32
- mod tests {
33
- #[ mono_proc:: test]
34
- fn testtest ( ) {
35
- assert ! ( true ) ;
36
- }
37
- }
You can’t perform that action at this time.
0 commit comments