mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 00:35:10 +00:00
test-cases: honor -Dtest-filter argument from zig build
This commit is contained in:
parent
f6e9b6620d
commit
b986fcfc99
@ -1201,6 +1201,9 @@ pub const TestContext = struct {
|
||||
if (!build_options.have_llvm and case.backend == .llvm)
|
||||
continue;
|
||||
|
||||
if (build_options.test_filter) |test_filter| {
|
||||
if (std.mem.indexOf(u8, case.name, test_filter) == null) continue;
|
||||
}
|
||||
var prg_node = root_node.start(case.name, case.updates.items.len);
|
||||
prg_node.activate();
|
||||
defer prg_node.end();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user