@@ -84,7 +84,7 @@ test-like-ci config=default-target hypervisor="kvm":
84
84
cargo check -p hyperlight-host --features gdb
85
85
86
86
@ # without any driver (should fail to compile)
87
- just test-compilation-fail {{ config}}
87
+ just test-compilation-no-default-features {{ config}}
88
88
89
89
@ # test the crashdump feature
90
90
just test-rust-crashdump {{ config}}
@@ -121,10 +121,12 @@ test-seccomp target=default-target features="":
121
121
cargo test --profile={{ if target == " debug" { " dev" } else { target } }} -p hyperlight-host test_violate_seccomp_filters --lib {{ if features == " " {' ' } else { " --features " + features } }} -- --ignored
122
122
cargo test --profile={{ if target == " debug" { " dev" } else { target } }} -p hyperlight-host test_violate_seccomp_filters --no-default-features {{ if features =~ " mshv3" {" --features init-paging,mshv3" } else {" --features mshv2,init-paging,kvm" } }} --lib -- --ignored
123
123
124
- # runs tests that ensure compilation fails when it should
125
- test-compilation-fail target = default-target :
126
- @ # the following should fail on linux because one of kvm, mshv, or mshv3 feature must be specified, which is why the exit code is inverted with an !.
127
- {{ if os () == " linux" { " ! cargo check -p hyperlight-host --no-default-features 2> /dev/null" } else { " " } }}
124
+ # tests compilation with no default features on different platforms
125
+ test-compilation-no-default-features target = default-target :
126
+ @ # Linux should fail without a hypervisor feature (kvm, mshv, or mshv3)
127
+ {{ if os () == " linux" { " ! cargo check -p hyperlight-host --no-default-features 2> /dev/null" } else { " " } }}
128
+ @ # Windows should succeed even without default features
129
+ {{ if os () == " windows" { " cargo check -p hyperlight-host --no-default-features" } else { " " } }}
128
130
129
131
# runs tests that exercise gdb debugging
130
132
test-rust-gdb-debugging target = default-target features = " ":
0 commit comments