@@ -78,10 +78,10 @@ clean-rust:
7878# convenience recipe to run all tests with the given target and features (similar to CI)
7979test-like-ci config = default-target hypervisor = " kvm":
8080 @ # with default features
81- just test {{ config}} {{ if hypervisor == " mshv" { " mshv2" } else { " " } }}
81+ just test {{ config}}
8282
8383 @ # with only one driver enabled + build-metadata + init-paging
84- just test {{ config}} build-metadata,init-paging,{{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" {" mshv3" } else {" kvm" } }}
84+ just test {{ config}} build-metadata,init-paging,{{ if hypervisor == " mshv3" {" mshv3" } else {" kvm" } }}
8585
8686 @ # make sure certain cargo features compile
8787 just check
@@ -93,7 +93,7 @@ test-like-ci config=default-target hypervisor="kvm":
9393 just test-rust-crashdump {{ config}}
9494
9595 @ # test the tracing related features
96- {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
96+ {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
9797
9898like-ci config = default-target hypervisor = " kvm":
9999 @ # Ensure up-to-date Cargo.lock
@@ -130,19 +130,19 @@ like-ci config=default-target hypervisor="kvm":
130130 {{ if os () == " windows" { " just run-rust-examples " + config } else { " " } }}
131131
132132 @ # Run Rust examples - linux
133- {{ if os () == " linux" { " just run-rust-examples-linux " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
133+ {{ if os () == " linux" { " just run-rust-examples-linux " + config + " " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
134134
135135 @ # Run Rust Gdb tests
136- just test-rust-gdb-debugging {{ config }} {{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
136+ just test-rust-gdb-debugging {{ config }} {{ if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
137137
138138 @ # Run Rust Crashdump tests
139- just test-rust-crashdump {{ config}} {{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
139+ just test-rust-crashdump {{ config}} {{ if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
140140
141141 @ # Run Rust Tracing tests - linux
142- {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
142+ {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
143143
144144 @ # Run benchmarks
145- {{ if config == " release" { " just bench-ci main " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
145+ {{ if config == " release" { " just bench-ci main " + if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
146146
147147# runs all tests
148148test target = default-target features = " ": (test-unit target features) (test-isolated target features) (test-integration " rust" target features) (test-integration " c" target features) (test-doc target features)
@@ -178,7 +178,6 @@ test-compilation-no-default-features target=default-target:
178178 {{ if os () == " windows" { cargo-cmd + " check -p hyperlight-host --no-default-features" } else { " " } }}
179179 @ # Linux should succeed with a hypervisor driver but without init-paging
180180 {{ if os () == " linux" { cargo-cmd + " check -p hyperlight-host --no-default-features --features kvm" } else { " " } }} {{ target-triple-flag }}
181- {{ if os () == " linux" { cargo-cmd + " check -p hyperlight-host --no-default-features --features mshv2" } else { " " } }} {{ target-triple-flag }}
182181 {{ if os () == " linux" { cargo-cmd + " check -p hyperlight-host --no-default-features --features mshv3" } else { " " } }} {{ target-triple-flag }}
183182
184183# runs tests that exercise gdb debugging
0 commit comments