diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2019-02-06 12:23:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-06 12:23:08 +0100 |
commit | 40bee916727e7b2ef5f1aa99e7e5ce1d345711a8 (patch) | |
tree | 22c3d9c5de2989a5dfb58a7b96929e4873bb22f1 /tests/runtest.cmd | |
parent | 77535a6e1d839d82d461cbacc7940c0b88de7ab0 (diff) | |
download | coreclr-40bee916727e7b2ef5f1aa99e7e5ce1d345711a8.tar.gz coreclr-40bee916727e7b2ef5f1aa99e7e5ce1d345711a8.tar.bz2 coreclr-40bee916727e7b2ef5f1aa99e7e5ce1d345711a8.zip |
Add option to run tests in unloadable context (#22332)
This change adds new "runincontext" option to the tests/runtest.cmd that
allows running tests inside of an unloadable AssemblyLoadContext.
It also adds new property that allows tests to be marked as incompatible
with running this way. All known tests that have such issue are marked
in this PR too.
Diffstat (limited to 'tests/runtest.cmd')
-rw-r--r-- | tests/runtest.cmd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/runtest.cmd b/tests/runtest.cmd index e691e7fdb7..47efe4f2dd 100644 --- a/tests/runtest.cmd +++ b/tests/runtest.cmd @@ -52,6 +52,7 @@ set __CoreFXTestsRunAllAvailable= set __SkipGenerateLayout= set __BuildXUnitWrappers= set __PrintLastResultsOnly= +set __RunInUnloadableContext= :Arg_Loop if "%1" == "" goto ArgsDone @@ -110,6 +111,8 @@ REM change it to COMPlus_GCStress when we stop using xunit harness if /i "%1" == "gcstresslevel" (set COMPlus_GCStress=%2&set __TestTimeout=1800000&shift&shift&goto Arg_Loop) if /i "%1" == "collectdumps" (set __CollectDumps=true&shift&goto Arg_Loop) +if /i "%1" == "runincontext" (set __RunInUnloadableContext=1&shift&goto Arg_Loop) + if /i not "%1" == "msbuildargs" goto SkipMsbuildArgs :: All the rest of the args will be collected and passed directly to msbuild. :CollectMsbuildArgs @@ -223,6 +226,10 @@ if defined __AltJitArch ( set __RuntestPyArgs=%__RuntestPyArgs% -altjit_arch %__AltJitArch% ) +if defined __RunInUnloadableContext ( + set __RuntestPyArgs=%__RuntestPyArgs% --run_in_context +) + REM __ProjectDir is poorly named, it is actually <projectDir>/tests set NEXTCMD=python "%__ProjectDir%\runtest.py" %__RuntestPyArgs% echo !NEXTCMD! @@ -749,6 +756,7 @@ echo gcname ^<name^> - Runs the tests with COMPlus_GCName=name echo timeout ^<n^> - Sets the per-test timeout in milliseconds ^(default is 10 minutes = 10 * 60 * 1000 = 600000^). echo Note: some options override this ^(gcstresslevel, longgc, gcsimulator^). echo printlastresultsonly - Print the last test results without running tests. +echo runincontext - Run each tests in an unloadable AssemblyLoadContext echo msbuildargs ^<args...^> - Pass all subsequent args directly to msbuild invocations. echo ^<CORE_ROOT^> - Path to the runtime to test ^(if specified^). echo. |