diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); } |
