Skip to content

Commit 789bd1f

Browse files
committed
utils: split Build-Testing into Build- and Test- function
Split up the test routines from the build routines. This is motivated by the desire to simplify (remove logic flow) and to help get more accurate timing data.
1 parent 2c02471 commit 789bd1f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/build.ps1

+5-3
Original file line numberDiff line numberDiff line change
@@ -2474,6 +2474,10 @@ function Build-Testing([Platform]$Platform, $Arch) {
24742474
}
24752475
}
24762476

2477+
function Test-Testing {
2478+
throw "testing Testing is not supported"
2479+
}
2480+
24772481
function Write-PlatformInfoPlist([Platform] $Platform) {
24782482
$Settings = @{
24792483
DefaultProperties = @{
@@ -3296,9 +3300,7 @@ if (-not $IsCrossCompiling) {
32963300
if ($Test -contains "xctest") {
32973301
Test-XCTest
32983302
}
3299-
if ($Test -contains "testing") {
3300-
Build-Testing Windows $HostArch -Test
3301-
}
3303+
if ($Test -contains "testing") { Test-Testing }
33023304
if ($Test -contains "llbuild") { Test-LLBuild }
33033305
if ($Test -contains "swiftpm") { Test-PackageManager }
33043306
if ($Test -contains "swift-format") { Test-Format }

0 commit comments

Comments
 (0)