@@ -12,7 +12,9 @@ parameters:
1212 testProjects : $(Build.SourcesDirectory)/test/UnitTests.proj
1313 publishRetryConfig : false
1414 publishXunitResults : false
15+ testRunnerAdditionalArguments : ' '
1516 enableSbom : true
17+ populateInternalRuntimeVariables : false
1618 timeoutInMinutes : 150
1719 # ## ENV VARS ###
1820 testFullMSBuild : false
@@ -71,11 +73,11 @@ jobs:
7173 targetPath : $(Build.SourcesDirectory)/eng/BuildConfiguration
7274 artifactName : BuildConfiguration
7375
74- # Populate internal runtime variables.
75- - template : /eng/common/templates /steps/enable-internal-sources.yml
76- parameters :
77- legacyCredential : $(dn-bot-dnceng-artifact-feeds-rw)
78- - template : /eng/common/templates /steps/enable-internal-runtimes.yml
76+ - ${{ if eq(parameters.populateInternalRuntimeVariables, true) }} :
77+ - template : /eng/common/${{ parameters.oneESCompat.templateFolderName }} /steps/enable-internal-sources.yml
78+ parameters :
79+ legacyCredential : $(dn-bot-dnceng-artifact-feeds-rw)
80+ - template : /eng/common/${{ parameters.oneESCompat.templateFolderName }} /steps/enable-internal-runtimes.yml
7981
8082 - ${{ if eq(parameters.downloadManifestMsiPackages, true) }} :
8183 - task : DownloadBuildArtifacts@1
8486 downloadPath : $(Build.SourcesDirectory)/artifacts/downloaded-manifest-msi-packages
8587 itemPattern : ' **/*Manifest-*.Msi.*.nupkg'
8688 checkDownloadedFiles : true
87- displayName : Download Manifest msi packages
89+ displayName : 🟣 Download Manifest MSI Packages
8890
8991 # ############## BUILDING ###############
9092 - ${{ if eq(parameters.pool.os, 'windows') }} :
@@ -105,10 +107,6 @@ jobs:
105107 BuildConfig : $(buildConfiguration)
106108 TestFullMSBuild : ${{ parameters.testFullMSBuild }}
107109
108- - ${{ if eq(parameters.targetArchitecture, 'x64') }} :
109- - powershell : build/RunTestTemplateTests.ps1
110- displayName : 🟣 Run Test Templates Tests
111-
112110 - ${{ else }} :
113111 - script : |
114112 source $(Build.SourcesDirectory)/eng/common/native/init-os-and-arch.sh
@@ -141,12 +139,14 @@ jobs:
141139 - script : $(Build.SourcesDirectory)/artifacts/bin/redist/$(buildConfiguration)/dotnet/dotnet workload install wasm-tools --skip-manifest-update
142140 workingDirectory : $(Build.SourcesDirectory)/artifacts/bin
143141 displayName : 🟣 Install wasm-tools Workload
142+
144143 # For the /p:Projects syntax for PowerShell, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1146466335
145144 - ${{ if eq(parameters.pool.os, 'windows') }} :
146145 - powershell : eng/common/build.ps1
147146 -restore -test -ci -prepareMachine -nativeToolsOnMachine
148147 -configuration $(buildConfiguration)
149148 /p:Projects=\`"${{ replace(parameters.testProjects, ';', '`;') }}\`"
149+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
150150 /p:TargetArchitecture=${{ parameters.targetArchitecture }}
151151 ${{ parameters.runtimeSourceProperties }}
152152 /p:CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
@@ -159,6 +159,7 @@ jobs:
159159 HelixAccessToken : $(HelixApiAccessToken)
160160 RunAoTTests : ${{ parameters.runAoTTests }}
161161 TestFullMSBuild : ${{ parameters.testFullMSBuild }}
162+
162163 - ${{ else }} :
163164 # For the /p:Projects syntax for Bash, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1690189034
164165 # The /p:CustomHelixTargetQueue syntax is: <queue-name>@<container-url>
@@ -167,6 +168,7 @@ jobs:
167168 -restore -test -ci -prepareMachine
168169 -configuration $(buildConfiguration)
169170 ' /p:Projects="${{ parameters.testProjects }}"'
171+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
170172 /p:TargetArchitecture=${{ parameters.targetArchitecture }}
171173 /p:TargetRid=${{ parameters.runtimeIdentifier }}
172174 ${{ parameters.osProperties }}
0 commit comments