Fix SuperPMI collection script to allow passing arch/flavor args
[platform/upstream/coreclr.git] / tests / protononjit_testenv.cmd
1 @REM -------------------------------------------------------------------------
2 @REM 
3 @REM  This script provides test environment settings for prototype/cross-targeting JITs.
4 @REM
5 @REM -------------------------------------------------------------------------
6
7 set COMPLUS_AltJit=*
8 set COMPLUS_AltJitNgen=*
9 set COMPLUS_AltJitName=protononjit.dll
10 set COMPLUS_NoGuiOnAssert=1
11 set COMPLUS_AltJitAssertOnNYI=1
12
13 @REM -------------------------------------------------------------------------
14 @REM A JitFuncInfoLogFile is a per-function record of which functions were
15 @REM compiled, and what asserts and NYI were hit.
16 @REM
17 @REM If you wish to collect FuncInfo, choose one of the following collection
18 @REM methods to use, by uncommenting the appropriate option.
19
20 @REM Option 1: collect a single FuncInfoLogFile for all tests.
21 @REM TO DO: set a single, fully-qualified pathname here.
22 @REM ==== Uncomment below
23 @REM set COMPLUS_JitFuncInfoLogFile=%TEMP%\JitFuncInfoLogFile.txt
24 @REM ==== Uncomment above
25
26 @REM Option #2: collect one FuncInfoLogFile per test, and put it in
27 @REM the same directory as the test. Note that each tests lives in
28 @REM its own directory, and the current directory is set to the unique
29 @REM test directory before this script is invoked.
30 @REM ==== Uncomment below
31 @REM set __TestDir=%CD%
32 @REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1%
33 @REM set COMPLUS_JitFuncInfoLogFile=%__TestDir%\FuncInfo.txt
34 @REM ==== Uncomment above
35
36 @REM Option #3: collect one FuncInfoLogFile per test, and put all of
37 @REM them in a separate directory tree rooted at %__FuncInfoRootDir%.
38 @REM If that is set globally already, then use it. Otherwise, use a
39 @REM default set here. The directory tree will mirror the test binary tree.
40 @REM Note that the current directory is set to the unique test directory
41 @REM before this script is invoked.
42 @REM ==== Uncomment below
43 @REM if not defined __FuncInfoRootDir set __FuncInfoRootDir=c:\FuncInfos
44 @REM set __TestDir=%CD%
45 @REM if %__TestDir:~-1%==\ set __TestDir=%__TestDir:~0,-1%
46 @REM if %__TestDir:~1,1%==: set __TestDir=%__TestDir:~3%
47 @REM set __FuncInfoDir=%__FuncInfoRootDir%\%__TestDir%
48 @REM if not exist %__FuncInfoDir% mkdir %__FuncInfoDir%
49 @REM set COMPLUS_JitFuncInfoLogFile=%__FuncInfoDir%\FuncInfo.txt
50 @REM ==== Uncomment above
51
52 @REM -------------------------------------------------------------------------