Skip to content

Commit e16c0a4

Browse files
authored
[ci] Run more MSBuild tests on Linux (#8335)
Updates the Linux test job to include everything relevant from BuildTest, PackagingTest, XASdkTests, and AndroidDependenciesTests.
1 parent 40c609d commit e16c0a4

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,31 @@ stages:
277277

278278
- template: yaml-templates/run-nunit-tests.yaml
279279
parameters:
280-
testRunTitle: Xamarin.Android.Build.Tests - Linux .NET 6 Smoke Tests
280+
testRunTitle: Xamarin.Android.Build.Tests - Linux BuildTest
281281
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
282-
dotNetTestExtraArgs: --filter "TestCategory = SmokeTests"
283-
testResultsFile: TestResult-NETSmokeMSBuildTests-Linux-$(XA.Build.Configuration).xml
282+
dotNetTestExtraArgs: --filter "Name = BuildTest"
283+
testResultsFile: TestResult-BuildTest-Linux-$(XA.Build.Configuration).xml
284+
285+
- template: yaml-templates/run-nunit-tests.yaml
286+
parameters:
287+
testRunTitle: Xamarin.Android.Build.Tests - Linux PackagingTest
288+
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
289+
dotNetTestExtraArgs: --filter "Name = PackagingTest"
290+
testResultsFile: TestResult-PackagingTest-Linux-$(XA.Build.Configuration).xml
291+
292+
- template: yaml-templates/run-nunit-tests.yaml
293+
parameters:
294+
testRunTitle: Xamarin.Android.Build.Tests - Linux XASdkTests
295+
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
296+
dotNetTestExtraArgs: --filter "Name = XASdkTests & Name != XamarinLegacySdk"
297+
testResultsFile: TestResult-XASdkTests-Linux-$(XA.Build.Configuration).xml
298+
299+
- template: yaml-templates/run-nunit-tests.yaml
300+
parameters:
301+
testRunTitle: Xamarin.Android.Build.Tests - Linux AndroidDependenciesTests
302+
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
303+
dotNetTestExtraArgs: --filter "Name = AndroidDependenciesTests"
304+
testResultsFile: TestResult-AndroidDependenciesTests-Linux-$(XA.Build.Configuration).xml
284305

285306
- task: ShellScript@2
286307
displayName: Test dotnet-local.sh
@@ -291,7 +312,7 @@ stages:
291312
- template: yaml-templates/upload-results.yaml
292313
parameters:
293314
configuration: $(XA.Build.Configuration)
294-
artifactName: Test Results - MSBuild Smoke - Linux
315+
artifactName: Test Results - MSBuild - Linux
295316

296317
- template: yaml-templates/fail-on-issue.yaml
297318

0 commit comments

Comments
 (0)