Uh oh!
There was an error while loading. Please reload this page.
[tests] Add MonoApi runtime tests - #65221
Conversation
00af384 to
7bbc8dbCompare2d5c50e to
9cb521dCompareFixed C++ compilation issues.
More ugly hacks.
Had to copy the w32_find_symbol code that searches for a symbol in every module.
Delete some unrunnable tests. Copy some basic eglib utilities into the test.
Maybe get the module name from managed, based on platform, instead?
Not expected to run on coreclr or mono on wasm or mobile, for now.
18e46d4 to
4d063eaCompare/cc @dotnet/interop-contrib @trylek I'd love some feedback on the overall setup for these tests |
lambdageek
commented
Mar 1, 2022
@lateralusX I kept most of the win32 code from libtest.c, and I believe the native library is building as part of the coreclr win32 tests build, but I haven't tried running the tests on Windows Mono. |
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,6 @@ | |||
| // This file intentionally doesn't have header guards | |||
| @@ -2,9 +2,11 @@ | |||
| using System.Reflection; | |||
| @@ -7,14 +7,33 @@ | |||
| using System.Threading; | |||
| @@ -2,19 +2,21 @@ | |||
| using System.Runtime.InteropServices; | |||
| @@ -0,0 +1,32 @@ | |||
| using System; | |||
| add_subdirectory(ObjectiveC/ObjectiveCMarshalAPI) | ||
| endif() | ||
| add_subdirectory(MonoAPI/Native) |
There was a problem hiding this comment.
Let's move this up to before the first if branch since it should be always done and with that "group".
| @@ -0,0 +1,1088 @@ | |||
lateralusX
commented
Mar 2, 2022
OK, I can look at that once the PR has been merged. |
lambdageek
commented
Mar 2, 2022
Interesting, thunks test failure on llvmaot is relevant. need to check if that test ran with aot in mono/mono |
a7439ac to
e2a4933Comparelambdageek
commented
Mar 3, 2022
Yea, we skipped that test on AOT configurations in mono/mono |
In the mono/mono repo that test was not expected to work with AOT
e2a4933 to
8e3aa5eCompare
Contributes to #64456
Create a new directory
src/tests/Interop/MonoAPIfor tests that use the mono embedding API.Move the mono
libtest.cnative library along with managed tests:InstallEHCallback.cs,PInvokeDetach.csandThunks.cstosrc/tests/Interop/MonoAPI/...The native library (now called
mono-embedding-api-test.c) builds on all platforms where we build native support libraries for the runtime tests.The managed tests only run on desktop mono configurations for now.