@@ -91,7 +91,56 @@ test-like-ci config=default-target hypervisor="kvm":
9191 just test-rust-crashdump {{ config}}
9292
9393 @ # test the tracing related features
94- just test-rust-tracing {{ config}} {{ if hypervisor == " mshv3" {" mshv3" } else {" " } }}
94+ {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
95+
96+ like-ci config = default-target hypervisor = " kvm":
97+ @ # Ensure up-to-date Cargo.lock
98+ cargo fetch --locked
99+
100+ @ # fmt
101+ just fmt-check
102+
103+ @ # clippy
104+ {{ if os () == " windows" { " just clippy " + config } else { " " } }}
105+ {{ if os () == " windows" { " just clippy-guests " + config } else { " " } }}
106+
107+ @ # clippy exhaustive check
108+ {{ if os () == " linux" { " just clippy-exhaustive " + config } else { " " } }}
109+
110+ @ # Verify MSRV
111+ ./ dev/ verify-msrv.sh hyperlight-host hyperlight-guest hyperlight-guest-bin hyperlight-common
112+
113+ @ # Build and move Rust guests
114+ just build-rust-guests {{ config}}
115+ just move-rust-guests {{ config}}
116+
117+ @ # Build c guests
118+ just build-c-guests {{ config}}
119+ just move-c-guests {{ config}}
120+
121+ @ # Build
122+ just build {{ config}}
123+
124+ @ # Run Rust tests
125+ just test-like-ci {{ config}} {{ hypervisor}}
126+
127+ @ # Run Rust examples - Windows
128+ {{ if os () == " windows" { " just run-rust-examples " + config } else { " " } }}
129+
130+ @ # Run Rust examples - linux
131+ {{ if os () == " linux" { " just run-rust-examples-linux " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
132+
133+ @ # Run Rust Gdb tests - linux
134+ {{ if os () == " linux" { " just test-rust-gdb-debugging " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
135+
136+ @ # Run Rust Crashdump tests
137+ just test-rust-crashdump {{ config}} {{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
138+
139+ @ # Run Rust Tracing tests - linux
140+ {{ if os () == " linux" { " just test-rust-tracing " + config + " " + if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } } else { " " } }}
141+
142+ @ # Run benchmarks
143+ just bench-ci main {{ config}} {{ if hypervisor == " mshv" { " mshv2" } else if hypervisor == " mshv3" { " mshv3" } else { " kvm" } }}
95144
96145# runs all tests
97146test target = default-target features = " ": (test-unit target features) (test-isolated target features) (test-integration " rust" target features) (test-integration " c" target features) (test-seccomp target features)
0 commit comments