Skip to content

Commit 135ce46

Browse files
authored
Merge pull request #75985 from compnerd/testing-style
utils: adjust the swift-testing build to match style
2 parents 9cb5948 + 4f3da95 commit 135ce46

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

utils/build.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ enum TargetComponent {
402402
Dispatch
403403
Foundation
404404
XCTest
405-
SwiftTesting
405+
Testing
406406
}
407407

408408
function Get-TargetProjectBinaryCache($Arch, [TargetComponent]$Project) {
@@ -1839,8 +1839,8 @@ function Build-XCTest([Platform]$Platform, $Arch, [switch]$Test = $false) {
18391839
}
18401840
}
18411841

1842-
function Build-SwiftTesting([Platform]$Platform, $Arch, [switch]$Test = $false) {
1843-
$SwiftTestingBinaryCache = Get-TargetProjectBinaryCache $Arch SwiftTesting
1842+
function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) {
1843+
$SwiftTestingBinaryCache = Get-TargetProjectBinaryCache $Arch Testing
18441844

18451845
Isolate-EnvVars {
18461846
if ($Test) {
@@ -2475,7 +2475,7 @@ if (-not $SkipBuild) {
24752475
Invoke-BuildStep Build-TestingMacros -Build Windows $BuildArch
24762476
Invoke-BuildStep Build-Foundation Windows $Arch
24772477
Invoke-BuildStep Build-XCTest Windows $Arch
2478-
Invoke-BuildStep Build-SwiftTesting Windows $Arch
2478+
Invoke-BuildStep Build-Testing Windows $Arch
24792479
Invoke-BuildStep Write-PlatformInfoPlist $Arch
24802480
}
24812481

@@ -2490,7 +2490,7 @@ if (-not $SkipBuild) {
24902490
Invoke-BuildStep Build-Dispatch Android $Arch
24912491
Invoke-BuildStep Build-Foundation Android $Arch
24922492
Invoke-BuildStep Build-XCTest Android $Arch
2493-
Invoke-BuildStep Build-SwiftTesting Android $Arch
2493+
Invoke-BuildStep Build-Testing Android $Arch
24942494
Invoke-BuildStep Write-PlatformInfoPlist $Arch
24952495
}
24962496
}
@@ -2575,7 +2575,7 @@ if (-not $IsCrossCompiling) {
25752575
Build-XCTest Windows $HostArch -Test
25762576
}
25772577
if ($Test -contains "testing") {
2578-
Build-SwiftTesting Windows $HostArch -Test
2578+
Build-Testing Windows $HostArch -Test
25792579
}
25802580
if ($Test -contains "llbuild") { Build-LLBuild $HostArch -Test }
25812581
if ($Test -contains "swiftpm") { Test-PackageManager $HostArch }

0 commit comments

Comments
 (0)