@@ -55,6 +55,8 @@ variables:
55
55
value : $[or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['System.PullRequest.TargetBranch'], 'release/'))]
56
56
- name : DotNetNUnitCategories
57
57
value : ' & TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != SystemApplication'
58
+ - name : ExcludedNUnitCategories
59
+ value : ' & cat != DotNetIgnore & cat != HybridAOT & cat != MkBundle & cat != MonoSymbolicate & cat != PackagesConfig & cat != StaticProject & cat != SystemApplication'
58
60
- ${{ if eq(variables['Build.DefinitionName'], 'Xamarin.Android-Private') }} :
59
61
- group : AzureDevOps-Artifact-Feeds-Pats
60
62
- group : DotNet-MSRC-Storage
@@ -315,6 +317,11 @@ stages:
315
317
parameters :
316
318
displayName : install emulator
317
319
arguments : --s=EmulatorTestDependencies
320
+
321
+ - task : DownloadPipelineArtifact@2
322
+ inputs :
323
+ artifactName : $(TestAssembliesArtifactName)
324
+ downloadPath : $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)
318
325
319
326
# Set up dependencies to run tests in both debug and release configurations
320
327
- task : DotNetCoreCLI@2
@@ -398,6 +405,12 @@ stages:
398
405
artifactSource : bin/Test$(XA.Build.Configuration)/$(DotNetTargetFramework)-android/Mono.Android.NET_Tests-Signed.aab
399
406
artifactFolder : $(DotNetTargetFramework)-AotLlvm
400
407
408
+ - template : yaml-templates/run-nunit-tests.yaml
409
+ parameters :
410
+ testRunTitle : Xamarin.Android.Tools.Aidl-Tests - macOS
411
+ testAssembly : $(System.DefaultWorkingDirectory)/bin/Test$(XA.Build.Configuration)/$(DotNetStableTargetFramework)/Xamarin.Android.Tools.Aidl-Tests.dll
412
+ testResultsFile : TestResult-Aidl-Tests-macOS-$(XA.Build.Configuration).xml
413
+
401
414
- task : MSBuild@1
402
415
displayName : shut down emulator
403
416
inputs :
@@ -440,23 +453,25 @@ stages:
440
453
441
454
- template : yaml-templates/fail-on-issue.yaml
442
455
443
- # Xamarin.Android ( Smoke Tests MSBuild - Mac-0)
444
- - template : yaml-templates/run-msbuild-mac- tests.yaml
456
+ # MSBuild Smoke Tests - Mac
457
+ - template : yaml-templates/run-msbuild-tests.yaml
445
458
parameters :
446
- job_name : mac_dotnet_tests_0
447
- job_suffix : One .NET
448
- nunit_categories : ' | (TestCategory = SmokeTests $(DotNetNUnitCategories))'
449
- target_framework : $(DotNetStableTargetFramework)
450
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
451
-
452
- # Xamarin.Android (Smoke Tests MSBuild - Win-0)
453
- - template : yaml-templates\run-msbuild-win-tests.yaml
459
+ testOS : macOS
460
+ jobName : mac_smoke_msbuild_tests
461
+ jobDisplayName : macOS > Tests > MSBuild
462
+ agentCount : 2
463
+ testFilter : cat = SmokeTests
464
+ installApkDiff : true
465
+
466
+ # MSBuild Smoke Tests - Win
467
+ - template : yaml-templates/run-msbuild-tests.yaml
454
468
parameters :
455
- job_name : win_dotnet_tests_0
456
- job_suffix : One .NET
457
- nunit_categories : ' | (TestCategory = SmokeTests $(DotNetNUnitCategories))'
458
- target_framework : $(DotNetStableTargetFramework)
459
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
469
+ testOS : Windows
470
+ jobName : win_smoke_msbuild_tests
471
+ jobDisplayName : Windows > Tests > MSBuild
472
+ agentCount : 2
473
+ testFilter : cat = SmokeTests
474
+ installApkDiff : true
460
475
461
476
# Check - "Xamarin.Android (macOS > Tests > MSBuild+Emulator)"
462
477
- job : mac_msbuilddevice_tests
@@ -550,103 +565,14 @@ stages:
550
565
artifactName : Test Results - MSBuild Smoke - Linux
551
566
552
567
- template : yaml-templates/fail-on-issue.yaml
553
-
554
- - stage : msbuild_dotnet
555
- displayName : One .NET Tests
556
- dependsOn : mac_build
557
- condition : and(succeeded(), or(eq(variables['RunAllTests'], true), contains(dependencies.mac_build.outputs['mac_build_create_installers.TestConditions.TestAreas'], 'MSBuild')))
558
- jobs :
559
- # Xamarin.Android (Test MSBuild One .NET - macOS)
560
- - template : yaml-templates\run-msbuild-mac-tests.yaml
561
- parameters :
562
- node_id : 1
563
- job_name : mac_dotnet_tests_1
564
- job_suffix : One .NET
565
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
566
- target_framework : $(DotNetStableTargetFramework)
567
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
568
-
569
- - template : yaml-templates\run-msbuild-mac-tests.yaml
570
- parameters :
571
- node_id : 2
572
- job_name : mac_dotnet_tests_2
573
- job_suffix : One .NET
574
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
575
- target_framework : $(DotNetStableTargetFramework)
576
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
577
-
578
- - template : yaml-templates\run-msbuild-mac-tests.yaml
579
- parameters :
580
- node_id : 3
581
- job_name : mac_dotnet_tests_3
582
- job_suffix : One .NET
583
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
584
- target_framework : $(DotNetStableTargetFramework)
585
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
586
-
587
- - template : yaml-templates\run-msbuild-mac-tests.yaml
588
- parameters :
589
- node_id : 4
590
- job_name : mac_dotnet_tests_4
591
- job_suffix : One .NET
592
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
593
- target_framework : $(DotNetStableTargetFramework)
594
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
595
-
596
- - template : yaml-templates\run-msbuild-mac-tests.yaml
597
- parameters :
598
- node_id : 5
599
- job_name : mac_dotnet_tests_5
600
- job_suffix : One .NET
601
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
602
- target_framework : $(DotNetStableTargetFramework)
603
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
604
-
605
- - template : yaml-templates\run-msbuild-mac-tests.yaml
606
- parameters :
607
- node_id : 6
608
- job_name : mac_dotnet_tests_6
609
- job_suffix : One .NET
610
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
611
- target_framework : $(DotNetStableTargetFramework)
612
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
613
-
614
- # Xamarin.Android (Test MSBuild One .NET - Windows)
615
- - template : yaml-templates\run-msbuild-win-tests.yaml
616
- parameters :
617
- node_id : 1
618
- additional_node_id : 4
619
- job_name : win_dotnet_tests_1
620
- job_suffix : One .NET
621
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
622
- target_framework : $(DotNetStableTargetFramework)
623
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
624
-
625
- - template : yaml-templates\run-msbuild-win-tests.yaml
626
- parameters :
627
- node_id : 2
628
- additional_node_id : 5
629
- job_name : win_dotnet_tests_2
630
- job_suffix : One .NET
631
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
632
- target_framework : $(DotNetStableTargetFramework)
633
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
634
-
635
- - template : yaml-templates\run-msbuild-win-tests.yaml
636
- parameters :
637
- node_id : 3
638
- additional_node_id : 6
639
- job_name : win_dotnet_tests_3
640
- job_suffix : One .NET
641
- nunit_categories : $(DotNetNUnitCategories) & TestCategory != SmokeTests
642
- target_framework : $(DotNetStableTargetFramework)
643
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
644
-
568
+
569
+ - template : yaml-templates/stage-msbuild-tests.yaml
570
+ parameters :
571
+ stageCondition : and(succeeded(), or(eq(variables['RunAllTests'], true), contains(dependencies.mac_build.outputs['mac_build_create_installers.TestConditions.TestAreas'], 'MSBuild')))
572
+
645
573
- template : yaml-templates/stage-msbuild-emulator-tests.yaml
646
574
parameters :
647
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
648
575
stageCondition : and(succeeded(), or(eq(variables['RunAllTests'], true), contains(dependencies.mac_build.outputs['mac_build_create_installers.TestConditions.TestAreas'], 'MSBuildDevice')))
649
- nunit_categories : ' & cat != DotNetIgnore & cat != HybridAOT & cat != MkBundle & cat != MonoSymbolicate & cat != PackagesConfig & cat != StaticProject & cat != SystemApplication'
650
576
651
577
- stage : bcl_tests
652
578
displayName : BCL Emulator Tests
0 commit comments