summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 4957adb4..feefecdc 100644
--- a/build.zig
+++ b/build.zig
@@ -821,6 +821,17 @@ pub fn build(b: *std.Build) void {
.link_libc = true,
}) });
unit_step.dependOn(&b.addRunArtifact(temp_file_test).step);
+ // Resolving a shell binary and picking its prompt integration is the
+ // same shape: native-shell IO, no core imports, its own libc-linked
+ // module. (A test file the core merely re-exported would compile and
+ // silently never run — zig only collects tests from what it analyses.)
+ const shell_bin_test = b.addTest(.{ .root_module = b.createModule(.{
+ .target = target,
+ .optimize = optimize,
+ .root_source_file = b.path("src/shell_bin.zig"),
+ .link_libc = true,
+ }) });
+ unit_step.dependOn(&b.addRunArtifact(shell_bin_test).step);
// crt.zig is pure std — the mouse-mapping-vs-shader-formula test
const crt_test = b.addTest(.{ .root_module = b.createModule(.{
.target = target,