diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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, |
