From f6089186cfe1517073fafc8979a7546ec773d6c1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 30 Jun 2026 20:29:43 -0300 Subject: stealing petsciinator --- build.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index d5bba19a..f6647ed5 100644 --- a/build.zig +++ b/build.zig @@ -176,6 +176,19 @@ pub fn build(b: *std.Build) void { unit_step.dependOn(&run_unit.step); test_step.dependOn(&run_unit.step); + // petscii.zig is likewise pure (std only) — fold its matcher tests into both + // the unit-test and the umbrella test step. + const petscii_tests = b.addTest(.{ + .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("petscii.zig"), + }), + }); + const run_petscii = b.addRunArtifact(petscii_tests); + unit_step.dependOn(&run_petscii.step); + test_step.dependOn(&run_petscii.step); + // Tutor practice blocks as unit tests: a second `zig test` target over the // generated tutor_cases.zig (which imports modal.zig). Depends on tutor-gen // so the file is (re)generated first. -- cgit v1.3