Skip to content

Commit 78a4cb8

Browse files
authored
Merge pull request #42418 from compnerd/no-testing
utils: add ability to disable test runs
2 parents 5265ae7 + 8e344f2 commit 78a4cb8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

utils/build-windows.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ set CUSTOM_CLANG_MODULE_CACHE=%build_root%\tmp\org.llvm.clang.9999
6464
md %build_root%\tmp\org.swift.package-manager
6565
set SWIFTPM_MODULECACHE_OVERRIDE=%build_root%\tmp\org.swift.package-manager
6666

67+
set RunTest=1
68+
if "%1"=="-notest" set RunTest=0
69+
6770
call :clone_repositories %exitOnError%
6871
call :download_icu %exitOnError%
6972
:: TODO: Disabled until we need LLBuild/SwiftPM in this build script.
@@ -83,8 +86,11 @@ path %PATH%;C:\Program Files\Git\usr\bin
8386
call :build_libdispatch %exitOnError%
8487

8588
path %source_root%\icu-%icu_version%\bin64;%install_directory%\bin;%build_root%\swift\bin;%build_root%\swift\libdispatch-prefix\bin;%PATH%
86-
call :test_swift %exitOnError%
87-
call :test_libdispatch %exitOnError%
89+
90+
if %RunTest%==1 (
91+
call :test_swift %exitOnError%
92+
call :test_libdispatch %exitOnError%
93+
)
8894

8995
goto :end
9096
endlocal

0 commit comments

Comments
 (0)