Skip to content

Commit 1a1a180

Browse files
[windows] only test the Swift subset of LLDB tests in CI
1 parent 9c9f6b7 commit 1a1a180

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

utils/build.ps1

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Skip building the MSI installers and packaging. Useful for development builds.
120120
121121
.PARAMETER Test
122122
An array of names of projects to run tests for. Use '*' to run all tests.
123-
Available tests: lld, lldb, swift, dispatch, foundation, xctest, swift-format, sourcekit-lsp
123+
Available tests: lld, lldb, lldb-swift, swift, dispatch, foundation, xctest, swift-format, sourcekit-lsp
124124
125125
.PARAMETER IncludeDS2
126126
Include the ds2 remote debug server in the SDK.
@@ -258,7 +258,7 @@ if ($Test.Length -eq 1) { $Test = $Test[0].Split(",") }
258258

259259
if ($Test -contains "*") {
260260
# Explicitly don't include llbuild yet since tests are known to fail on Windows
261-
$Test = @("lld", "lldb", "swift", "dispatch", "foundation", "xctest", "swift-format", "sourcekit-lsp")
261+
$Test = @("lld", "lldb", "lldb-swift", "swift", "dispatch", "foundation", "xctest", "swift-format", "sourcekit-lsp")
262262
}
263263

264264
if ($UseHostToolchain -is [string]) {
@@ -1345,7 +1345,7 @@ function Get-Dependencies {
13451345

13461346
DownloadAndVerify $PinnedBuild "$BinaryCache\$PinnedToolchain.exe" $PinnedSHA256
13471347

1348-
if ($Test -contains "lldb") {
1348+
if ($Test -contains "lldb" -or $Test -contains "lldb-swift") {
13491349
# The make tool isn't part of MSYS
13501350
$GnuWin32MakeURL = "https://downloads.sourceforge.net/project/ezwinports/make-4.4.1-without-guile-w32-bin.zip"
13511351
$GnuWin32MakeHash = "fb66a02b530f7466f6222ce53c0b602c5288e601547a034e4156a512dd895ee7"
@@ -2279,17 +2279,17 @@ function Build-Compilers([Hashtable] $Platform, [string] $Variant) {
22792279
Write-PList -Settings $Settings -Path "$($Platform.ToolchainInstallRoot)\ToolchainInfo.plist"
22802280
}
22812281

2282-
function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $TestClang, [switch] $TestLLD, [switch] $TestLLDB, [switch] $TestLLVM, [switch] $TestSwift) {
2282+
function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $TestClang, [switch] $TestLLD, [switch] $TestLLDB, [switch] $TestLLDBSwift, [switch] $TestLLVM, [switch] $TestSwift) {
22832283
Invoke-IsolatingEnvVars {
22842284
$env:Path = "$(Get-CMarkBinaryCache $Platform)\src;$(Get-ProjectBinaryCache $BuildPlatform Compilers)\tools\swift\libdispatch-windows-$($Platform.Architecture.LLVMName)-prefix\bin;$(Get-ProjectBinaryCache $BuildPlatform Compilers)\bin;$env:Path;$VSInstallRoot\DIA SDK\bin\$($HostPlatform.Architecture.VSName);$UnixToolsBinDir"
22852285
$TestingDefines = Get-CompilersDefines $Platform $Variant -Test
22862286
if ($TestLLVM) { $Targets += @("check-llvm") }
22872287
if ($TestClang) { $Targets += @("check-clang") }
22882288
if ($TestLLD) { $Targets += @("check-lld") }
22892289
if ($TestSwift) { $Targets += @("check-swift", "SwiftCompilerPlugin") }
2290-
if ($TestLLDB) {
2291-
$Targets += @("check-lldb")
2292-
2290+
if ($TestLLDB) { $Targets += @("check-lldb") }
2291+
if ($TestLLDBSwift -and -not $TestLLDB) { $Targets += @("check-lldb-swift") }
2292+
if ($TestLLDB -or $TestLLDBSwift) {
22932293
# Override test filter for known issues in downstream LLDB
22942294
Load-LitTestOverrides ([IO.Path]::GetFullPath([IO.Path]::Combine($PSScriptRoot, "..", "..", "llvm-project", "lldb", "test", "windows-swift-llvm-lit-test-overrides.txt")))
22952295

@@ -4368,12 +4368,13 @@ if ($Stage) {
43684368
}
43694369

43704370
if (-not $IsCrossCompiling) {
4371-
$CompilersTests = @("clang", "lld", "lldb", "llvm", "swift")
4371+
$CompilersTests = @("clang", "lld", "lldb", "lldb-swift", "llvm", "swift")
43724372
if ($Test | Where-Object { $CompilersTests -contains $_ }) {
43734373
$Tests = @{
43744374
"-TestClang" = $Test -contains "clang";
43754375
"-TestLLD" = $Test -contains "lld";
43764376
"-TestLLDB" = $Test -contains "lldb";
4377+
"-TestLLDBSwift" = $Test -contains "lldb-swift";
43774378
"-TestLLVM" = $Test -contains "llvm";
43784379
"-TestSwift" = $Test -contains "swift";
43794380
}

0 commit comments

Comments
 (0)