mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
[release/9.0] Fix a case in MethodImpl overriding which wasn't handled as expected in ilc.exe for native aot (#107409)
* Fix a case in MethodImpl overriding which wasn't handled as expected in ilc.exe for native aot - This was causing real C# applications to fail to behave correctly on NativeAOT builds - Enable testing for covariant byref returns on nativeaot (split testing up so that the tests do not expect TypeLoadException, which NativeAOT doesn't reliably generate) - Fix implementation of SynthesizedPgoIncompatible project file flag for test script generation - Put copy of attributetesting.il test into the managed type system unit test suite - Add regression test of issue noted in #96175 into managed type system unit test suite - Update workflow documentation to include a better path to finding details on how to run CoreCLR and Libraries tests for Native AOT Fixes #96175 * Fix test with incorrect IL * Make the remaining TODO comments follow existing practice in this file for todo comments * Fix test exclusion for mono llvmaot * Address nits from code review --------- Co-authored-by: David Wrighton <davidwr@microsoft.com> Co-authored-by: Jeff Schwartz <jeffschw@microsoft.com>
This commit is contained in:
parent
ee46f01b97
commit
24889f9145
19 changed files with 3923 additions and 649 deletions
|
@ -78,12 +78,14 @@ Now you know about configurations and how we use them, so now you will want to r
|
|||
|
||||
* [Building CoreCLR runtime](/docs/workflow/building/coreclr/README.md)
|
||||
* [Building Mono runtime](/docs/workflow/building/mono/README.md)
|
||||
* [Building NativeAOT runtime](/docs/workflow/building/coreclr/nativeaot.md)
|
||||
* [Building Libraries](/docs/workflow/building/libraries/README.md)
|
||||
|
||||
After that, here's information about how to run tests:
|
||||
|
||||
* [Testing CoreCLR runtime](/docs/workflow/testing/coreclr/testing.md)
|
||||
* [Testing Mono runtime](/docs/workflow/testing/mono/testing.md)
|
||||
* [Testing NativeAOT runtime](/docs/workflow/building/coreclr/nativeaot.md#running-tests)
|
||||
* [Testing Libraries](/docs/workflow/testing/libraries/testing.md)
|
||||
|
||||
And how to measure performance:
|
||||
|
|
|
@ -87,6 +87,8 @@ If you haven't built the tests yet, run `src\tests\build.cmd nativeaot [Debug|Re
|
|||
|
||||
To run all the tests that got built, run `src\tests\run.cmd runnativeaottests [Debug|Release]` on Windows, or `src/tests/run.sh --runnativeaottests [Debug|Release]` on Linux. The `Debug`/`Release` flag should match the flag that was passed to `build.cmd` in the previous step.
|
||||
|
||||
To build an individual test, follow the instructions for compiling a individual test project located in [Building an Individual Test](/docs/workflow/testing/coreclr/testing.md#building-an-individual-test), but add `/t:BuildNativeAot /p:TestBuildMode=nativeaot` to the build command.
|
||||
|
||||
To run an individual test (after it was built), navigate to the `artifacts\tests\coreclr\[windows|linux|osx[.x64.[Debug|Release]\$path_to_test` directory. `$path_to_test` matches the subtree of `src\tests`. You should see a `[.cmd|.sh]` file there. This file is a script that will compile and launch the individual test for you. Before invoking the script, set the following environment variables:
|
||||
|
||||
* CORE_ROOT=$repo_root\artifacts\tests\coreclr\[windows|linux|osx].x64.[Debug|Release]\Tests\Core_Root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue