summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-06-30 20:29:43 -0300
committerGabriel Schneider <[email protected]>2026-06-30 22:21:44 -0300
commitf6089186cfe1517073fafc8979a7546ec773d6c1 (patch)
treecfb474b5a5cff5d7197aa5084ea6013a0c53df6f /build.zig
parent8b60c2c29c016c7db0fa6ee63769cea1defd9b3c (diff)
downloadpardes-f6089186cfe1517073fafc8979a7546ec773d6c1.tar.gz
pardes-f6089186cfe1517073fafc8979a7546ec773d6c1.zip
stealing petsciinatorfull-prototype
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig13
1 files changed, 13 insertions, 0 deletions
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.