| ... | ... | @@ -3456,6 +3456,19 @@ pub fn addNewIncrementalTests( |
| 3456 | 3456 | .directory => {}, |
| 3457 | 3457 | } |
| 3458 | 3458 | |
| 3459 | const run = b.addRunArtifact(runner); |
| 3460 | run.setName(@"test".name); |
| 3461 | run.enableProtocolMode(); |
| 3462 | |
| 3463 | switch (@"test".kind) { |
| 3464 | else => continue, |
| 3465 | .file => run.addFileArg(test_path), |
| 3466 | .directory => run.addDirectoryArg(test_path), |
| 3467 | } |
| 3468 | run.addPrefixedFileArg("--zig=", .zig_exe); |
| 3469 | run.addPrefixedDirectoryArg("--lib=", .zig_lib); |
| 3470 | _ = run.addPrefixedOutputDirectoryArg("--src=", "src"); |
| 3471 | |
| 3459 | 3472 | for (incremental_targets) |test_target| { |
| 3460 | 3473 | const resolved_target = b.resolveTargetQuery(test_target.target); |
| 3461 | 3474 | |
| ... | ... | @@ -3486,30 +3499,16 @@ pub fn addNewIncrementalTests( |
| 3486 | 3499 | } else continue; |
| 3487 | 3500 | } |
| 3488 | 3501 | |
| 3489 | | const run = b.addRunArtifact(runner); |
| 3490 | | run.setName(@"test".name); |
| 3491 | | run.enableProtocolMode(); |
| 3492 | | |
| 3493 | | switch (@"test".kind) { |
| 3494 | | else => continue, |
| 3495 | | .file => run.addFileArg(test_path), |
| 3496 | | .directory => run.addDirectoryArg(test_path), |
| 3497 | | } |
| 3498 | | run.addPrefixedFileArg("--zig=", .zig_exe); |
| 3499 | | run.addPrefixedDirectoryArg("--lib=", .zig_lib); |
| 3500 | | _ = run.addPrefixedOutputDirectoryArg("--src=", "src"); |
| 3501 | 3502 | run.addArgs(&.{ "--target", target_str }); |
| 3503 | } |
| 3502 | 3504 | |
| 3503 | | run.addArg("--quiet"); // don't fill stderr telling us about skipped tests etc |
| 3504 | | |
| 3505 | | run.addThirdPartyEnabledArgDarling(.{ .enabled = "-fdarling" }); |
| 3506 | | run.addThirdPartyEnabledArgQemu(.{ .enabled = "-fqemu" }); |
| 3507 | | run.addThirdPartyEnabledArgRosetta(.{ .enabled = "-frosetta" }); |
| 3508 | | run.addThirdPartyEnabledArgWasmtime(.{ .enabled = "-fwasmtime" }); |
| 3509 | | run.addThirdPartyEnabledArgWine(.{ .enabled = "-fwine" }); |
| 3505 | run.addThirdPartyEnabledArgDarling(.{ .enabled = "-fdarling" }); |
| 3506 | run.addThirdPartyEnabledArgQemu(.{ .enabled = "-fqemu" }); |
| 3507 | run.addThirdPartyEnabledArgRosetta(.{ .enabled = "-frosetta" }); |
| 3508 | run.addThirdPartyEnabledArgWasmtime(.{ .enabled = "-fwasmtime" }); |
| 3509 | run.addThirdPartyEnabledArgWine(.{ .enabled = "-fwine" }); |
| 3510 | 3510 | |
| 3511 | | tests_step.dependOn(&run.step); |
| 3512 | | } |
| 3511 | tests_step.dependOn(&run.step); |
| 3513 | 3512 | } |
| 3514 | 3513 | |
| 3515 | 3514 | return tests_step; |