diff --git a/eng/pipelines/common/templates/runtimes/build-test-job.yml b/eng/pipelines/common/templates/runtimes/build-test-job.yml index ca7cd7e68063e..51fb5ea58c003 100644 --- a/eng/pipelines/common/templates/runtimes/build-test-job.yml +++ b/eng/pipelines/common/templates/runtimes/build-test-job.yml @@ -95,6 +95,18 @@ jobs: - name: runtimeFlavorArgs value: '-mono' + - name: testTreeFilterArg + value: '' + + # Only build GCSimulator tests when the gc-simulator group is specified. + - ${{ if eq(parameters.testGroup, 'gc-simulator') }}: + - ${{ if eq(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: 'tree GC/Scenarios/GCSimulator' + - ${{ if ne(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: '-tree:GC/Scenarios/GCSimulator' + steps: # Install test build dependencies @@ -113,7 +125,7 @@ jobs: displayName: Disk Usage before Build # Build managed test components - - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)Managed allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(runtimeFlavorArgs) $(crossArg) $(priorityArg) ci /p:TargetOS=AnyOS + - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)Managed allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(runtimeFlavorArgs) $(crossArg) $(priorityArg) $(testTreeFilterArg) ci /p:TargetOS=AnyOS displayName: Build managed test components - ${{ if in(parameters.osGroup, 'OSX', 'iOS', 'tvOS') }}: diff --git a/eng/pipelines/common/templates/runtimes/run-test-job.yml b/eng/pipelines/common/templates/runtimes/run-test-job.yml index 7e8a920bd3117..649a751b9e666 100644 --- a/eng/pipelines/common/templates/runtimes/run-test-job.yml +++ b/eng/pipelines/common/templates/runtimes/run-test-job.yml @@ -134,6 +134,18 @@ jobs: - name: LogNamePrefix value: TestRunLogs_R2R_CG2_Composite + - name: testTreeFilterArg + value: '' + + # Only build GCSimulator tests when the gc-simulator group is specified. + - ${{ if eq(parameters.testGroup, 'gc-simulator') }}: + - ${{ if eq(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: 'tree GC/Scenarios/GCSimulator' + - ${{ if ne(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: '-tree:GC/Scenarios/GCSimulator' + # Set job timeouts # # "timeoutPerTestCollectionInMinutes" is the time needed for the "biggest" xUnit test collection to complete. @@ -287,7 +299,7 @@ jobs: # and directly unzip them there after download). Unfortunately the logic to copy # the native artifacts to the final test folders is dependent on availability of the # managed test artifacts. - - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) copynativeonly $(logRootNameArg)Native $(runtimeFlavorArgs) $(crossgenArg) $(buildConfig) $(archType) $(priorityArg) $(librariesOverrideArg) + - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) copynativeonly $(logRootNameArg)Native $(testTreeFilterArg) $(runtimeFlavorArgs) $(crossgenArg) $(buildConfig) $(archType) $(priorityArg) $(librariesOverrideArg) displayName: Copy native test components to test output folder diff --git a/src/tests/Common/helixpublishwitharcade.proj b/src/tests/Common/helixpublishwitharcade.proj index ccb695afd9c0b..8f0e580ee7de4 100644 --- a/src/tests/Common/helixpublishwitharcade.proj +++ b/src/tests/Common/helixpublishwitharcade.proj @@ -307,21 +307,21 @@ Condition="'@(_MergedWrapperOutOfProcessTestMarkers)' != ''" /> - + <_MergedPayloadGroups Include="$(_MergedWrapperName)" /> <_MergedPayloadFiles Include="$(_MergedWrapperDirectory)/**" /> <_MergedPayloadFiles Include="@(_MergedWrapperOutOfProcessTestFiles)" /> - <_MergedPayloadFiles Update="@(_MergedPayloadFiles)"> + <_MergedPayloadFiles Update="@(_MergedPayloadFiles)" Condition="'@(_MergedPayloadFiles)' != ''" > $([System.IO.Path]::GetRelativePath($(TestBinDir), %(FullPath))) - + - + @@ -332,7 +332,7 @@ - + @@ -577,9 +577,15 @@ $([System.String]::Join(' ', $([System.IO.Directory]::GetFiles(%(FullPath), '*.XUnitWrapper.dll', SearchOption.AllDirectories))).Replace($([MSBuild]::EnsureTrailingSlash(%(FullPath))),'')) + %(PayloadGroup) - + + + $(LegacyPayloadsRootDirectory)\%(PayloadGroup).zip