Skip to content

Commit 205bc27

Browse files
committed
utils: add ability to disable test runs
This adjusts the build-windows.bat file to support an optional `-notest` argument that disables testing. This is more to show how to setup the script to enable that, to allow further enhancement in the future.
1 parent d321725 commit 205bc27

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

utils/build-windows.bat

Lines changed: 8 additions & 3 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.
@@ -82,9 +85,11 @@ call :build_lldb %exitOnError%
8285
path %PATH%;C:\Program Files\Git\usr\bin
8386
call :build_libdispatch %exitOnError%
8487

85-
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%
88+
if %RunTest%==1 (
89+
path %source_root%\icu-%icu_version%\bin64;%install_directory%\bin;%build_root%\swift\bin;%build_root%\swift\libdispatch-prefix\bin;%PATH%
90+
call :test_swift %exitOnError%
91+
call :test_libdispatch %exitOnError%
92+
)
8893

8994
goto :end
9095
endlocal

0 commit comments

Comments
 (0)