@@ -26,8 +26,6 @@ set __msbuildExtraArgs=
2626set __LongGCTests =
2727set __GCSimulatorTests =
2828set __IlasmRoundTrip =
29- set __DoCrossgen =
30- set __CrossgenAltJit =
3129set __PrintLastResultsOnly =
3230set RunInUnloadableContext =
3331
@@ -50,13 +48,8 @@ if /i "%1" == "debug" (set __BuildType=Debug&s
5048if /i " %1 " == " release" (set __BuildType=Release& shift& goto Arg_Loop)
5149if /i " %1 " == " checked" (set __BuildType=Checked& shift& goto Arg_Loop)
5250
53- if /i " %1 " == " vs2017" (set __VSVersion=%1 & shift& goto Arg_Loop)
54- if /i " %1 " == " vs2019" (set __VSVersion=%1 & shift& goto Arg_Loop)
55-
5651if /i " %1 " == " TestEnv" (set __TestEnv=%2 & shift& shift& goto Arg_Loop)
5752if /i " %1 " == " sequential" (set __Sequential=1& shift& goto Arg_Loop)
58- if /i " %1 " == " crossgen" (set __DoCrossgen=1& shift& goto Arg_Loop)
59- if /i " %1 " == " crossgenaltjit" (set __DoCrossgen=1& set __CrossgenAltJit=%2 & shift& shift& goto Arg_Loop)
6053if /i " %1 " == " longgc" (set __LongGCTests=1& shift& goto Arg_Loop)
6154if /i " %1 " == " gcsimulator" (set __GCSimulatorTests=1& shift& goto Arg_Loop)
6255if /i " %1 " == " jitstress" (set COMPlus_JitStress=%2 & shift& shift& goto Arg_Loop)
@@ -66,10 +59,8 @@ if /i "%1" == "jitforcerelocs" (set COMPlus_ForceRelocs
6659if /i " %1 " == " ilasmroundtrip" (set __IlasmRoundTrip=1& shift& goto Arg_Loop)
6760
6861if /i " %1 " == " printlastresultsonly" (set __PrintLastResultsOnly=1& shift& goto Arg_Loop)
69- if /i " %1 " == " runcrossgentests" (set RunCrossGen=true& shift& goto Arg_Loop)
7062if /i " %1 " == " runcrossgen2tests" (set RunCrossGen2=true& shift& goto Arg_Loop)
7163REM This test feature is currently intentionally undocumented
72- if /i " %1 " == " runlargeversionbubblecrossgentests" (set RunCrossGen=true& set CrossgenLargeVersionBubble=true& shift& goto Arg_Loop)
7364if /i " %1 " == " runlargeversionbubblecrossgen2tests" (set RunCrossGen2=true& set CrossgenLargeVersionBubble=true& shift& goto Arg_Loop)
7465if /i " %1 " == " link" (set DoLink=true& set ILLINK=%2 & shift& shift& goto Arg_Loop)
7566if /i " %1 " == " gcname" (set COMPlus_GCName=%2 & shift& shift& goto Arg_Loop)
@@ -138,18 +129,10 @@ if defined __Sequential (
138129 set __RuntestPyArgs = %__RuntestPyArgs% --sequential
139130)
140131
141- if defined RunCrossGen (
142- set __RuntestPyArgs = %__RuntestPyArgs% --run_crossgen_tests
143- )
144-
145132if defined RunCrossGen2 (
146133 set __RuntestPyArgs = %__RuntestPyArgs% --run_crossgen2_tests
147134)
148135
149- if defined __DoCrossgen (
150- set __RuntestPyArgs = %__RuntestPyArgs% --precompile_core_root
151- )
152-
153136if defined CrossgenLargeVersionBubble (
154137 set __RuntestPyArgs = %__RuntestPyArgs% --large_version_bubble
155138)
@@ -242,14 +225,6 @@ call :SetTestEnvironment
242225call :ResolveDependencies
243226if errorlevel 1 exit /b 1
244227
245- if defined __DoCrossgen (
246- echo %__MsgPrefix% Running crossgen on framework assemblies
247- call :PrecompileFX
248- )
249-
250- REM Delete the unecessary mscorlib.ni file.
251- if exist %CORE_ROOT% \mscorlib.ni.dll del %CORE_ROOT% \mscorlib.ni.dll
252-
253228:: Check if the test Binaries are built
254229if not exist %XunitTestBinBase% (
255230 echo %__MsgPrefix% Error: Ensure the Test Binaries are built and are present at %XunitTestBinBase% .
@@ -286,52 +261,6 @@ echo %__TestRunHtmlLog%
286261echo %__TestRunXmlLog%
287262exit /b 0
288263
289- REM =========================================================================================
290- REM ===
291- REM === Compile the managed assemblies in Core_ROOT before running the tests
292- REM ===
293- REM =========================================================================================
294-
295- :PrecompileAssembly
296-
297- REM Skip mscorlib since it is already precompiled.
298- if /I " %3 " == " mscorlib.dll" exit /b 0
299- if /I " %3 " == " mscorlib.ni.dll" exit /b 0
300-
301- " %1 \crossgen.exe" /nologo /Platform_Assemblies_Paths " %CORE_ROOT% " " %2 " > nul 2 > nul
302- set /a __exitCode = %errorlevel%
303- if " %__exitCode% " == " -2146230517" (
304- echo %2 is not a managed assembly.
305- exit /b 0
306- )
307-
308- if %__exitCode% neq 0 (
309- echo Unable to precompile %2
310- exit /b 0
311- )
312-
313- echo %__MsgPrefix% Successfully precompiled %2
314- exit /b 0
315-
316- :PrecompileFX
317- setlocal
318-
319- if defined __CrossgenAltJit (
320- REM Set altjit flags for the crossgen run. Note that this entire crossgen section is within a setlocal/endlocal scope,
321- REM so we don't need to save or unset these afterwards.
322- echo %__MsgPrefix% Setting altjit environment variables for %__CrossgenAltJit% .
323- set COMPlus_AltJit = *
324- set COMPlus_AltJitNgen = *
325- set COMPlus_AltJitName = %__CrossgenAltJit%
326- set COMPlus_AltJitAssertOnNYI = 1
327- set COMPlus_NoGuiOnAssert = 1
328- set COMPlus_ContinueOnAssert = 0
329- )
330-
331- for %%F in (%CORE_ROOT% \*.dll) do call :PrecompileAssembly " %CORE_ROOT% " " %%F " %%~nF%%~xF
332- endlocal
333- exit /b 0
334-
335264REM =========================================================================================
336265REM ===
337266REM === Subroutine to invoke msbuild.
@@ -447,12 +376,8 @@ echo.
447376echo ./? -? /h -h /help -help - View this message.
448377echo ^ < build_architecture^ > - Specifies build architecture: x64, x86, arm, or arm64 ^ (default: x64^ ).
449378echo ^ < build_type^ > - Specifies build type: Debug, Release, or Checked ^ (default: Debug^ ).
450- echo VSVersion ^ < vs_version^ > - VS2017 or VS2019 ^ (default: VS2019^ ).
451379echo TestEnv ^ < test_env_script^ > - Run a custom script before every test to set custom test environment settings.
452380echo sequential - Run tests sequentially (no parallelism).
453- echo crossgen - Precompile ^ (crossgen^ ) the managed assemblies in CORE_ROOT before running the tests.
454- echo crossgenaltjit ^ < altjit^ > - Precompile ^ (crossgen^ ) the managed assemblies in CORE_ROOT before running the tests, using the given altjit.
455- echo RunCrossgenTests - Runs ReadytoRun tests
456381echo RunCrossgen2Tests - Runs ReadytoRun tests compiled with Crossgen2
457382echo jitstress ^ < n^ > - Runs the tests with COMPlus_JitStress=n
458383echo jitstressregs ^ < n^ > - Runs the tests with COMPlus_JitStressRegs=n
0 commit comments