diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 20:37:01 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 20:37:01 -0300 |
| commit | 5b33c88476054fffc1044fff0526f7f0b28563cf (patch) | |
| tree | f96c7b718041c43170b5e1c8a93b369a2bda3279 /test/perf.zig | |
| parent | 39ce335d7ca06b8095be2d953c240bac354868e5 (diff) | |
| parent | 6e1da675ec9d18672fea7748f389e59a73c692a6 (diff) | |
| download | pardes-5b33c88476054fffc1044fff0526f7f0b28563cf.tar.gz pardes-5b33c88476054fffc1044fff0526f7f0b28563cf.zip | |
integration: pardes-perf refusing to start without its image addon, with the PDF back in the soak and the client path's five rounds: no conflict; on Zig 0.17.1: gui unit-test 1594/1598 and tui unit-test 1540/1544, each with its perf check passing; tui core-test 821/962 (141 skipped), shell-test 997/1000; the base of the reorganisation's tree step
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/perf.zig')
| -rw-r--r-- | test/perf.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/perf.zig b/test/perf.zig index 85cc2ca3..c52c1715 100644 --- a/test/perf.zig +++ b/test/perf.zig @@ -467,6 +467,18 @@ pub fn main(init: std.process.Init) !void { if (opts.mini) return measureMini(init.io, init.gpa, reps, opts.json); if (opts.live) |exe| return measureLive(init.io, exe, false, reps, opts.json); if (opts.live_gui) |exe| return measureLive(init.io, exe, true, reps, opts.json); + // The image-frame cells load the image addon by the path the build baked + // in, relative to the build root (`zig build perf` runs there). Gone (the + // cache wiped, another directory), the run would end at its last cell as + // ImageNotShown, a count short that a script could take for a number: + // refused before any measurement. + if (opts.op == null or opts.op.? == .image_frame) { + const addon = @import("perf_options").image_addon; + std.Io.Dir.cwd().access(init.io, addon, .{}) catch |err| { + std.debug.print("pardes-perf: no image addon at {s} ({t}), relative to the working directory: run it from the build root (zig build perf)\n", .{ addon, err }); + return error.ImageAddonMissing; + }; + } var random: [12]u8 = undefined; init.io.random(&random); |
