diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2016-11-22 16:42:57 -0800 |
---|---|---|
committer | Bruce Forstall <brucefo@microsoft.com> | 2016-11-23 14:31:00 -0800 |
commit | aad84026d7c5dc10b877bec263f4456a31584772 (patch) | |
tree | 65d14bacd30f614153859a20bcaf3c34f1fcd8bf /tests | |
parent | 965e50d7ee6f860fd71d40dd74af74b87dcc930b (diff) | |
download | coreclr-aad84026d7c5dc10b877bec263f4456a31584772.tar.gz coreclr-aad84026d7c5dc10b877bec263f4456a31584772.tar.bz2 coreclr-aad84026d7c5dc10b877bec263f4456a31584772.zip |
Make RyuJIT/x86 the default x86 JIT
JIT32 becomes compatjit.dll and RyuJIT LEGACY_BACKEND becomes legacyjit.dll
(and is an altjit).
If JIT32 is not being built, then RyuJIT LEGACY_BACKEND becomes compatjit.dll
and is a normal jit (not an altjit).
Both clrjit.dll and compatjit.dll are added to the JIT NuGet package.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runtest.cmd | 4 | ||||
-rw-r--r-- | tests/x86/compatjit_x86_testenv.cmd | 8 | ||||
-rw-r--r-- | tests/x86/legacyjit_x86_testenv.cmd | 52 | ||||
-rw-r--r-- | tests/x86/ryujit_x86_testenv.cmd | 54 |
4 files changed, 66 insertions, 52 deletions
diff --git a/tests/runtest.cmd b/tests/runtest.cmd index 86ed0ddc1f..23b4bb5f42 100644 --- a/tests/runtest.cmd +++ b/tests/runtest.cmd @@ -170,8 +170,8 @@ xcopy /s "%__BinDir%" "%CORE_ROOT%" :SkipCoreRootSetup -if defined __Exclude (if not exist %__Exclude% echo %__MsgPrefix%Error: Exclusion .targets file not found && exit /b 1) -if defined __TestEnv (if not exist %__TestEnv% echo %__MsgPrefix%Error: Test Environment script not found && exit /b 1) +if defined __Exclude (if not exist %__Exclude% echo %__MsgPrefix%Error: Exclusion file %__Exclude% not found && exit /b 1) +if defined __TestEnv (if not exist %__TestEnv% echo %__MsgPrefix%Error: Test Environment script %__TestEnv% not found && exit /b 1) REM These log files are created automatically by the test run process. Q: what do they depend on being set? set __TestRunHtmlLog=%__LogsDir%\TestRun_%__BuildOS%__%__BuildArch%__%__BuildType%.html diff --git a/tests/x86/compatjit_x86_testenv.cmd b/tests/x86/compatjit_x86_testenv.cmd new file mode 100644 index 0000000000..d245370548 --- /dev/null +++ b/tests/x86/compatjit_x86_testenv.cmd @@ -0,0 +1,8 @@ +@REM ------------------------------------------------------------------------- +@REM +@REM This script provides x86 compatjit test environment settings +@REM +@REM ------------------------------------------------------------------------- + +@REM Use compatjit.dll, not clrjit.dll. +set COMPlus_UseWindowsX86CoreLegacyJit=1 diff --git a/tests/x86/legacyjit_x86_testenv.cmd b/tests/x86/legacyjit_x86_testenv.cmd new file mode 100644 index 0000000000..41da4cf63d --- /dev/null +++ b/tests/x86/legacyjit_x86_testenv.cmd @@ -0,0 +1,52 @@ +@REM ------------------------------------------------------------------------- +@REM +@REM This script provides x86 LEGACY_BACKEND JIT test environment settings +@REM +@REM ------------------------------------------------------------------------- + +set COMPLUS_AltJit=* +set COMPLUS_AltJitNgen=* +set COMPLUS_AltJitName=legacyjit.dll +set COMPLUS_NoGuiOnAssert=1 +set COMPLUS_AltJitAssertOnNYI=1 + +@REM ------------------------------------------------------------------------- +@REM A JitFuncInfoLogFile is a per-function record of which functions were +@REM compiled, and what asserts and NYI were hit. +@REM +@REM If you wish to collect FuncInfo, choose one of the following collection +@REM methods to use, by uncommenting the appropriate option. + +@REM Option 1: collect a single FuncInfoLogFile for all tests. +@REM TO DO: set a single, fully-qualified pathname here. +@REM ==== Uncomment below +@REM set COMPLUS_JitFuncInfoLogFile=%TEMP%\JitFuncInfoLogFile.txt +@REM ==== Uncomment above + +@REM Option #2: collect one FuncInfoLogFile per test, and put it in +@REM the same directory as the test. Note that each tests lives in +@REM its own directory, and the current directory is set to the unique +@REM test directory before this script is invoked. +@REM ==== Uncomment below +@REM set __TestDir=%CD% +@REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1% +@REM set COMPLUS_JitFuncInfoLogFile=%__TestDir%\FuncInfo.txt +@REM ==== Uncomment above + +@REM Option #3: collect one FuncInfoLogFile per test, and put all of +@REM them in a separate directory tree rooted at %__FuncInfoRootDir%. +@REM If that is set globally already, then use it. Otherwise, use a +@REM default set here. The directory tree will mirror the test binary tree. +@REM Note that the current directory is set to the unique test directory +@REM before this script is invoked. +@REM ==== Uncomment below +@REM if not defined __FuncInfoRootDir set __FuncInfoRootDir=c:\FuncInfos +@REM set __TestDir=%CD% +@REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1% +@REM if %__TestDir:~1,1%==: set __TestDir=%__TestDir:~3% +@REM set __FuncInfoDir=%__FuncInfoRootDir%\%__TestDir% +@REM if not exist %__FuncInfoDir% mkdir %__FuncInfoDir% +@REM set COMPLUS_JitFuncInfoLogFile=%__FuncInfoDir%\FuncInfo.txt +@REM ==== Uncomment above + +@REM ------------------------------------------------------------------------- diff --git a/tests/x86/ryujit_x86_testenv.cmd b/tests/x86/ryujit_x86_testenv.cmd index c9176ce2c8..97e7ab8b56 100644 --- a/tests/x86/ryujit_x86_testenv.cmd +++ b/tests/x86/ryujit_x86_testenv.cmd @@ -1,51 +1,5 @@ -@REM ------------------------------------------------------------------------- -@REM -@REM This script provides x86 Ryujit test environment settings +@REM This is no longer needed, except the CI system, during the conversion of RyuJIT/x86 +@REM to the default, still looks for it for the old "ryujit" tasks. Leave it here, and the +@REM "ryujit" tasks will just run the default JIT (now RyuJIT). @REM -@REM ------------------------------------------------------------------------- - -set COMPLUS_AltJit=* -set COMPLUS_AltJitName=protojit.dll -set COMPLUS_NoGuiOnAssert=1 -set COMPLUS_AltJitAssertOnNYI=1 - -@REM ------------------------------------------------------------------------- -@REM A JitFuncInfoLogFile is a per-function record of which functions were -@REM compiled, and what asserts and NYI were hit. -@REM -@REM If you wish to collect FuncInfo, choose one of the following collection -@REM methods to use, by uncommenting the appropriate option. - -@REM Option 1: collect a single FuncInfoLogFile for all tests. -@REM TO DO: set a single, fully-qualified pathname here. -@REM ==== Uncomment below -@REM set COMPLUS_JitFuncInfoLogFile=%TEMP%\JitFuncInfoLogFile.txt -@REM ==== Uncomment above - -@REM Option #2: collect one FuncInfoLogFile per test, and put it in -@REM the same directory as the test. Note that each tests lives in -@REM its own directory, and the current directory is set to the unique -@REM test directory before this script is invoked. -@REM ==== Uncomment below -@REM set __TestDir=%CD% -@REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1% -@REM set COMPLUS_JitFuncInfoLogFile=%__TestDir%\FuncInfo.txt -@REM ==== Uncomment above - -@REM Option #3: collect one FuncInfoLogFile per test, and put all of -@REM them in a separate directory tree rooted at %__FuncInfoRootDir%. -@REM If that is set globally already, then use it. Otherwise, use a -@REM default set here. The directory tree will mirror the test binary tree. -@REM Note that the current directory is set to the unique test directory -@REM before this script is invoked. -@REM ==== Uncomment below -@REM if not defined __FuncInfoRootDir set __FuncInfoRootDir=c:\FuncInfos -@REM set __TestDir=%CD% -@REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1% -@REM if %__TestDir:~1,1%==: set __TestDir=%__TestDir:~3% -@REM set __FuncInfoDir=%__FuncInfoRootDir%\%__TestDir% -@REM if not exist %__FuncInfoDir% mkdir %__FuncInfoDir% -@REM set COMPLUS_JitFuncInfoLogFile=%__FuncInfoDir%\FuncInfo.txt -@REM ==== Uncomment above - -@REM ------------------------------------------------------------------------- +@REM After the .NET CI is updated, this can be deleted. |