Skip to content

Commit 6004402

Browse files
committed
[6.0][Windows/Android] Add swift-testing (swiftlang#327)
* [Windows/Android] Add swift-testing (cherry picked from commit 852784a) * WiX: extract Testing Macros into a component (NFC) Extract the testing macros into their own component group. Each repository is currently setup into a single component group that we then enumerate into the install image. This follows suit for the testing macros. (cherry picked from commit 0932d6b) --------- Co-authored-by: Saleem Abdulrasool <[email protected]> (cherry picked from commit c6318d7)
1 parent 7c1aeb6 commit 6004402

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

platforms/Windows/bld/bld.wxs

+7
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@
332332
</Component>
333333
</ComponentGroup>
334334

335+
<ComponentGroup Id="TestingMacros" Directory="_usr_bin">
336+
<Component>
337+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\TestingMacros.dll" />
338+
</Component>
339+
</ComponentGroup>
340+
335341
<ComponentGroup Id="argument_parser" Directory="_usr_bin">
336342
<Component>
337343
<File Source="$(DEVTOOLS_ROOT)\usr\bin\ArgumentParser.dll" />
@@ -432,6 +438,7 @@
432438
<ComponentGroupRef Id="swift_syntax" />
433439
<ComponentGroupRef Id="SwiftMacros" />
434440
<ComponentGroupRef Id="FoundationMacros" />
441+
<ComponentGroupRef Id="TestingMacros" />
435442

436443
<ComponentGroupRef Id="ClangResources" />
437444

platforms/Windows/sdk/sdk.wxs

+35-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
└─ Windows.platform
3535
└─ Developer
3636
├─ Library
37-
│ └─ XCTest-development
37+
│ ├─ XCTest-development
38+
│ │ └─ ...
39+
│ └─ Testing-development
3840
│ └─ ...
3941
└─ SDKs
4042
└─ Windows.sdk
@@ -44,11 +46,11 @@
4446
<Directory Id="WindowsPlatform" Name="Windows.platform">
4547
<Directory Name="Developer">
4648
<Directory Name="Library">
47-
<!-- XCTest -->
4849
<!--
4950
FIXME(compnerd) this should actually be the proper version
50-
of XCTest, and needs to be reflected in the plist as well.
51+
of XCTest and Testing, and needs to be reflected in the plist as well.
5152
-->
53+
<!-- XCTest -->
5254
<Directory Name="XCTest-development">
5355
<Directory Name="usr">
5456
<Directory Id="XCTest_usr_bin" Name="$(ArchBinDir)" />
@@ -62,6 +64,20 @@
6264
</Directory>
6365
</Directory>
6466
</Directory>
67+
<!-- Testing -->
68+
<Directory Name="Testing-development">
69+
<Directory Name="usr">
70+
<Directory Id="Testing_usr_bin" Name="$(ArchBinDir)" />
71+
<Directory Name="lib">
72+
<Directory Name="swift">
73+
<Directory Name="windows">
74+
<Directory Id="Testing_usr_lib_swift_windows_ARCH" Name="$(ArchArchDir)" />
75+
<Directory Id="Testing.swiftmodule" Name="Testing.swiftmodule" />
76+
</Directory>
77+
</Directory>
78+
</Directory>
79+
</Directory>
80+
</Directory>
6581
</Directory>
6682
<Directory Name="SDKs">
6783
<!-- Windows.sdk -->
@@ -130,6 +146,21 @@
130146
</Component>
131147
</ComponentGroup>
132148

149+
<ComponentGroup Id="Testing">
150+
<Component Directory="Testing_usr_bin">
151+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\bin\Testing.dll" />
152+
</Component>
153+
<Component Directory="Testing_usr_lib_swift_windows_ARCH">
154+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\lib\swift\windows\Testing.lib" />
155+
</Component>
156+
<Component Directory="Testing.swiftmodule">
157+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\lib\swift\windows\Testing.swiftmodule\$(ArchTriple).swiftdoc" />
158+
</Component>
159+
<Component Directory="Testing.swiftmodule">
160+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\lib\swift\windows\Testing.swiftmodule\$(ArchTriple).swiftmodule" />
161+
</Component>
162+
</ComponentGroup>
163+
133164
<ComponentGroup Id="SwiftRemoteMirror" Directory="WindowsSDK_usr_include_swift_SwiftRemoteMirror">
134165
<Component>
135166
<File Source="$(SDK_ROOT)\usr\include\swift\SwiftRemoteMirror\MemoryReaderInterface.h" />
@@ -1228,6 +1259,7 @@
12281259
<!-- Features -->
12291260
<Feature Id="SDK" AllowAbsent="no" Title="!(loc.Sdk_ProductName_$(ProductArchitecture))">
12301261
<ComponentGroupRef Id="XCTest" />
1262+
<ComponentGroupRef Id="Testing" />
12311263
<ComponentGroupRef Id="SwiftRemoteMirror" />
12321264
<ComponentGroupRef Id="BlocksRuntime" />
12331265
<ComponentGroupRef Id="libdispatch" />

0 commit comments

Comments
 (0)