diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -668,7 +668,7 @@ pub fn build(b: *std.Build) void { .optimize = optimize, .root_source_file = b.path("src/modal.zig"), }) }); - const unit_step = b.step("unit-test", "run the modal.zig + crt.zig + deck replay unit tests"); + const unit_step = b.step("unit-test", "run the modal.zig + crt.zig + deck replay + core unit tests"); unit_step.dependOn(&b.addRunArtifact(unit).step); // crt.zig is pure std — the mouse-mapping-vs-shader-formula test const crt_test = b.addTest(.{ .root_module = b.createModule(.{ @@ -690,6 +690,12 @@ pub fn build(b: *std.Build) void { .root_source_file = b.path("src/gui/deck.zig"), })); unit_step.dependOn(&b.addRunArtifact(deck_test).step); + // the core's own inline tests (config.zig's wheel drift guard). It + // links the SAME module hxdiff does rather than a fourth hand-wired + // copy of ghostty-vt/tree-sitter/zstbi — a second wiring of that graph + // is a second thing to keep in step. + const core_test = b.addTest(.{ .root_module = hx_core_mod }); + unit_step.dependOn(&b.addRunArtifact(core_test).step); } } |
