Cleaner way of specifying environment variables for tests (#76458)
authorMark Plesko <markples@microsoft.com>
Thu, 13 Oct 2022 07:28:49 +0000 (00:28 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 07:28:49 +0000 (00:28 -0700)
Existing ways of specifying environment variables:
- [3 times] CLRTestBashEnvironmentVariable is a list of `export var=value` strings
- [2 times] CLRTestBatchEnvironmentVariable is a list of `set var=value` strings
- [~100 times] BashCLRTestPreCommands and CLRTestBatchPreCommands are set to include `export`/`set` strings for the same variables

This changes CLRTestBashEnvironmentVariable and CLRTestBatchEnvironmentVariable to be a list of Identity/Value pairs and adds a new list CLRTestEnvironmentVariable in the same format.  These are automatically expanded to the necessary `export`/`set` strings as appropriate.

A few details of note:
- "Real" changes are in CLRTest.Execute.Bash/Batch.targets.  This moves the environment variables section of the generated cmd/sh files down to the precommands area.  This is only a change for the 5 existing uses, which look ok.
- If a test has a more complicated precommands list, it may not be appropriate to extract the variables.  For example, src\tests\readytorun\tests\mainv1.csproj includes them in setlocal/endlocal because they are for crossgen2 in the precommands, not the test itself.  This change only updates otherwise blank precommands lists.

114 files changed:
src/tests/Common/CLRTest.Execute.Bash.targets
src/tests/Common/CLRTest.Execute.Batch.targets
src/tests/Common/CLRTest.MockHosting.targets
src/tests/Interop/DllImportAttribute/DllImportPath/DllImportPathTest.csproj
src/tests/JIT/Directed/IL/Tailcall/ExplicitTailCallNoSO.ilproj
src/tests/JIT/Directed/LoopAlignment/LoopsToProcess.csproj
src/tests/JIT/Directed/coverage/flowgraph/gcpoll.csproj
src/tests/JIT/Directed/tailcall/more_tailcalls.ilproj
src/tests/JIT/Directed/tailcall/tailcall.ilproj
src/tests/JIT/Methodical/doublearray/dblarray4_cs_d.csproj
src/tests/JIT/Methodical/doublearray/dblarray4_cs_do.csproj
src/tests/JIT/Methodical/doublearray/dblarray4_cs_r.csproj
src/tests/JIT/Methodical/doublearray/dblarray4_cs_ro.csproj
src/tests/JIT/PGO/ProfileCastClassAndIsInst/ProfileCastClassAndIsInst.csproj
src/tests/JIT/PGO/ProfileCastClassAndIsInst/ProfileCastClassAndIsInst_random1.csproj
src/tests/JIT/PGO/ProfileCastClassAndIsInst/ProfileCastClassAndIsInst_random2.csproj
src/tests/JIT/PGO/ProfileCastClassAndIsInst/ProfileCastClassAndIsInst_random3.csproj
src/tests/JIT/Regression/JitBlue/DevDiv_278372/DevDiv_278372.ilproj
src/tests/JIT/Regression/JitBlue/DevDiv_280120/DevDiv_280120.csproj
src/tests/JIT/Regression/JitBlue/DevDiv_362706/DevDiv_362706.ilproj
src/tests/JIT/Regression/JitBlue/DevDiv_367099/DevDiv_367099.ilproj
src/tests/JIT/Regression/JitBlue/DevDiv_370233/DevDiv_370233.ilproj
src/tests/JIT/Regression/JitBlue/DevDiv_377155/DevDiv_377155.ilproj
src/tests/JIT/Regression/JitBlue/DevDiv_736188/DevDiv_736188.csproj
src/tests/JIT/Regression/JitBlue/GitHub_11408/GitHub_11408.csproj
src/tests/JIT/Regression/JitBlue/GitHub_13910/GitHub_13910.csproj
src/tests/JIT/Regression/JitBlue/GitHub_18362/GitHub_18362.csproj
src/tests/JIT/Regression/JitBlue/GitHub_18884/GitHub_18884.csproj
src/tests/JIT/Regression/JitBlue/GitHub_23199/GitHub_23199_Target_32Bit.csproj
src/tests/JIT/Regression/JitBlue/GitHub_23199/GitHub_23199_Target_64Bit.csproj
src/tests/JIT/Regression/JitBlue/GitHub_36614/GitHub_36614.csproj
src/tests/JIT/Regression/JitBlue/GitHub_65690/GitHub_65690.csproj
src/tests/JIT/Regression/JitBlue/GitHub_65988/GitHub_65988.csproj
src/tests/JIT/Regression/JitBlue/Runtime_33972/Runtime_33972.csproj
src/tests/JIT/Regression/JitBlue/Runtime_34937/Runtime_34937.csproj
src/tests/JIT/Regression/JitBlue/Runtime_39424/Runtime_39424.ilproj
src/tests/JIT/Regression/JitBlue/Runtime_52864/Runtime_52864.csproj
src/tests/JIT/Regression/JitBlue/Runtime_53549/Runtime_53549.csproj
src/tests/JIT/Regression/JitBlue/Runtime_53549/Runtime_53549_1.csproj
src/tests/JIT/Regression/JitBlue/Runtime_55107/Runtime_55107.csproj
src/tests/JIT/Regression/JitBlue/Runtime_55131/Runtime_55131.csproj
src/tests/JIT/Regression/JitBlue/Runtime_55253/Runtime_55253.csproj
src/tests/JIT/Regression/JitBlue/Runtime_56953/Runtime_56953.csproj
src/tests/JIT/Regression/JitBlue/Runtime_58827/Runtime_58827.csproj
src/tests/JIT/Regression/JitBlue/Runtime_62108/Runtime_62108.csproj
src/tests/JIT/Regression/JitBlue/Runtime_62524/Runtime_62524.csproj
src/tests/JIT/Regression/JitBlue/Runtime_63942/Runtime_63942.csproj
src/tests/JIT/Regression/JitBlue/Runtime_64208/Runtime_64208.csproj
src/tests/JIT/Regression/JitBlue/Runtime_64700/Runtime_64700.csproj
src/tests/JIT/Regression/JitBlue/Runtime_65694/Runtime_65694_2.csproj
src/tests/JIT/Regression/JitBlue/Runtime_69612/Runtime_69612.csproj
src/tests/JIT/Regression/JitBlue/Runtime_70790/Runtime_70790.csproj
src/tests/JIT/Regression/JitBlue/Runtime_71118/Runtime_71118.csproj
src/tests/JIT/Regression/JitBlue/Runtime_71611/Runtime_71611.csproj
src/tests/JIT/Regression/JitBlue/Runtime_71831/Runtime_71831.csproj
src/tests/JIT/Regression/JitBlue/Runtime_72363/Runtime_72363.csproj
src/tests/JIT/Regression/JitBlue/Runtime_72506/Runtime_72506.csproj
src/tests/JIT/Regression/JitBlue/Runtime_72775/Runtime_72775.csproj
src/tests/JIT/Regression/JitBlue/Runtime_72926/Runtime_72926.csproj
src/tests/JIT/Regression/JitBlue/Runtime_73628/Runtime_73628.csproj
src/tests/JIT/Regression/JitBlue/Runtime_74774/Runtime_74774.csproj
src/tests/JIT/opt/Cloning/Runtime_70802.csproj
src/tests/JIT/opt/Devirtualization/GDV_GenericInterface.csproj
src/tests/JIT/opt/Devirtualization/GitHub_50492.csproj
src/tests/JIT/opt/Devirtualization/structreturningstruct.csproj
src/tests/JIT/opt/GuardedDevirtualization/enumerablecloning.csproj
src/tests/JIT/opt/GuardedDevirtualization/typetestcloning.csproj
src/tests/JIT/opt/OSR/Runtime_69032.csproj
src/tests/JIT/opt/OSR/addressexposedlocal.csproj
src/tests/JIT/opt/OSR/doublestackalloc.csproj
src/tests/JIT/opt/OSR/example.csproj
src/tests/JIT/opt/OSR/genericmethodpatchpoint.csproj
src/tests/JIT/opt/OSR/handlerloop.csproj
src/tests/JIT/opt/OSR/innerloop.csproj
src/tests/JIT/opt/OSR/integersumloop.csproj
src/tests/JIT/opt/OSR/invalidpromotion.csproj
src/tests/JIT/opt/OSR/largefuncletframe.csproj
src/tests/JIT/opt/OSR/livelocaladdress.csproj
src/tests/JIT/opt/OSR/livelocalstackalloc.csproj
src/tests/JIT/opt/OSR/mainloop.csproj
src/tests/JIT/opt/OSR/mainloop2.csproj
src/tests/JIT/opt/OSR/mainlooptry.csproj
src/tests/JIT/opt/OSR/mainlooptry2.csproj
src/tests/JIT/opt/OSR/mainlooptry3.csproj
src/tests/JIT/opt/OSR/mainlooptry4.csproj
src/tests/JIT/opt/OSR/memoryargument.csproj
src/tests/JIT/opt/OSR/nesteddoloops.csproj
src/tests/JIT/opt/OSR/originalstackalloc.csproj
src/tests/JIT/opt/OSR/osrcontainstry.csproj
src/tests/JIT/opt/OSR/pinnedlocal.csproj
src/tests/JIT/opt/OSR/promoted.csproj
src/tests/JIT/opt/OSR/shortenregisteredlocal.csproj
src/tests/JIT/opt/OSR/synchronized.csproj
src/tests/JIT/opt/OSR/tailpgo.csproj
src/tests/JIT/opt/OSR/tailpgo2.csproj
src/tests/JIT/opt/OSR/tailrecurse.csproj
src/tests/JIT/opt/OSR/tailrecursetry.csproj
src/tests/JIT/opt/OSR/tailrecursetry2.csproj
src/tests/JIT/opt/OSR/twoosrmethods.csproj
src/tests/JIT/opt/OSR/twoosrmethods1.csproj
src/tests/JIT/opt/ObjectStackAllocation/ObjectStackAllocationTests.csproj
src/tests/Loader/NativeLibs/FromNativePaths.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitForLoopsOff.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitForLoopsOff_R2r.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitForLoopsOn.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitForLoopsOn_R2r.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitOff.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitOff_R2r.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitOn.csproj
src/tests/baseservices/TieredCompilation/BasicTest_QuickJitOn_R2r.csproj
src/tests/baseservices/TieredCompilation/McjRecorderTimeoutBeforeStop.csproj
src/tests/baseservices/threading/DeadThreads/DeadThreads.csproj
src/tests/baseservices/threading/regressions/269336/objmonhelper.csproj
src/tests/readytorun/DynamicMethodGCStress/DynamicMethodGCStress.csproj

index b892c0d..07ae04e 100644 (file)
@@ -439,7 +439,8 @@ $(CLRTestBashPostCommands)
     </PropertyGroup>
     <PropertyGroup>
       <BashEnvironmentVariables>
-@(CLRTestBashEnvironmentVariable -> '%(Identity)', '%0a')
+@(CLRTestBashEnvironmentVariable -> 'export %(Identity)=%(Value)', '%0a')
+@(CLRTestEnvironmentVariable -> 'export %(Identity)=%(Value)', '%0a')
       </BashEnvironmentVariables>
     </PropertyGroup>
 
@@ -537,15 +538,15 @@ if [ -n "$__TestEnv" ]%3B then
     source $__TestEnv
 fi
 
-$(BashEnvironmentVariables)
 $(BashCLRTestEnvironmentCompatibilityCheck)
 $(BashCLRTestArgPrep)
 $(BashCLRTestExitCodePrep)
 $(IlasmRoundTripBashScript)
 $(SuperPMICollectionBashScript)
-# Allow precommands to override the ExePath
+# Allow test environment variables or precommands to override the ExePath
 ExePath=$(InputAssemblyName)
 export TestExclusionListPath=$CORE_ROOT/TestExclusionList.txt
+$(BashEnvironmentVariables)
 # PreCommands
 $(BashCLRTestPreCommands)
 # Launch
index a64b2ae..578fdeb 100644 (file)
@@ -348,7 +348,8 @@ $(CLRTestBatchPostCommands)
     </PropertyGroup>
     <PropertyGroup>
       <BatchEnvironmentVariables>
-@(CLRTestBatchEnvironmentVariable -> '%(Identity)', '%0d%0a')
+@(CLRTestBatchEnvironmentVariable -> 'set %(Identity)=%(Value)', '%0d%0a')
+@(CLRTestEnvironmentVariable -> 'set %(Identity)=%(Value)', '%0d%0a')
       </BatchEnvironmentVariables>
     </PropertyGroup>
 
@@ -434,19 +435,19 @@ IF NOT "%__TestEnv%"=="" (
     )
 )
 
-REM Environment Variables
-$(BatchEnvironmentVariables)
-
 $(BatchCLRTestEnvironmentCompatibilityCheck)
 
 $(IlasmRoundTripBatchScript)
 
 $(SuperPMICollectionBatchScript)
 
-REM Allow precommands to override the ExePath
+REM Allow test environment variables or precommands to override the ExePath
 set ExePath=$(InputAssemblyName)
 set TestExclusionListPath=%CORE_ROOT%\TestExclusionList.txt
 
+REM Environment Variables
+$(BatchEnvironmentVariables)
+
 REM Precommands
 $(CLRTestBatchPreCommands)
 REM Launch
index e1bca78..ffff5f2 100644 (file)
@@ -10,8 +10,8 @@ This file contains the logic for correctly hooking up a mock hostpolicy to a tes
   <ItemGroup>
     <CMakeProjectReference Include="$(MSBuildThisFileDirectory)hostpolicymock/CMakeLists.txt" />
     <!-- %28 decodes to '('. It's needed to keep MSBuild from trying to parse $(pwd) as an MSBuild property -->
-    <CLRTestBashEnvironmentVariable Include="export MOCK_HOSTPOLICY=$%28pwd)/libhostpolicy" />
+    <CLRTestBashEnvironmentVariable Include="MOCK_HOSTPOLICY" Value="$%28pwd)/libhostpolicy" />
     <!-- %25 decodes to '%'. It's needed to keep %cd itself from being decoded since we want '%cd%' directly in the script. -->
-    <CLRTestBatchEnvironmentVariable Include="set MOCK_HOSTPOLICY=%25cd%\hostpolicy.dll" />
+    <CLRTestBatchEnvironmentVariable Include="MOCK_HOSTPOLICY" Value="%25cd%\hostpolicy.dll" />
   </ItemGroup>
 </Project>
index 4a3bdc6..ff81eb8 100644 (file)
@@ -8,7 +8,7 @@
     <Compile Include="DllImportPathTest.cs" />
   </ItemGroup>
   <ItemGroup>
-    <CLRTestBashEnvironmentVariable Include="export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$%28pwd)/Subdirectory" />
+    <CLRTestBashEnvironmentVariable Include="LD_LIBRARY_PATH" Value="$LD_LIBRARY_PATH:$%28pwd)/Subdirectory" />
   </ItemGroup>
   <PropertyGroup>
     <PathEnvSetupCommands><![CDATA[
index 0dc99ba..8a08cfe 100644 (file)
@@ -9,17 +9,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="ExplicitTailCallNoSO.il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJit" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJit=1
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJit=1
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 827af18..d18fa51 100644 (file)
@@ -6,17 +6,9 @@
   <PropertyGroup>
     <Optimize>True</Optimize>
   </PropertyGroup>
-   <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitAggressiveInlining=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitAggressiveInlining=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="LoopsToProcess.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitAggressiveInlining" Value="1" />
   </ItemGroup>
 </Project>
index dac8005..fbc3d32 100644 (file)
@@ -6,19 +6,10 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-   <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitDoAssertionProp=0
-set COMPlus_JitNoCSE=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitDoAssertionProp=0
-export COMPlus_JitNoCSE=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitDoAssertionProp" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitNoCSE" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index f21adf8..6e6ea0c 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressModeNamesNot" Value="STRESS_UNSAFE_BUFFER_CHECKS" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressModeNamesNot=STRESS_UNSAFE_BUFFER_CHECKS
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressModeNamesNot=STRESS_UNSAFE_BUFFER_CHECKS
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index f21adf8..6e6ea0c 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressModeNamesNot" Value="STRESS_UNSAFE_BUFFER_CHECKS" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressModeNamesNot=STRESS_UNSAFE_BUFFER_CHECKS
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressModeNamesNot=STRESS_UNSAFE_BUFFER_CHECKS
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index eee8ec2..ee406f1 100644 (file)
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="dblarray4.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_DoubleArrayToLargeObjectHeap" Value="0x64" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 7a7cffb..80105ff 100644 (file)
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="dblarray4.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_DoubleArrayToLargeObjectHeap" Value="0x64" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 1c1bcc6..3748e9e 100644 (file)
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="dblarray4.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_DoubleArrayToLargeObjectHeap" Value="0x64" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 75709d3..a9715d9 100644 (file)
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="dblarray4.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_DoubleArrayToLargeObjectHeap" Value="0x64" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_DoubleArrayToLargeObjectHeap=0x64
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index f584e2f..a3f43ad 100644 (file)
@@ -2,22 +2,13 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_TieredCompilation=1
-      set DOTNET_TieredPGO=1
-      set DOTNET_JitProfileCasts=1
-      set DOTNET_JitConsumeProfileForCasts=1
-      ]]></CLRTestBatchPreCommands>
-          <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_TieredCompilation=1
-      export DOTNET_TieredPGO=1
-      export DOTNET_JitProfileCasts=1
-      export DOTNET_JitConsumeProfileForCasts=1
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitProfileCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitConsumeProfileForCasts" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 62cbb33..d03a5fd 100644 (file)
@@ -2,24 +2,14 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_TieredCompilation=1
-      set DOTNET_TieredPGO=1
-      set DOTNET_JitProfileCasts=1
-      set DOTNET_JitConsumeProfileForCasts=1
-      set DOTNET_JitRandomGuardedDevirtualization=1
-      ]]></CLRTestBatchPreCommands>
-          <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_TieredCompilation=1
-      export DOTNET_TieredPGO=1
-      export DOTNET_JitProfileCasts=1
-      export DOTNET_JitConsumeProfileForCasts=1
-      export DOTNET_JitRandomGuardedDevirtualization=1
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="ProfileCastClassAndIsInst.cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitProfileCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitConsumeProfileForCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitRandomGuardedDevirtualization" Value="1" />
   </ItemGroup>
 </Project>
index b4139f2..c2efc87 100644 (file)
@@ -2,24 +2,14 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_TieredCompilation=1
-      set DOTNET_TieredPGO=1
-      set DOTNET_JitProfileCasts=1
-      set DOTNET_JitConsumeProfileForCasts=1
-      set DOTNET_JitRandomGuardedDevirtualization=2
-      ]]></CLRTestBatchPreCommands>
-          <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_TieredCompilation=1
-      export DOTNET_TieredPGO=1
-      export DOTNET_JitProfileCasts=1
-      export DOTNET_JitConsumeProfileForCasts=1
-      export DOTNET_JitRandomGuardedDevirtualization=2
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="ProfileCastClassAndIsInst.cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitProfileCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitConsumeProfileForCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitRandomGuardedDevirtualization" Value="2" />
   </ItemGroup>
 </Project>
index 71e0991..dc0d8ac 100644 (file)
@@ -2,24 +2,14 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_TieredCompilation=1
-      set DOTNET_TieredPGO=1
-      set DOTNET_JitProfileCasts=1
-      set DOTNET_JitConsumeProfileForCasts=1
-      set DOTNET_JitRandomGuardedDevirtualization=3
-      ]]></CLRTestBatchPreCommands>
-          <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_TieredCompilation=1
-      export DOTNET_TieredPGO=1
-      export DOTNET_JitProfileCasts=1
-      export DOTNET_JitConsumeProfileForCasts=1
-      export DOTNET_JitRandomGuardedDevirtualization=3
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="ProfileCastClassAndIsInst.cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitProfileCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitConsumeProfileForCasts" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitRandomGuardedDevirtualization" Value="3" />
   </ItemGroup>
 </Project>
index 5e2e197..f2775df 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="0x200" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressRegs=0x200
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressRegs=0x200
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 0f63d84..ac3ae23 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitDoSsa" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitDoSsa=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitDoSsa=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 5e2e197..f2775df 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="0x200" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressRegs=0x200
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressRegs=0x200
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 5e2e197..f2775df 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="0x200" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressRegs=0x200
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressRegs=0x200
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 5e2e197..f2775df 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="0x200" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressRegs=0x200
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressRegs=0x200
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 5e2e197..f2775df 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="0x200" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressRegs=0x200
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressRegs=0x200
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 592e242..32d9c2d 100644 (file)
@@ -6,17 +6,9 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressRegs=0x204
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressRegs=0x204
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="0x204" />
   </ItemGroup>
 </Project>
index c6fb643..89290a4 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TailcallStress" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TailcallStress=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TailcallStress=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index d042877..4aba40f 100644 (file)
@@ -8,16 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressModeNames" Value="STRESS_NULL_OBJECT_CHECK, STRESS_MAKE_CSE" />
   </ItemGroup>
-  <PropertyGroup>
-    <!-- Set JitStreess variables, Linux requires them to be properly capitalized. -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressModeNames=STRESS_NULL_OBJECT_CHECK, STRESS_MAKE_CSE
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressModeNames=STRESS_NULL_OBJECT_CHECK, STRESS_MAKE_CSE
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index c6fb643..89290a4 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TailcallStress" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TailcallStress=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TailcallStress=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index c6fb643..89290a4 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TailcallStress" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TailcallStress=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TailcallStress=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 08ea337..b174dc8 100644 (file)
@@ -7,16 +7,10 @@
     <CLRTestTargetUnsupported Condition="'$(TargetBits)' != '32'">true</CLRTestTargetUnsupported>
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_GcStressOnDirectCalls=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_GcStressOnDirectCalls=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="GitHub_23199.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_GcStressOnDirectCalls" Value="1" />
   </ItemGroup>
 </Project>
index 0cd0f46..dd684f8 100644 (file)
@@ -6,16 +6,10 @@
     <CLRTestTargetUnsupported Condition="'$(TargetBits)' != '64'">true</CLRTestTargetUnsupported>
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_GcStressOnDirectCalls=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_GcStressOnDirectCalls=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="GitHub_23199.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_GcStressOnDirectCalls" Value="1" />
   </ItemGroup>
 </Project>
index ee0b4de..3dbbd02 100644 (file)
@@ -8,16 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressModeNames" Value="STRESS_RANDOM_INLINE STRESS_DBL_ALN" />
   </ItemGroup>
-  <PropertyGroup>
-    <!-- Set JitStreess variables, Linux requires them to be properly capitalized. -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitStressModeNames=STRESS_RANDOM_INLINE STRESS_DBL_ALN
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitStressModeNames=STRESS_RANDOM_INLINE STRESS_DBL_ALN
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index 5bca6e2..f92a334 100644 (file)
@@ -7,21 +7,11 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-    <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitDoValueNumber=0
-set COMPlus_JitStressRegs=3
-set COMPlus_TieredCompilation=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitDoValueNumber=0
-export COMPlus_JitStressRegs=3
-export COMPlus_TieredCompilation=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitDoValueNumber" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressRegs" Value="3" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="0" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 31a6649..df41d7d 100644 (file)
@@ -7,25 +7,13 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-    <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_EnableSSE2=0
-set COMPlus_OSR_HitLimit=1
-set COMPlus_TC_OnStackReplacement=1
-set COMPlus_TC_OnStackReplacement_InitialCounter=1
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_EnableSSE2=0
-export COMPlus_OSR_HitLimit=1
-export COMPlus_TC_OnStackReplacement=1
-export COMPlus_TC_OnStackReplacement_InitialCounter=1
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_EnableSSE2" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_OSR_HitLimit" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement_InitialCounter" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 385de3f..d40d909 100644 (file)
@@ -6,22 +6,14 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
     <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=0
-set COMPlus_JITMinOpts=0
-set COMPlus_EnableHWIntrinsic=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=0
-export COMPlus_JITMinOpts=0
-export COMPlus_EnableHWIntrinsic=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs">
       <HasDisasmCheck>true</HasDisasmCheck>
     </Compile>
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JITMinOpts" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_EnableHWIntrinsic" Value="1" />
   </ItemGroup>
 </Project>
index a2c7828..862fae4 100644 (file)
@@ -6,21 +6,14 @@
     <DebugType />
     <Optimize>True</Optimize>
     <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=0
-set COMPlus_JITMinOpts=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=0
-export COMPlus_JITMinOpts=0
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs">
       <HasDisasmCheck>true</HasDisasmCheck>
     </Compile>
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JITMinOpts" Value="0" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="$(TestSourceDir)Common/CoreCLRTestLibrary/CoreCLRTestLibrary.csproj" />
index da6159d..8866ec5 100644 (file)
@@ -7,18 +7,10 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-  <!-- Disable CSE to protect fragile `OBJ(ADDR(LCL_FIELD)` constructions. -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitNoCSE=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitNoCSE=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).il" />
+
+    <!-- Disable CSE to protect fragile `OBJ(ADDR(LCL_FIELD)` constructions. -->
+    <CLRTestEnvironmentVariable Include="COMPlus_JitNoCSE" Value="1" />
   </ItemGroup>
 </Project>
index a898415..a952a7d 100644 (file)
@@ -7,19 +7,10 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredPGO=1
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredPGO=1
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
 </Project>
index 9a3423f..a92d369 100644 (file)
@@ -6,19 +6,10 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredPGO=1
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredPGO=1
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
 </Project>
index 9a3423f..a92d369 100644 (file)
@@ -6,19 +6,10 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredPGO=1
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredPGO=1
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
 </Project>
index dad19c4..b7d8f53 100644 (file)
@@ -6,17 +6,9 @@
     <DebugType />
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitDoRedundantBranchOpts=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitDoRedundantBranchOpts=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitDoRedundantBranchOpts" Value="0" />
   </ItemGroup>
 </Project>
index 420168c..685e22b 100644 (file)
@@ -6,15 +6,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitEnableFinallyCloning" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_JitEnableFinallyCloning=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_JitEnableFinallyCloning=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 94bfaab..31201a6 100644 (file)
@@ -8,15 +8,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_TailcallStress" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_TailcallStress=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_TailcallStress=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index 049293e..b12d600 100644 (file)
@@ -6,17 +6,9 @@
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-   <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitOptRepeat=*
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitOptRepeat=*
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitOptRepeat" Value="*" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index d6de357..1418b38 100644 (file)
@@ -3,21 +3,13 @@
     <OutputType>Exe</OutputType>
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
-    <!-- This test requires PGO -->
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_TieredCompilation=1
-      set DOTNET_TC_QuickJitForLoops=1
-      set DOTNET_TieredPGO=1
-      ]]></CLRTestBatchPreCommands>
-          <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_TieredCompilation=1
-      export DOTNET_TC_QuickJitForLoops=1
-      export DOTNET_TieredPGO=1
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <!-- This test requires PGO -->
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
   </ItemGroup>
 </Project>
index 228aaa2..a32d38f 100644 (file)
@@ -2,16 +2,10 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set COMPlus_JitOptRepeat=LeafMethod6
-      ]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export COMPlus_JitOptRepeat=LeafMethod6
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_JitOptRepeat" Value="LeafMethod6" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index fbb8cd2..15a79f5 100644 (file)
@@ -2,18 +2,11 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_JitNoStructPromotion=1
-      set DOTNET_JitNoCSE=1
-      ]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_JitNoStructPromotion=1
-      export DOTNET_JitNoCSE=1
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoStructPromotion" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoCSE" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 9756f08..e135f18 100644 (file)
@@ -2,20 +2,12 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_EnableHWIntrinsic=0
-set COMPlus_JITInlineDepth=0
-set COMPlus_TieredCompilation=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_EnableHWIntrinsic=0
-export COMPlus_JITInlineDepth=0
-export COMPlus_TieredCompilation=0
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_EnableHWIntrinsic" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JITInlineDepth" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="0" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 00fe72a..a18b36c 100644 (file)
@@ -2,16 +2,10 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_JitAggressiveInlining=1
-      ]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_JitAggressiveInlining=1
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitAggressiveInlining" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 681f2d7..d7b44c5 100644 (file)
@@ -2,16 +2,10 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_JitOptRepeat=ProblemWithCopyProp
-      ]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_JitOptRepeat=ProblemWithCopyProp
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitOptRepeat" Value="ProblemWithCopyProp" />
   </ItemGroup>
 </Project>
index 3d58128..40d16f2 100644 (file)
@@ -2,16 +2,10 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-      $(CLRTestBatchPreCommands)
-      set DOTNET_JitNoStructPromotion=1
-      ]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-      $(BashCLRTestPreCommands)
-      export DOTNET_JitNoStructPromotion=1
-      ]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoStructPromotion" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 8015778..03cf250 100644 (file)
@@ -6,21 +6,10 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index c355dd0..4e5c8d7 100644 (file)
@@ -2,17 +2,11 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <!-- Force-enable CSE of constants -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_JitConstCSE=3
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_JitConstCSE=3
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <!-- Force-enable CSE of constants -->
+    <CLRTestEnvironmentVariable Include="DOTNET_JitConstCSE" Value="3" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index c6e34eb..e5e954a 100644 (file)
@@ -2,18 +2,11 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_JitStressModeNamesOnly=1
-set DOTNET_JitStressModeNames=STRESS_NULL_OBJECT_CHECK
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_JitStressModeNamesOnly=1
-export DOTNET_JitStressModeNames=STRESS_NULL_OBJECT_CHECK
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitStressModeNamesOnly" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitStressModeNames" Value="STRESS_NULL_OBJECT_CHECK" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index db201bf..410efbd 100644 (file)
@@ -5,17 +5,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index 240a474..116bb86 100644 (file)
@@ -3,16 +3,10 @@
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_JitNoStructPromotion=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_JitNoStructPromotion=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoStructPromotion" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index db201bf..410efbd 100644 (file)
@@ -5,17 +5,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index e0a6ef4..fc83978 100644 (file)
@@ -5,15 +5,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_EnableAVX2" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_EnableAVX2=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_EnableAVX2=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index db201bf..ca88190 100644 (file)
@@ -5,17 +5,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index e66ad78..116bb86 100644 (file)
@@ -3,16 +3,10 @@
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_JitNoStructPromotion=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_JitNoStructPromotion=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoStructPromotion" Value="1" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index b7bff11..df730cc 100644 (file)
@@ -6,17 +6,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoStructPromotion" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_JitDoAssertionProp" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_JitNoStructPromotion=1
-set DOTNET_JitDoAssertionProp=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_JitNoStructPromotion=1
-export DOTNET_JitDoAssertionProp=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
\ No newline at end of file
index 54269a2..d5eeda6 100644 (file)
@@ -2,16 +2,10 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_JitNoStructPromotion=2
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_JitNoStructPromotion=2
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_JitNoStructPromotion" Value="2" />
   </ItemGroup>
 </Project>
\ No newline at end of file
index 6bcd0b6..0559b61 100644 (file)
@@ -5,15 +5,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 82a7557..d2e876e 100644 (file)
@@ -2,19 +2,12 @@
   <PropertyGroup>
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
-    <!-- This test requires tiered compilation and PGO -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_TieredCompilation=1
-set DOTNET_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_TieredCompilation=1
-export DOTNET_TieredPGO=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="GDV_GenericInterface.cs" />
+
+    <!-- This test requires tiered compilation and PGO -->
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
   </ItemGroup>
 </Project>
index 9788c6c..1c4ed98 100644 (file)
@@ -3,20 +3,11 @@
     <OutputType>Exe</OutputType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <!-- This test requires tiered compilation and PGO -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_TieredCompilation=1
-set DOTNET_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_TieredCompilation=1
-export DOTNET_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="GitHub_50492.cs" />
+
+    <!-- This test requires tiered compilation and PGO -->
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
   </ItemGroup>
 </Project>
index 1089e5d..4cda910 100644 (file)
@@ -6,22 +6,12 @@
     <DebugType>PdbOnly</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
-  <PropertyGroup>
-    <!-- This test requires tiered compilation and PGO -->
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set DOTNET_TieredCompilation=1
-set DOTNET_TieredPGO=1
-set DOTNET_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export DOTNET_TieredCompilation=1
-export DOTNET_TieredPGO=1
-export DOTNET_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="structreturningstruct.cs" />
+
+    <!-- This test requires tiered compilation and PGO -->
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="DOTNET_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
 </Project>
index 6630219..63bdc16 100644 (file)
@@ -6,17 +6,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 6630219..63bdc16 100644 (file)
@@ -6,17 +6,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index a49b778..8fdb4ff 100644 (file)
@@ -6,21 +6,10 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredPGO" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TieredPGO=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TieredPGO=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 881e48e..361a50d 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 881e48e..361a50d 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 8c42cae..2003795 100644 (file)
@@ -6,25 +6,11 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_OSR_HitLimit" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement_InitialCounter" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-set COMPlus_OSR_HitLimit=1
-set COMPlus_TC_OnStackReplacement=1
-set COMPlus_TC_OnStackReplacement_InitialCounter=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-export COMPlus_OSR_HitLimit=1
-export COMPlus_TC_OnStackReplacement=1
-export COMPlus_TC_OnStackReplacement_InitialCounter=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 3831c9a..d9b099b 100644 (file)
@@ -7,25 +7,12 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_OSR_HitLimit" Value="2" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitRandomOnStackReplacement" Value="15" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStress" Value="2" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-set COMPlus_OSR_HitLimit=2
-set COMPlus_JitRandomOnStackReplacement=15
-set COMPlus_JitStress=2
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-export COMPlus_OSR_HitLimit=2
-export COMPlus_JitRandomOnStackReplacement=15
-export COMPlus_JitStress=2
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 53a9cc3..4cf44d3 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 881e48e..361a50d 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 881e48e..361a50d 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 881e48e..361a50d 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 14804c2..99b51b6 100644 (file)
@@ -7,15 +7,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_GCStress" Value="3" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_GCStress=3
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_GCStress=3
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 2f4f0b3..a7052ba 100644 (file)
@@ -6,23 +6,11 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement_InitialCounter" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_OSR_HitLimit" Value="2" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-set COMPlus_TC_OnStackReplacement_InitialCounter=1
-set COMPlus_OSR_HitLimit=2
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-export COMPlus_TC_OnStackReplacement_InitialCounter=1
-export COMPlus_OSR_HitLimit=2
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 881e48e..361a50d 100644 (file)
@@ -7,19 +7,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9620f75..ba3943a 100644 (file)
@@ -6,19 +6,9 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_OnStackReplacement" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=1
-set COMPlus_TC_QuickJitForLoops=1
-set COMPlus_TC_OnStackReplacement=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=1
-export COMPlus_TC_QuickJitForLoops=1
-export COMPlus_TC_OnStackReplacement=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index b6feedd..b7529f1 100644 (file)
@@ -8,28 +8,16 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TieredCompilation" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_ProfApi_RejitOnAttach" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JITMinOpts" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitNoForceFallback" Value="1" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitDebuggable" Value="0" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitStressModeNamesNot" Value="STRESS_RANDOM_INLINE,STRESS_MIN_OPTS" />
+    <CLRTestEnvironmentVariable Include="COMPlus_JitObjectStackAllocation" Value="1" />
   </ItemGroup>
   <PropertyGroup>
     <CrossGen2TestExtraArguments>--codegenopt JitObjectStackAllocation=1</CrossGen2TestExtraArguments>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TieredCompilation=0
-set COMPlus_ProfApi_RejitOnAttach=0
-set COMPlus_JITMinOpts=0
-set COMPlus_JitNoForceFallback=1
-set COMPlus_JitDebuggable=0
-set COMPlus_JitStressModeNamesNot=STRESS_RANDOM_INLINE,STRESS_MIN_OPTS
-set COMPlus_JitObjectStackAllocation=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TieredCompilation=0
-export COMPlus_ProfApi_RejitOnAttach=0
-export COMPlus_JITMinOpts=0
-export COMPlus_JitNoForceFallback=1
-export COMPlus_JitDebuggable=0
-export COMPlus_JitStressModeNamesNot=STRESS_RANDOM_INLINE,STRESS_MIN_OPTS
-export COMPlus_JitObjectStackAllocation=1
-]]></BashCLRTestPreCommands>
   </PropertyGroup>
 </Project>
index 124ec1c..5af2b16 100644 (file)
@@ -14,8 +14,8 @@
     <CMakeProjectReference Include="CMakeLists.txt" />
   </ItemGroup>
   <ItemGroup>
-    <CLRTestBashEnvironmentVariable Include="export CORE_LIBRARIES=$CORE_LIBRARIES:$%28pwd)/Subdirectory" />
-    <CLRTestBatchEnvironmentVariable Include="set CORE_LIBRARIES=$CORE_LIBRARIES%3B%25cd%\\Subdirectory" />
+    <CLRTestBashEnvironmentVariable Include="CORE_LIBRARIES" Value="$CORE_LIBRARIES:$%28pwd)/Subdirectory" />
+    <CLRTestBatchEnvironmentVariable Include="CORE_LIBRARIES" Value="$CORE_LIBRARIES%3B%25cd%\\Subdirectory" />
   </ItemGroup>
   <PropertyGroup>
     <PathEnvSetupCommands><![CDATA[
index ca1f29d..2c00333 100644 (file)
@@ -6,15 +6,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJitForLoops=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJitForLoops=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9654415..8bcd1e3 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJitForLoops=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJitForLoops=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 7d371dc..2d2d666 100644 (file)
@@ -6,15 +6,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index fa35377..66faa74 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJitForLoops" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJitForLoops=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJitForLoops=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 9435e83..ded07b1 100644 (file)
@@ -6,15 +6,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJit" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJit=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJit=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 667f817..616ef56 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJit" Value="0" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJit=0
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJit=0
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 6b687ae..3b12b22 100644 (file)
@@ -6,15 +6,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJit" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJit=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJit=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 17c26f3..376102f 100644 (file)
@@ -9,15 +9,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="BasicTest.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_TC_QuickJit" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_TC_QuickJit=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_TC_QuickJit=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 3ae249d..62ecfb4 100644 (file)
@@ -6,15 +6,7 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="McjRecorderTimeoutBeforeStop.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_MultiCoreJitProfileWriteDelay" Value="1" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_MultiCoreJitProfileWriteDelay=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_MultiCoreJitProfileWriteDelay=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index af97362..abb33cd 100644 (file)
@@ -4,17 +4,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_Thread_DeadThreadCountThresholdForGCTrigger" Value="8" />
+    <CLRTestEnvironmentVariable Include="COMPlus_Thread_DeadThreadGCTriggerPeriodMilliseconds" Value="3e8" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_Thread_DeadThreadCountThresholdForGCTrigger=8
-set COMPlus_Thread_DeadThreadGCTriggerPeriodMilliseconds=3e8
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_Thread_DeadThreadCountThresholdForGCTrigger=8
-export COMPlus_Thread_DeadThreadGCTriggerPeriodMilliseconds=3e8
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>
index 4fcdae1..c64e57f 100644 (file)
@@ -4,17 +4,9 @@
     <CLRTestPriority>1</CLRTestPriority>
     <GCStressIncompatible>true</GCStressIncompatible>
   </PropertyGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_FastGCStress=1
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_FastGCStress=1
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
   <ItemGroup>
     <Compile Include="objmonhelper.cs" />
+
+    <CLRTestEnvironmentVariable Include="COMPlus_FastGCStress" Value="1" />
   </ItemGroup>
 </Project>
index 0006573..0753419 100644 (file)
   </PropertyGroup>
   <ItemGroup>
     <Compile Include="$(MSBuildProjectName).cs" />
+
+    <CLRTestEnvironmentVariable Include="DOTNET_GCStress" Value="3" />
   </ItemGroup>
-  <PropertyGroup>
-    <CLRTestBatchPreCommands><![CDATA[
-$(CLRTestBatchPreCommands)
-set COMPlus_GCStress=3
-]]></CLRTestBatchPreCommands>
-    <BashCLRTestPreCommands><![CDATA[
-$(BashCLRTestPreCommands)
-export COMPlus_GCStress=3
-]]></BashCLRTestPreCommands>
-  </PropertyGroup>
 </Project>