Add unloadability testing tool (#22064)
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 23 Jan 2019 21:59:27 +0000 (22:59 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Jan 2019 21:59:27 +0000 (22:59 +0100)
commit70e7fa10827d039dcf2f3c59284da85eac02ac09
treefbd682b70751e0a99f5dad2eef42fe43ff08634a
parenta0f81f59a7beb7120d3147c1547ef8ec1f05e0ae
Add unloadability testing tool (#22064)

* Add unloadability testing tool

This change adds the unloadability testing tool that can be used to run
coreclr tests or any other .NET core app inside of unloadable
AssemblyLoadContext, unload it after its execution completes and verify
that the unload succeeded. It has also various additional testing
options:
* memory leak testing
* running multiple iterations of the load/run/unload sequence
* optional breaking into debugger at various interesting stages (before
executing the test assembly, after executing it, on unload failure)
* delegated load when the AssemblyLoadContext that loads the test
assembly delegates loading of all the dependencies to another
AssemblyLoadContext
tests/scripts/runincontext.cmd [new file with mode: 0644]
tests/src/runincontext/runincontext.cs [new file with mode: 0644]
tests/src/runincontext/runincontext.csproj [new file with mode: 0644]