summaryrefslogtreecommitdiff
path: root/gui/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-13 01:24:16 -0300
committerGabriel Schneider <[email protected]>2026-11-13 01:34:46 -0300
commit5a40dca5adb6e9e650f55f3ec6f254a13bf50493 (patch)
tree5fdffebd75ed3fbac1eae5dec0a3f2d491450342 /gui/build.zig
parent4b4113a0217ee27c78e7efddb66ff5a455d49083 (diff)
downloadcomputeranim-5a40dca5adb6e9e650f55f3ec6f254a13bf50493.tar.gz
computeranim-5a40dca5adb6e9e650f55f3ec6f254a13bf50493.zip
debugger: align source and add rich Vim-style navigation
Diffstat (limited to 'gui/build.zig')
-rw-r--r--gui/build.zig17
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);
}