From 5a40dca5adb6e9e650f55f3ec6f254a13bf50493 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 13 Nov 2026 01:24:16 -0300 Subject: debugger: align source and add rich Vim-style navigation --- gui/build.zig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'gui/build.zig') 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); } -- cgit v1.3