| ... | ... | @@ -2682,7 +2682,7 @@ pub fn addDebuggerTests(b: *std.Build, options: DebuggerContext.Options) ?*Step |
| 2682 | 2682 | return step; |
| 2683 | 2683 | } |
| 2684 | 2684 | |
| 2685 | | pub fn addIncrementalTests(b: *std.Build, test_step: *Step) !void { |
| 2685 | pub fn addIncrementalTests(b: *std.Build, test_step: *Step, test_filters: []const []const u8) !void { |
| 2686 | 2686 | const io = b.graph.io; |
| 2687 | 2687 | |
| 2688 | 2688 | const incr_check = b.addExecutable(.{ |
| ... | ... | @@ -2701,6 +2701,10 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step) !void { |
| 2701 | 2701 | while (try it.next(io)) |entry| { |
| 2702 | 2702 | if (entry.kind != .file) continue; |
| 2703 | 2703 | |
| 2704 | for (test_filters) |test_filter| { |
| 2705 | if (std.mem.indexOf(u8, entry.path, test_filter)) |_| break; |
| 2706 | } else if (test_filters.len > 0) continue; |
| 2707 | |
| 2704 | 2708 | const run = b.addRunArtifact(incr_check); |
| 2705 | 2709 | run.setName(b.fmt("incr-check '{s}'", .{entry.basename})); |
| 2706 | 2710 | |