Skip to content

Commit 91af3e2

Browse files
committed
[just] Ensure that fuzzers compile on like-ci
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 620b5e8 commit 91af3e2

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

Justfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,17 @@ run-examples-like-ci config=default-target hypervisor="kvm":
164164
@# Run Rust examples - linux
165165
{{ if os() == "linux" { "just run-rust-examples-linux " + config + " " } else { "" } }}
166166

167-
benchmarks-like-ci config=default-target hypervisor="$vm":
167+
benchmarks-like-ci config=default-target hypervisor="kvm":
168168
@# Run benchmarks
169169
{{ if config == "release" { "just bench-ci main" } else { "" } }}
170170

171+
fuzz-like-ci target config=default-target hypervisor="kvm":
172+
@# Run Fuzzing
173+
# Use a much shorter time limit (1 vs 300 seconds), because the
174+
# local version of this step is mostly intended just for making
175+
# sure that the fuzz harnesses compile
176+
{{ if config == "release" { "just fuzz-timed " + target + " 1" } else { "" } }}
177+
171178
like-ci config=default-target hypervisor="kvm":
172179
@# .github/workflows/dep_code_checks.yml
173180
just code-checks-like-ci {{config}} {{hypervisor}}
@@ -184,7 +191,12 @@ like-ci config=default-target hypervisor="kvm":
184191
@# .github/workflows/dep_benchmarks.yml
185192
just benchmarks-like-ci {{config}} {{hypervisor}}
186193

187-
@# can't run fuzzing locally
194+
@# .github/workflows/dep_fuzzing.yml
195+
just fuzz-like-ci fuzz_host_print {{config}} {{hypervisor}}
196+
just fuzz-like-ci fuzz_guest_call {{config}} {{hypervisor}}
197+
just fuzz-like-ci fuzz_host_call {{config}} {{hypervisor}}
198+
just fuzz-like-ci fuzz_guest_estimate_trace_event {{config}} {{hypervisor}}
199+
just fuzz-like-ci fuzz_guest_trace {{config}} {{hypervisor}}
188200

189201
@# spelling
190202
typos

0 commit comments

Comments
 (0)