|
45 | 45 | <Import Project="eng\targets\Packaging.targets" Condition=" '$(MSBuildProjectExtension)' == '.csproj' " /> |
46 | 46 | <Import Project="eng\targets\ResolveReferences.targets" Condition=" '$(DisableReferenceRestrictions)' != 'true' AND '$(MSBuildProjectExtension)' == '.csproj' " /> |
47 | 47 |
|
48 | | - <ItemGroup> |
| 48 | + <ItemGroup> |
49 | 49 | <PackageReference Include="xunit.runner.console" Version="2.4.1" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" /> |
50 | | - <DistributedTestPlatform Include="Windows10.x64" /> |
51 | 50 | </ItemGroup> |
52 | 51 |
|
53 | 52 | <Target Name="CreateTestPayload" Returns="@(TestPayload)"> |
|
76 | 75 | <Copy SourceFiles="@(XunitConsoleRunnerFiles)" DestinationFolder="$(PublishDir)" /> |
77 | 76 | </Target> |
78 | 77 |
|
79 | | - <!-- TODO: Exclude non test projects and net461 on non windows --> |
80 | 78 | <Target Name="_CreateTestPayloadInner" |
81 | 79 | DependsOnTargets="Publish;CollectXunitConsoleRunner" |
82 | 80 | Condition="'$(IsTestProject)' == 'true' AND ('$(HelixTargetQueue)' == 'Windows.10.Amd64.Open' OR '$(TargetFrameworkIdentifier)' != '.NETFramework')" |
|
88 | 86 |
|
89 | 87 | <!-- Windows NetCore --> |
90 | 88 | <ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework' AND '$(HelixTargetQueue)' == 'Windows.10.Amd64.Open'" > |
91 | | - <!-- TODO: Clean this up --> |
92 | 89 | <_CopyItems Include="$(MSBuildThisFileDirectory)test\vstest\runtests.cmd" /> |
93 | | - <!-- switch to downloading this either before publish or on helix workers --> |
94 | | - <!-- <_CopyItems Include="$(MSBuildThisFileDirectory)test\vstest\dotnet-install.ps1" /> --> |
95 | 90 | </ItemGroup> |
96 | 91 |
|
97 | 92 | <!-- Windows NetFramework --> |
98 | 93 | <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' AND '$(HelixTargetQueue)' == 'Windows.10.Amd64.Open'" > |
99 | | - <!-- TODO: Clean this up --> |
100 | 94 | <_CopyItems Include="$(MSBuildThisFileDirectory)test\xunit\runtests.cmd" /> |
101 | 95 | </ItemGroup> |
102 | 96 |
|
|
107 | 101 |
|
108 | 102 | <Copy SourceFiles="@(_CopyItems)" DestinationFolder="$(PublishAbsoluteDir)" /> |
109 | 103 |
|
110 | | - <!-- <ItemGroup> |
111 | | - <PublishDirFiles Include="$(PublishAbsoluteDir)/**/*" /> |
112 | | - </ItemGroup> --> |
113 | | - |
114 | | - <!-- <Copy SourceFiles="@(PublishDirFiles)" DestinationFolder="$(ArtifactsDir)\Helix\$(TargetFramework)\%(RecursiveDir)" /> --> |
115 | | - |
116 | 104 | <ItemGroup> |
117 | 105 | <TestPayload Include="$(PublishAbsoluteDir.TrimEnd('\').TrimEnd('\'))"> |
118 | 106 | <TestAssembly>$(TargetFileName)</TestAssembly> |
119 | 107 | <TestName>$(MSBuildProjectName)/$(TargetFramework)</TestName> |
120 | 108 | <!-- Look into how to be able to use $(NETCoreSdkVersion) --> |
121 | | - <!-- <Command Condition="'$(HelixTargetQueue)' == 'Windows.10.Amd64.Open'">%HELIX_CORRELATION_PAYLOAD%\$(TargetFramework)\runtests.cmd %HELIX_CORRELATION_PAYLOAD%\$(TargetFramework)\$(TargetFileName) 2.1.500-preview-009398 2.1.6</Command> |
122 | | - <Command Condition="'$(HelixTargetQueue)' != 'Windows.10.Amd64.Open'">$HELIX_CORRELATION_PAYLOAD/$(TargetFramework)/runtests.sh $HELIX_CORRELATION_PAYLOAD/$(TargetFramework)/$(TargetFileName) 2.1.500-preview-009398 2.1.6</Command> --> |
123 | | - <Command Condition="'$(HelixTargetQueue)' == 'Windows.10.Amd64.Open'">runtests.cmd $(TargetFileName) 2.1.500-preview-009398 2.1.6</Command> |
124 | | - <Command Condition="'$(HelixTargetQueue)' != 'Windows.10.Amd64.Open'">./runtests.sh $(TargetFileName) 2.1.500-preview-009398 2.1.6</Command> |
125 | | - <TestPlatform>%(DistributedTestPlatform.Identity)</TestPlatform> |
| 109 | + <Command Condition="'$(HelixTargetQueue)' == 'Windows.10.Amd64.Open'">runtests.cmd $(TargetFileName) $(NETCoreSdkVersion) $(RuntimeFrameworkVersion)</Command> |
| 110 | + <Command Condition="'$(HelixTargetQueue)' != 'Windows.10.Amd64.Open'">./runtests.sh $(TargetFileName) $(NETCoreSdkVersion) $(RuntimeFrameworkVersion)</Command> |
126 | 111 | <TestTimeout>$(DistributedTestTimeout)</TestTimeout> |
127 | 112 | </TestPayload> |
128 | 113 | </ItemGroup> |
|
0 commit comments