File tree Expand file tree Collapse file tree 2 files changed +432
-0
lines changed
Expand file tree Collapse file tree 2 files changed +432
-0
lines changed Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments