|
1 |
| -<Project Sdk="Microsoft.DotNet.Helix.Sdk"> |
| 1 | +<Project Sdk="Microsoft.DotNet.Helix.Sdk"> |
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 | 4 | <HelixType>test/product/</HelixType>
|
|
12 | 12 | </PropertyGroup>
|
13 | 13 |
|
14 | 14 | <ItemGroup>
|
15 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true'" Include="**\*.Tests.csproj" Exclude="**\*.AoT.Tests.csproj;TestAssets\**\*.Tests.csproj" /> |
| 15 | + <SDKCustomXUnitProject Include="**\*.Tests.csproj" Exclude="**\*.AoT.Tests.csproj;TestAssets\**\*.Tests.csproj" /> |
| 16 | + |
16 | 17 | <!--containers tests end with UnitTests and IntegrationTests, therefore included manually -->
|
17 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true'" Include="containerize.UnitTests\containerize.UnitTests.csproj" /> |
18 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true' And $(_AGENTOSNAME) != 'Windows_NT_FullFramework'" Include="Microsoft.NET.Build.Containers.IntegrationTests\Microsoft.NET.Build.Containers.IntegrationTests.csproj" /> |
19 |
| - <!-- on Windows_NT_FullFramework leg, net472 tests should be run --> |
20 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true' And $(_AGENTOSNAME) == 'Windows_NT_FullFramework'" Include="Microsoft.NET.Build.Containers.IntegrationTests\Microsoft.NET.Build.Containers.IntegrationTests.csproj"> |
21 |
| - <TargetFramework>net472</TargetFramework> |
22 |
| - <RuntimeTargetFramework>net472</RuntimeTargetFramework> |
23 |
| - </SDKCustomXUnitProject> |
24 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true'" Include="Microsoft.NET.Build.Containers.UnitTests\Microsoft.NET.Build.Containers.UnitTests.csproj" /> |
25 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true'" Include="..\src\Tasks\Microsoft.NET.Build.Extensions.Tasks.UnitTests\Microsoft.NET.Build.Extensions.Tasks.UnitTests.csproj"> |
26 |
| - <ExcludeAdditionalParameters>true</ExcludeAdditionalParameters> |
27 |
| - </SDKCustomXUnitProject> |
28 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true'" Include="..\src\Tasks\Microsoft.NET.Build.Tasks.UnitTests\Microsoft.NET.Build.Tasks.UnitTests.csproj"> |
29 |
| - <ExcludeAdditionalParameters>true</ExcludeAdditionalParameters> |
30 |
| - </SDKCustomXUnitProject> |
31 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' == 'true'" Include="**\*.AoT.Tests.csproj" /> |
32 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true' And $(_AGENTOSNAME) == 'Windows_NT_FullFramework'" Include="Microsoft.DotNet.MSBuildSdkResolver.Tests\Microsoft.DotNet.MSBuildSdkResolver.Tests.csproj"> |
33 |
| - <TargetFramework>net472</TargetFramework> |
34 |
| - <RuntimeTargetFramework>net472</RuntimeTargetFramework> |
35 |
| - </SDKCustomXUnitProject> |
36 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true' And $(_AGENTOSNAME) == 'Windows_NT_FullFramework'" Include="Microsoft.DotNet.ApiCompat.IntegrationTests\Microsoft.DotNet.ApiCompat.IntegrationTests.csproj"> |
37 |
| - <TargetFramework>net472</TargetFramework> |
38 |
| - <RuntimeTargetFramework>net472</RuntimeTargetFramework> |
39 |
| - </SDKCustomXUnitProject> |
40 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true' And $(_AGENTOSNAME) == 'Windows_NT_FullFramework'" Include="Microsoft.DotNet.PackageValidation.Tests\Microsoft.DotNet.PackageValidation.Tests.csproj"> |
41 |
| - <TargetFramework>net472</TargetFramework> |
42 |
| - <RuntimeTargetFramework>net472</RuntimeTargetFramework> |
43 |
| - </SDKCustomXUnitProject> |
44 |
| - <SDKCustomXUnitProject Condition="'$(RunAoTTests)' != 'true' And $(_AGENTOSNAME) == 'Windows_NT_FullFramework'" Include="Microsoft.NET.Sdk.Publish.Tasks.Tests\Microsoft.NET.Sdk.Publish.Tasks.Tests.csproj"> |
45 |
| - <TargetFramework>net472</TargetFramework> |
46 |
| - <RuntimeTargetFramework>net472</RuntimeTargetFramework> |
47 |
| - </SDKCustomXUnitProject> |
| 18 | + <SDKCustomXUnitProject Include="containerize.UnitTests\containerize.UnitTests.csproj" /> |
| 19 | + <SDKCustomXUnitProject Include="Microsoft.NET.Build.Containers.IntegrationTests\Microsoft.NET.Build.Containers.IntegrationTests.csproj" /> |
| 20 | + |
| 21 | + <SDKCustomXUnitProject Include="Microsoft.NET.Build.Containers.UnitTests\Microsoft.NET.Build.Containers.UnitTests.csproj" /> |
| 22 | + <SDKCustomXUnitProject Include="..\src\Tasks\Microsoft.NET.Build.Extensions.Tasks.UnitTests\Microsoft.NET.Build.Extensions.Tasks.UnitTests.csproj" ExcludeAdditionalParameters="true" /> |
| 23 | + <SDKCustomXUnitProject Include="..\src\Tasks\Microsoft.NET.Build.Tasks.UnitTests\Microsoft.NET.Build.Tasks.UnitTests.csproj" ExcludeAdditionalParameters="true" /> |
48 | 24 |
|
49 | 25 | <!-- Don't run MSI installation tests in Helix / CI -->
|
50 | 26 | <SdkCustomXUnitProject Remove="dotnet-MsiInstallation.Tests\**\*" />
|
51 | 27 | </ItemGroup>
|
52 | 28 |
|
| 29 | + <!-- When TestFullMSBuild=true, include the .NET Framework tests. .NETCoreApp tests are also executed |
| 30 | + as that validates running tests with desktop msbuild. --> |
| 31 | + <ItemGroup Condition="'$(TestFullMSBuild)' == 'true'"> |
| 32 | + <SDKCustomXUnitProject Include=" |
| 33 | + core-sdk-tasks.Tests\core-sdk-tasks.Tests.csproj; |
| 34 | + Microsoft.DotNet.ApiCompat.IntegrationTests\Microsoft.DotNet.ApiCompat.IntegrationTests.csproj; |
| 35 | + Microsoft.DotNet.ApiCompat.Tests\Microsoft.DotNet.ApiCompat.Tests.csproj; |
| 36 | + Microsoft.DotNet.ApiCompatibility.Tests\Microsoft.DotNet.ApiCompatibility.Tests.csproj; |
| 37 | + Microsoft.DotNet.ApiSymbolExtensions.Tests\Microsoft.DotNet.ApiSymbolExtensions.Tests.csproj; |
| 38 | + Microsoft.DotNet.MSBuildSdkResolver.Tests\Microsoft.DotNet.MSBuildSdkResolver.Tests.csproj; |
| 39 | + Microsoft.DotNet.PackageValidation.Tests\Microsoft.DotNet.PackageValidation.Tests.csproj; |
| 40 | + Microsoft.DotNet.TemplateLocator.Tests\Microsoft.DotNet.TemplateLocator.Tests.csproj; |
| 41 | + Microsoft.NET.Build.Containers.IntegrationTests\Microsoft.NET.Build.Containers.IntegrationTests.csproj; |
| 42 | + Microsoft.NET.Sdk.Publish.Tasks.Tests\Microsoft.NET.Sdk.Publish.Tasks.Tests.csproj; |
| 43 | + Microsoft.NET.Sdk.WorkloadManifestReader.Tests\Microsoft.NET.Sdk.WorkloadManifestReader.Tests.csproj; |
| 44 | + Microsoft.Win32.Msi.Tests\Microsoft.Win32.Msi.Tests.csproj" |
| 45 | + TargetFramework="net472" |
| 46 | + RuntimeTargetFramework="net472" /> |
| 47 | + </ItemGroup> |
| 48 | + |
| 49 | + <ItemGroup Condition="'$(RunAoTTests)' == 'true'"> |
| 50 | + <SDKCustomXUnitProject Remove="@(SDKCustomXUnitProject)" /> |
| 51 | + <SDKCustomXUnitProject Include="**\*.AoT.Tests.csproj" /> |
| 52 | + </ItemGroup> |
| 53 | + |
53 | 54 | <ItemGroup Condition=" '$(CustomHelixTargetQueue)' != '' ">
|
54 | 55 | <HelixTargetQueue Include="$(CustomHelixTargetQueue)" />
|
55 | 56 | </ItemGroup>
|
|
0 commit comments