diff options
Diffstat (limited to 'gui/build.zig')
| -rw-r--r-- | gui/build.zig | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gui/build.zig b/gui/build.zig index ec8b435..98d9c44 100644 --- a/gui/build.zig +++ b/gui/build.zig @@ -39,6 +39,21 @@ pub fn build(b: *std.Build) void { _ = test_run.addPrefixedOutputFileArg("STRIKE=", "strike.png"); test_run.addArg("--define"); _ = test_run.addPrefixedOutputFileArg("SETTLED=", "settled.png"); + test_run.addArg("--define"); + _ = test_run.addPrefixedOutputFileArg("LENS=", "lens.png"); + test_run.addArg("--define"); + _ = test_run.addPrefixedOutputFileArg("LENS_SETTLED=", "lens-settled.png"); + test_run.addArg("--define"); + _ = test_run.addPrefixedOutputFileArg("FRAME_LENS=", "frame-lens.png"); test_run.expectExitCode(0); - b.step("test", "Test real debugger interactions through the GUI").dependOn(&test_run.step); + const tests = b.step("test", "Test real debugger interactions through the GUI"); + tests.dependOn(&test_run.step); + const navigation = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("src/Navigation.zig"), .target = target, .optimize = optimize }) }); + tests.dependOn(&b.addRunArtifact(navigation).step); + const inspection = b.addSystemCommand(&.{"python3"}); + inspection.addFileArg(b.path("test/inspection.py")); + inspection.addArg("--ztrace"); + inspection.addFileArg(b.graph.path(.install_bin, "ztrace")); + inspection.step.dependOn(b.getInstallStep()); + tests.dependOn(&inspection.step); } |
