summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-03 17:38:40 -0300
committerGabriel Schneider <[email protected]>2026-11-03 17:49:14 -0300
commitf9e538742f149598e26d893732ba249fed6b5e14 (patch)
treeef69eb76452321c635d5a6a5b6e7e6b64e91147e /build.zig
parentccb668645e9afc3710b1a50903022367a800ff1b (diff)
downloadpardes-f9e538742f149598e26d893732ba249fed6b5e14.tar.gz
pardes-f9e538742f149598e26d893732ba249fed6b5e14.zip
test: review of the core migration's tests: the Pet test takes its branch from the build's platform (pardes_config, imported into the behaviour module, its options alone), not from whether Pet was taken, so a terminal's view taking Pet now fails it; New's absence checked in a file pane's tag and a scratch's made by New, not only in 9P's +New twice; the emptied column's tag shown to have the keyboard (typed into); the pane's tag drawn on the row under a one-row column tag; each checked to fail against a break (Pet without in_window, New in the file pane's tag, an emptied column's focus given to the workspace tag)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 8a9451eb..c90485b6 100644
--- a/build.zig
+++ b/build.zig
@@ -1880,6 +1880,9 @@ pub fn build(b: *std.Build) void {
.link_libc = true,
});
behaviour_module.addImport("session", session_module);
+ // The build's options alone (platform), never the core: a test of a
+ // window's word knows which build it runs in.
+ behaviour_module.addImport("pardes_config", core_module.import_table.get("pardes_config").?);
const behaviour_tests = b.addTest(.{ .root_module = behaviour_module, .filters = test_filters });
if (test_nonce) |nonce| behaviour_tests.root_module.addImport("test_rebuild_nonce", nonce);
test_build.dependOn(&behaviour_tests.step);