-
Notifications
You must be signed in to change notification settings - Fork 561
[net11.0] [tests] Expand the AppSizeTest to more platforms. #25080
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
Draft
rolfbjarne
wants to merge
7
commits into
net11.0
Choose a base branch
from
dev/rolf/net11.0-appsizetest
base: net11.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d477d88
[tests] Expand the AppSizeTest to more platforms.
rolfbjarne aa873de
Add updated expectations.
rolfbjarne 3d7d273
Fix R2R compilation on macOS, where we don't use composite R2R or the…
rolfbjarne 7c0da78
Fix multi-RID macOS dSYM post-processing
rolfbjarne cf63874
[msbuild] Treat dylibs as frameworks in the SymbolStrip task.
rolfbjarne 48d1b85
Merge remote-tracking branch 'origin/net11.0' into dev/rolf/net11.0-a…
rolfbjarne ceb1610
[tests] Update expected sizes.
rolfbjarne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,33 +11,70 @@ namespace Xamarin.Tests { | |
| public class AppSizeTest : TestBaseClass { | ||
|
|
||
| [TestCase (ApplePlatform.iOS, "ios-arm64")] | ||
| [TestCase (ApplePlatform.TVOS, "tvos-arm64")] | ||
| [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64")] | ||
| public void MonoVM (ApplePlatform platform, string runtimeIdentifiers) | ||
| { | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-MonoVM", true, new Dictionary<string, string> () { { "UseMonoRuntime", "true" } }); | ||
| var dict = new Dictionary<string, string> () { | ||
| { "UseMonoRuntime", "true" }, | ||
| { "NoDSymUtil", "false" }, | ||
| }; | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-MonoVM", true, dict); | ||
| } | ||
|
|
||
| [TestCase (ApplePlatform.iOS, "ios-arm64")] | ||
| [TestCase (ApplePlatform.TVOS, "tvos-arm64")] | ||
| [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64")] | ||
| public void MonoVM_Interpreter (ApplePlatform platform, string runtimeIdentifiers) | ||
| { | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-MonoVM-interpreter", true, new Dictionary<string, string> () { { "UseInterpreter", "true" }, { "UseMonoRuntime", "true" } }); | ||
| var dict = new Dictionary<string, string> () { | ||
| { "UseInterpreter", "true" }, | ||
| { "UseMonoRuntime", "true" }, | ||
| { "NoDSymUtil", "false" }, | ||
| }; | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-MonoVM-interpreter", true, dict); | ||
| } | ||
|
|
||
| [TestCase (ApplePlatform.iOS, "ios-arm64")] | ||
| [TestCase (ApplePlatform.TVOS, "tvos-arm64")] | ||
| [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64")] | ||
| [TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64")] | ||
| public void NativeAOT (ApplePlatform platform, string runtimeIdentifiers) | ||
| { | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-NativeAOT", false, new Dictionary<string, string> () { { "PublishAot", "true" }, { "_IsPublishing", "true" } }); | ||
| var dict = new Dictionary<string, string> () { | ||
| { "PublishAot", "true" }, | ||
| { "_IsPublishing", "true" }, | ||
| { "NoDSymUtil", "false" }, // off by default for macOS, but we want to test it, so enable it | ||
| }; | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-NativeAOT", false, dict); | ||
| } | ||
|
|
||
| [TestCase (ApplePlatform.iOS, "ios-arm64")] | ||
| public void CoreCLR_Interpreter (ApplePlatform platform, string runtimeIdentifiers) | ||
| [TestCase (ApplePlatform.iOS, "ios-arm64", true)] | ||
| [TestCase (ApplePlatform.TVOS, "tvos-arm64", true)] | ||
| [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64", true)] | ||
| [TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64", false)] | ||
| public void CoreCLR_Interpreter (ApplePlatform platform, string runtimeIdentifiers, bool isTrimmed) | ||
| { | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-CoreCLR-Interpreter", true, new Dictionary<string, string> () { { "UseMonoRuntime", "false" }, { "PublishReadyToRun", "false" } }); | ||
| var dict = new Dictionary<string, string> () { | ||
| { "UseMonoRuntime", "false" }, | ||
| { "PublishReadyToRun", "false" }, | ||
| { "NoDSymUtil", "false" }, // off by default for macOS, but we want to test it, so enable it | ||
| }; | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-CoreCLR-Interpreter", isTrimmed, dict); | ||
| } | ||
|
|
||
| [TestCase (ApplePlatform.iOS, "ios-arm64")] | ||
| public void CoreCLR_R2R (ApplePlatform platform, string runtimeIdentifiers) | ||
| [TestCase (ApplePlatform.iOS, "ios-arm64", true)] | ||
| [TestCase (ApplePlatform.TVOS, "tvos-arm64", true)] | ||
| [TestCase (ApplePlatform.MacCatalyst, "maccatalyst-arm64", true)] | ||
| [TestCase (ApplePlatform.MacOSX, "osx-arm64;osx-x64", false)] | ||
| public void CoreCLR_R2R (ApplePlatform platform, string runtimeIdentifiers, bool isTrimmed) | ||
| { | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-CoreCLR-R2R", true, new Dictionary<string, string> () { { "UseMonoRuntime", "false" }, { "PublishReadyToRun", "true" } }); | ||
| var dict = new Dictionary<string, string> () { | ||
| { "UseMonoRuntime", "false" }, | ||
| { "PublishReadyToRun", "true" }, | ||
| { "NoDSymUtil", "false" }, // off by default for macOS, but we want to test it, so enable it | ||
| }; | ||
| Run (platform, runtimeIdentifiers, "Release", $"{platform}-CoreCLR-R2R", isTrimmed, dict); | ||
| } | ||
|
Comment on lines
+66
to
78
|
||
|
|
||
| // This test will build the SizeTestApp, and capture the resulting app size. | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The
isTrimmedparameter name is misleading here: it's passed directly toRun(..., supportsAssemblyInspection, ...)and controls whether the assembly API report is generated, not trimming. Rename this parameter (and the TestCase argument) to something likesupportsAssemblyInspection/supportsApiInspectionto match what it actually does, or introduce a separate trimming flag if that's the intent.