| ... | ... | @@ -379,6 +379,7 @@ pub fn build(b: *std.Build) !void { |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | const test_filters = b.option([]const []const u8, "test-filter", "Skip tests that do not match any filter") orelse &[0][]const u8{}; |
| 382 | const test_target_filters = b.option([]const []const u8, "test-target-filter", "Skip tests whose target triple do not match any filter") orelse &[0][]const u8{}; |
| 382 | 383 | |
| 383 | 384 | const test_cases_options = b.addOptions(); |
| 384 | 385 | |
| ... | ... | @@ -457,6 +458,7 @@ pub fn build(b: *std.Build) !void { |
| 457 | 458 | |
| 458 | 459 | test_step.dependOn(tests.addModuleTests(b, .{ |
| 459 | 460 | .test_filters = test_filters, |
| 461 | .test_target_filters = test_target_filters, |
| 460 | 462 | .root_src = "test/behavior.zig", |
| 461 | 463 | .name = "behavior", |
| 462 | 464 | .desc = "Run the behavior tests", |
| ... | ... | @@ -470,6 +472,7 @@ pub fn build(b: *std.Build) !void { |
| 470 | 472 | |
| 471 | 473 | test_step.dependOn(tests.addModuleTests(b, .{ |
| 472 | 474 | .test_filters = test_filters, |
| 475 | .test_target_filters = test_target_filters, |
| 473 | 476 | .root_src = "test/c_import.zig", |
| 474 | 477 | .name = "c-import", |
| 475 | 478 | .desc = "Run the @cImport tests", |
| ... | ... | @@ -482,6 +485,7 @@ pub fn build(b: *std.Build) !void { |
| 482 | 485 | |
| 483 | 486 | test_step.dependOn(tests.addModuleTests(b, .{ |
| 484 | 487 | .test_filters = test_filters, |
| 488 | .test_target_filters = test_target_filters, |
| 485 | 489 | .root_src = "lib/compiler_rt.zig", |
| 486 | 490 | .name = "compiler-rt", |
| 487 | 491 | .desc = "Run the compiler_rt tests", |
| ... | ... | @@ -495,6 +499,7 @@ pub fn build(b: *std.Build) !void { |
| 495 | 499 | |
| 496 | 500 | test_step.dependOn(tests.addModuleTests(b, .{ |
| 497 | 501 | .test_filters = test_filters, |
| 502 | .test_target_filters = test_target_filters, |
| 498 | 503 | .root_src = "lib/c.zig", |
| 499 | 504 | .name = "universal-libc", |
| 500 | 505 | .desc = "Run the universal libc tests", |
| ... | ... | @@ -521,6 +526,7 @@ pub fn build(b: *std.Build) !void { |
| 521 | 526 | test_step.dependOn(tests.addAssembleAndLinkTests(b, test_filters, optimization_modes)); |
| 522 | 527 | test_step.dependOn(tests.addModuleTests(b, .{ |
| 523 | 528 | .test_filters = test_filters, |
| 529 | .test_target_filters = test_target_filters, |
| 524 | 530 | .root_src = "lib/std/std.zig", |
| 525 | 531 | .name = "std", |
| 526 | 532 | .desc = "Run the standard library tests", |