From e16c0a4ae76210a142fd4fd4ad8016db97259a10 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Fri, 15 Sep 2023 17:34:44 -0400 Subject: [PATCH] [ci] Run more MSBuild tests on Linux (#8335) Updates the Linux test job to include everything relevant from BuildTest, PackagingTest, XASdkTests, and AndroidDependenciesTests. --- build-tools/automation/azure-pipelines.yaml | 29 ++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 504a82311af..8d9db7ce126 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -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 @@ -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