summaryrefslogtreecommitdiff
path: root/tests/src/dirs.proj
blob: bf3e1888f80b5400785e8ed627a121670d6cf60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="VerifyBuildTools" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="dir.props" />

  <Target Name="VerifyBuildTools" 
    Inputs="$(BuildToolsTargetInputs)"
    Outputs="$(BuildToolsTargetOutputs)"
    >
    <Error Condition="!Exists('$(BuildToolsInstallSemaphore)')" 
      Text="The build tools have not been installed. Please run buildtest.cmd from the root of the repo at least once to get the tools installed." />

    <!-- If we enter this target at all then the inputs are newer then the outputs so give a warning. -->
    <Warning Text="Looks like there may be an update to the build tools. Please run buildtest.cmd from the root of the repo to refresh the build tools." /> 
  </Target>

  <Target Name="ResolveDisabledProjects" BeforeTargets="BuildAllProjects" >
    <ItemGroup>
      <DisabledProjects Include="TestWrappers*\**\*.csproj" />
      <DisabledProjects Include="*\**\cs_template.csproj" />
      <DisabledProjects Include="Common\Coreclr.TestWrapper\Coreclr.TestWrapper.csproj" Condition="('$(BuildTestsAgainstPackages)' != 'true') And ('$(BuildOS)' == 'Windows_NT')" />
      <DisabledProjects Include="Common\Desktop.Coreclr.TestWrapper\Desktop.Coreclr.TestWrapper.csproj" Condition="('$(BuildTestsAgainstPackages)' == 'true') Or ('$(BuildOS)' != 'Windows_NT')" />
      <DisabledProjects Include="Common\test_runtime\test_runtime.csproj" />
      <DisabledProjects Include="Common\test_dependencies\test_dependencies.csproj" />
      <DisabledProjects Include="Common\build_against_pkg_dependencies\build_against_pkg_dependencies.csproj" />
      <DisabledProjects Include="Common\targeting_pack_ref\targeting_pack_ref.csproj" />
      <DisabledProjects Include="Common\external\external.csproj" />
      <DisabledProjects Include="Common\PerfHarness\PerfHarness.csproj" />
      <DisabledProjects Include="GC\Performance\Framework\GCPerfTestFramework.csproj" />
      <DisabledProjects Include="JIT\superpmi\superpmicollect.csproj" Condition="('$(BuildTestsAgainstPackages)' == 'true') Or ('$(BuildOS)' != 'Windows_NT')" />
      <DisabledProjects Include="JIT\config\**" />
      <DisabledProjects Include="Performance\performance.csproj" />
      <DisabledProjects Include="Performance\Scenario\JitBench\unofficial_dotnet\JitBench.csproj" /> <!-- no official build support for SDK-style netcoreapp2.0 projects -->
      <DisabledProjects Include="Loader\classloader\generics\regressions\DD117522\Test.csproj" />
      <DisabledProjects Include="Loader\classloader\generics\GenericMethods\VSW491668.csproj" /> <!-- issue 5501 -->
    </ItemGroup>

    <!-- Unix builds do not support subgroups -->
    <ItemGroup Condition="$(__BuildOS) != 'Windows_NT' And $(__TestGroupToBuild) == '1' And $(TestBuildSlice) == '1'">
      <Project Include="*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <!-- Test build is divided in slices which can be created within Test Group
         Priority 0 tests are build using Test Group 1 with 2 subgroups or slices -->
    <ItemGroup Condition="$(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '1' And $(TestBuildSlice) == '1'">
      <Project Include="*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="$(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '1' And $(TestBuildSlice) == '2'">
      <Project Include="*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <!-- Test build is divided in slices which can be created within Test Group
         Priority 1 or higher tests are build using Test Group 2 with 16 subgroups or slices -->    
    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '1')">
      <Project Include="baseservices\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="Common\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>      
      <Project Include="baseservices\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="Common\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>      
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '2')">
      <Project Include="CoreMangLib\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="CoreMangLib\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '3')">
      <Project Include="E*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="GC\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="Interop\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="E*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="GC\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="Interop\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '4')">
      <Project Include="JIT\B*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\C*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\Directed\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>      
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '5')">    
      <Project Include="JIT\B*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\C*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\Directed\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>    

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '6')">
      <Project Include="JIT\Generics\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\*Intrinsics\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>      
      <Project Include="JIT\Generics\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\*Intrinsics\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '7')">
      <Project Include="JIT\IL_Conformance\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\IL_Conformance\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '8')">
      <Project Include="JIT\jit64\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\jit64\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '9')">
      <Project Include="JIT\Methodical\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '10')">
      <Project Include="JIT\Methodical\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>    

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '11')">
      <Project Include="JIT\opt\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\Performance\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\S*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>            
      <Project Include="JIT\opt\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\Performance\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="JIT\S*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '12')">
      <Project Include="JIT\R*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '13')">
      <Project Include="JIT\R*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>    

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '14')">
      <Project Include="Loader\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '15')">
      <Project Include="Loader\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>    

    <ItemGroup Condition="($(__BuildOS) == 'Windows_NT' And $(__TestGroupToBuild) == '2' And $(TestBuildSlice) == '16')">
      <Project Include="m*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="p*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="r*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="s*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="t*\**\*.csproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>            
      <Project Include="m*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="p*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="r*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="s*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
      <Project Include="t*\**\*.ilproj" Exclude="@(DisabledProjects)">
        <AdditionalProperties>OSGroup=$(OSGroup)</AdditionalProperties>
      </Project>
    </ItemGroup>

  </Target>

  <Import Project="..\dir.traversal.targets" />
  
  <!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
  <Target Name="Clean">
    <RemoveDir Directories="$(BinDir)" />
  </Target>
</Project>