summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-06-21 13:35:37 -0300
committerGabriel Schneider <[email protected]>2026-06-25 11:23:20 -0300
commit8c0bce4983915b8fa079cc218fae93a2adcf4b0e (patch)
tree3f7499e16b88068247c3121c51a58dd0b7bf3fe1 /build.zig
parentc528d9f3e90c6e7a2c3d349ec8e46feb0719d2aa (diff)
downloadpardes-8c0bce4983915b8fa079cc218fae93a2adcf4b0e.tar.gz
pardes-8c0bce4983915b8fa079cc218fae93a2adcf4b0e.zip
working in realtime better than expected lol
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig14
1 files changed, 14 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 9bc1d2b6..25520c27 100644
--- a/build.zig
+++ b/build.zig
@@ -12,6 +12,15 @@ pub fn build(b: *std.Build) void {
.root_source_file = b.path("main.zig"),
}),
});
+ const tests = b.addExecutable(.{
+ .name = "pardes-e2e",
+ .root_module = b.createModule(.{
+ .target = target,
+ .optimize = optimize,
+ .root_source_file = b.path("tests.zig"),
+ .link_libc = true,
+ }),
+ });
// ghostty-vt and vaxis both depend on uucode, but Zig 0.16 forbids the
// same source file from belonging to two modules, so they can't each have
@@ -68,4 +77,9 @@ pub fn build(b: *std.Build) void {
const run = b.step("run", "descend to the pardes");
run.dependOn(&run_exe.step);
+
+ const run_tests = b.addRunArtifact(tests);
+ run_tests.addArtifactArg(exe);
+ const test_step = b.step("test", "run deterministic tests");
+ test_step.dependOn(&run_tests.step);
}