Skip to content

Commit

Permalink
[ci] Run more MSBuild tests on Linux (#8335)
Browse files Browse the repository at this point in the history
Updates the Linux test job to include everything relevant from
BuildTest, PackagingTest, XASdkTests, and AndroidDependenciesTests.
  • Loading branch information
pjcollins committed Sep 15, 2023
1 parent 40c609d commit e16c0a4
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,31 @@ stages:

- template: yaml-templates/run-nunit-tests.yaml
parameters:
testRunTitle: Xamarin.Android.Build.Tests - Linux .NET 6 Smoke Tests
testRunTitle: Xamarin.Android.Build.Tests - Linux BuildTest
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
dotNetTestExtraArgs: --filter "TestCategory = SmokeTests"
testResultsFile: TestResult-NETSmokeMSBuildTests-Linux-$(XA.Build.Configuration).xml
dotNetTestExtraArgs: --filter "Name = BuildTest"
testResultsFile: TestResult-BuildTest-Linux-$(XA.Build.Configuration).xml

- template: yaml-templates/run-nunit-tests.yaml
parameters:
testRunTitle: Xamarin.Android.Build.Tests - Linux PackagingTest
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
dotNetTestExtraArgs: --filter "Name = PackagingTest"
testResultsFile: TestResult-PackagingTest-Linux-$(XA.Build.Configuration).xml

- template: yaml-templates/run-nunit-tests.yaml
parameters:
testRunTitle: Xamarin.Android.Build.Tests - Linux XASdkTests
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
dotNetTestExtraArgs: --filter "Name = XASdkTests & Name != XamarinLegacySdk"
testResultsFile: TestResult-XASdkTests-Linux-$(XA.Build.Configuration).xml

- template: yaml-templates/run-nunit-tests.yaml
parameters:
testRunTitle: Xamarin.Android.Build.Tests - Linux AndroidDependenciesTests
testAssembly: $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Build.Tests.dll
dotNetTestExtraArgs: --filter "Name = AndroidDependenciesTests"
testResultsFile: TestResult-AndroidDependenciesTests-Linux-$(XA.Build.Configuration).xml

- task: ShellScript@2
displayName: Test dotnet-local.sh
Expand All @@ -291,7 +312,7 @@ stages:
- template: yaml-templates/upload-results.yaml
parameters:
configuration: $(XA.Build.Configuration)
artifactName: Test Results - MSBuild Smoke - Linux
artifactName: Test Results - MSBuild - Linux

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

Expand Down

0 comments on commit e16c0a4

Please sign in to comment.