Skip to content

Commit 9512779

Browse files
[windows][lldb] enable faster tests in CI
1 parent 276261c commit 9512779

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

utils/build-windows-toolchain.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,26 @@ set TMPDIR=%BuildRoot%\tmp
6060
set NINJA_STATUS=[%%f/%%t][%%p][%%es]
6161

6262
:: Build the -Test argument, if any, by subtracting skipped tests
63-
set TestArg=-Test lld,lldb,swift,dispatch,foundation,xctest,swift-format,sourcekit-lsp,swiftpm,
63+
set TestArg=-Test lldb,
6464
for %%I in (%SKIP_TESTS%) do (call set TestArg=%%TestArg:%%I,=%%)
6565
if "%TestArg:~-1%"=="," (set TestArg=%TestArg:~0,-1%) else (set TestArg= )
6666

6767
:: Build the -SkipPackaging argument, if any
6868
set SkipPackagingArg=-SkipPackaging
6969
if not "%SKIP_PACKAGING%"=="1" set "SkipPackagingArg= "
7070

71+
:: Build the -WindowsSDKs argument, if any
72+
set "WindowsSDKsArg= "
73+
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKsArg=-WindowsSDKs %WINDOWS_SDKS%"
74+
7175
call :CloneRepositories || (exit /b 1)
7276

7377
:: We only have write access to BuildRoot, so use that as the image root.
7478
powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
7579
-SourceCache %SourceRoot% ^
7680
-BinaryCache %BuildRoot% ^
7781
-ImageRoot %BuildRoot% ^
82+
%WindowsSDKsArg% ^
7883
%SkipPackagingArg% ^
7984
%TestArg% ^
8085
-Stage %PackageRoot% ^

utils/build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,12 +1905,17 @@ function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $Test
19051905
Write-Host "Copying '$RuntimeBinaryCache\bin\swiftCore.dll' to '$(Get-ProjectBinaryCache $BuildPlatform Compilers)\bin'"
19061906
Copy-Item "$RuntimeBinaryCache\bin\swiftCore.dll" "$(Get-ProjectBinaryCache $BuildPlatform Compilers)\bin"
19071907

1908+
$PythonRoot = "$(Get-PythonPath $BuildPlatform)\tools"
1909+
$env:Path = "$PythonRoot;$env:Path"
1910+
19081911
$TestingDefines += @{
19091912
LLDB_INCLUDE_TESTS = "YES";
19101913
# Check for required Python modules in CMake
19111914
LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS = "YES";
19121915
# No watchpoint support on windows: https://github.com/llvm/llvm-project/issues/24820
19131916
LLDB_TEST_USER_ARGS = "--skip-category=watchpoint";
1917+
# Specify the correct PYTHONHOME to LLDB in tests. Can be removed when https://github.com/swiftlang/llvm-project/pull/10811 lands.
1918+
LLDB_TEST_COMMON_ARGS="--env PYTHONHOME=$PythonRoot";
19141919
# gtest sharding breaks llvm-lit's --xfail and LIT_XFAIL inputs: https://github.com/llvm/llvm-project/issues/102264
19151920
LLVM_LIT_ARGS = "-v --no-gtest-sharding --time-tests";
19161921
# LLDB Unit tests link against this library

0 commit comments

Comments
 (0)