-
Notifications
You must be signed in to change notification settings - Fork 565
Enable more tests to run on all 3 runtimes, part 2 #10580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
a02f56e to
8d64c27
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends test coverage by enabling numerous build tests to run on all three Android runtimes: MonoVM, CoreCLR, and NativeAOT. This is part 2 of enabling broader runtime test coverage.
Key changes:
- Added runtime parameterization to 30+ test methods in BuildTest2.cs
- Introduced
IgnoreUnsupportedConfigurationhelper to skip invalid runtime/configuration combinations - Added new overloads of
SetRuntimeto properly configure NativeAOT for application projects - Added baseline
.apkdescfiles for NativeAOT test validation
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| BuildReleaseArm64XFormsDotNet.NativeAOT.apkdesc | New baseline file for NativeAOT XForms release builds on ARM64 |
| BuildReleaseArm64XFormsDotNet.MonoVM.apkdesc | Updated baseline with new assembly sizes for MonoVM |
| BuildReleaseArm64SimpleDotNet.NativeAOT.apkdesc | New baseline file for NativeAOT simple app release builds on ARM64 |
| BuildReleaseArm64SimpleDotNet.MonoVM.apkdesc | Updated baseline with new assembly sizes for MonoVM |
| ProjectExtensions.cs | Added SetRuntime overloads to properly handle NativeAOT for application projects; refactored runtime configuration logic |
| BaseTest.cs | Added IgnoreUnsupportedConfiguration helper to skip invalid test configurations based on runtime constraints |
| BuildTest2.cs | Parameterized 30+ tests to run on all runtimes; added runtime-specific assertions and skip logic; consolidated test data generation; fixed typo "receieve" → "receive" |
...Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/ProjectExtensions.cs
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…nes for NativeAOT
Fix has to wait till next week
NativeAOT broken because it doesn't properly quote arguments when calling `clang`
Irrelevant for NativeAOT
Irrelevant for NativeAOT
7b58c68 to
ce920dc
Compare
NOTE: should be merged after #10573 since it cherry-picked some stuff from it