File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -709,14 +709,25 @@ move %PackageRoot%\installer\installer.exe %BuildRoot%\artifacts || (exit /b)
709
709
710
710
:: TODO(compnerd) test LLVM
711
711
712
+ SET SKIP_TEST = 0
713
+ FOR %%T IN (%SKIP_TESTS% ) DO (IF /I %%T == swift SET SKIP_TEST = 1)
714
+ IF " %SKIP_TEST% " == " 1" (
712
715
:: Test Swift
713
716
:: TODO(compnerd) make lit adjust the path properly
714
717
path %BuildRoot% \3;%BuildRoot% \1\bin;%PATH% ;%SystemDrive% \Program Files\Git\usr\bin
715
718
cmake --build %BuildRoot% \1 --target check-swift || (exit /b)
719
+ )
716
720
721
+ SET SKIP_TEST = 0
722
+ FOR %%T IN (%SKIP_TESTS% ) DO (IF /I %T== dispatch SET SKIP_TEST = 1)
723
+ IF " %SKIP_TEST% " == " 1" (
717
724
:: Test dispatch
718
725
cmake --build %BuildRoot% \3 --target ExperimentalTest || (exit /b)
726
+ )
719
727
728
+ SET SKIP_TEST = 0
729
+ FOR %%T IN (%SKIP_TESTS% ) DO (IF /I %T== foundation SET SKIP_TEST = 1)
730
+ IF " %SKIP_TEST% " == " 1" (
720
731
:: NOTE(compnerd) update the path *before* the build because the tests are
721
732
:: executed to shard the test suite.
722
733
path %BuildRoot% \5;%BuildRoot% \4\bin;%PATH%
@@ -759,7 +770,11 @@ cmake --build %BuildRoot%\4 || (exit /b)
759
770
:: Test Foundation
760
771
set CTEST_OUTPUT_ON_FAILURE = 1
761
772
cmake --build %BuildRoot% \4 --target test || (exit /b)
773
+ )
762
774
775
+ SET SKIP_TEST = 0
776
+ FOR %%T IN (%SKIP_TESTS% ) DO (IF /I %T== xctest SET SKIP_TEST = 1)
777
+ IF " %SKIP_TEST% " == " 1" (
763
778
:: Rebuild XCTest (w/ testing)
764
779
cmake ^
765
780
-B %BuildRoot% \5 ^
@@ -790,6 +805,7 @@ cmake --build %BuildRoot%\5 || (exit /b)
790
805
791
806
:: Test XCTest
792
807
cmake --build %BuildRoot% \5 --target check-xctest || (exit /b)
808
+ )
793
809
794
810
:: Clean up the module cache
795
811
rd /s /q %LocalAppData% \clang\ModuleCache
You can’t perform that action at this time.
0 commit comments