Skip to content

Commit 7bbf7b9

Browse files
committed
tail mode tests
1 parent 91fbc19 commit 7bbf7b9

File tree

2 files changed

+432
-0
lines changed

2 files changed

+432
-0
lines changed

build.zig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ pub fn build(b: *std.Build) void {
8686
const run_formats_tests = b.addRunArtifact(formats_tests);
8787
test_step.dependOn(&run_formats_tests.step);
8888

89+
// Create tail mode test module with flags dependency
90+
const tail_test_mod = b.createModule(.{
91+
.root_source_file = b.path("src/reader/tail.zig"),
92+
.target = target,
93+
.optimize = optimize,
94+
});
95+
96+
tail_test_mod.addImport("../flags/flags.zig", flags_mod);
97+
98+
const tail_tests = b.addTest(.{
99+
.root_module = tail_test_mod,
100+
});
101+
const run_tail_tests = b.addRunArtifact(tail_tests);
102+
test_step.dependOn(&run_tail_tests.step);
103+
89104
// Add a check step to verify the code compiles without building.
90105
// This is useful for CI/CD pipelines.
91106
const check = b.step("check", "Check if code compiles");

0 commit comments

Comments
 (0)