-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[clr-ios] Add R2R and interpreter functional tests on iOS #122036
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
Merged
kotlarmilos
merged 19 commits into
dotnet:main
from
kotlarmilos:improvement/clr-ios-r2r-test
Dec 5, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
963242f
Add R2R functional test on iOS
kotlarmilos 007a6d3
Rename project files
kotlarmilos c687585
Update MainLibraryFileName in iOS test projects
kotlarmilos 3e58c2b
Rename project file
kotlarmilos 520dd15
Disable R2R in interp-only test
kotlarmilos 34feb56
Refactor import condition for AppleBuild.InTree.targets in iOS R2R te…
kotlarmilos 5ce0f1e
Remove conditional import of AppleBuild.InTree.targets for iOS R2R te…
kotlarmilos 2addc57
Refactor iOS build configuration to use CrossGen props/targets
kotlarmilos e33f99d
Override R2R-related targets in the SDK
kotlarmilos f474dfb
Revert changes
kotlarmilos d9d1c98
Remove unnecessary environment variable for ReadyToRun
kotlarmilos 9c61b72
Add AppleBuild.ReadyToRun.targets
kotlarmilos 47558eb
Add environment variable to disable ReadyToRun for iOS interpreter test
kotlarmilos a4b4e75
Add environment variable to control ReadyToRun behavior for iOS tests
kotlarmilos 64a0599
Add IsFunctionalTest property to iOS Device build configuration
kotlarmilos 0bbc29c
Revert changes
kotlarmilos 344780e
Fix path
kotlarmilos 4e7496c
Use TargetsAppleMobile
kotlarmilos 30af4ac
Merge branch 'main' into improvement/clr-ios-r2r-test
kotlarmilos 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
17 changes: 17 additions & 0 deletions
17
src/mono/msbuild/apple/build/AppleBuild.ReadyToRun.targets
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <Project> | ||
| <!-- Tracking issue: https://github.com/dotnet/runtime/issues/119006 | ||
| Override the ResolveReadyToRunCompilers target to use the in-build crossgen2. | ||
| This needs to be imported after SDK targets, so any project requiring this should set AfterMicrosoftNETSdkTargets --> | ||
| <Target Name="ResolveReadyToRunCompilers" Condition="'$(PublishReadyToRun)' == true" DependsOnTargets="ResolveRuntimeFilesFromLocalBuild"> | ||
| <PropertyGroup> | ||
| <Crossgen2Path>$([MSBuild]::NormalizePath('$(Crossgen2InBuildDir)', 'crossgen2$(ExeSuffix)'))</Crossgen2Path> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Crossgen2Tool Include="$(Crossgen2Path)" | ||
| TargetArch="$(TargetArchitecture)" | ||
| TargetOS="$(TargetOS)" | ||
| PerfmapFormatVersion="$(PublishReadyToRunPerfmapFormatVersion)"/> | ||
| </ItemGroup> | ||
| </Target> | ||
| </Project> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ | |
| </PropertyGroup> | ||
|
|
||
| <Import Project="..\..\Directory.Build.props" /> | ||
| </Project> | ||
| </Project> | ||
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
19 changes: 19 additions & 0 deletions
19
src/tests/FunctionalTests/iOS/Simulator/CoreCLR/iOS.CoreCLR.R2R.Test.csproj
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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <UseMonoRuntime>false</UseMonoRuntime> | ||
| <MonoForceInterpreter>false</MonoForceInterpreter> | ||
| <RunAOTCompilation>false</RunAOTCompilation> | ||
| <TestRuntime>true</TestRuntime> | ||
| <TargetFramework>$(NetCoreAppCurrent)</TargetFramework> | ||
| <TargetOS Condition="'$(TargetOS)' == ''">iossimulator</TargetOS> | ||
| <MainLibraryFileName>iOS.CoreCLR.R2R.Test.dll</MainLibraryFileName> | ||
| <IncludesTestRunner>false</IncludesTestRunner> | ||
| <ExpectedExitCode>42</ExpectedExitCode> | ||
| <PublishReadyToRun>true</PublishReadyToRun> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Compile Include="Program.cs" /> | ||
| </ItemGroup> | ||
| </Project> |
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.
Uh oh!
There was an error while loading. Please reload this page.