diff options
author | Russ Keldorph <Russ.Keldorph@microsoft.com> | 2016-03-10 16:34:47 -0800 |
---|---|---|
committer | Russ Keldorph <Russ.Keldorph@microsoft.com> | 2016-03-12 20:31:18 -0800 |
commit | aa0338cbc7bbb8fe342ef584bb0eca4d18a90572 (patch) | |
tree | c95f020425a7c8a2a53869b66d527c7ef2e30795 /tests/src/CLRTest.Execute.Batch.targets | |
parent | d9b108e0e0a6ff0f6653874d743cd13c926bf473 (diff) | |
download | coreclr-aa0338cbc7bbb8fe342ef584bb0eca4d18a90572.tar.gz coreclr-aa0338cbc7bbb8fe342ef584bb0eca4d18a90572.tar.bz2 coreclr-aa0338cbc7bbb8fe342ef584bb0eca4d18a90572.zip |
Add test mode exclusions
Add the ability to exclude individual tests that are incompatible with
certain test modes. If a test is incompatible with or too slow under
GCStress, add
<GCStressIncompatible>true</GCStressIncompatible>
as a property to the test's project file. If a test requires optimization
or is sensitive to precise optimization patterns, use
<JitOptimizationSensitive>true</JitOptimizationSensitive>
Diffstat (limited to 'tests/src/CLRTest.Execute.Batch.targets')
-rw-r--r-- | tests/src/CLRTest.Execute.Batch.targets | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/src/CLRTest.Execute.Batch.targets b/tests/src/CLRTest.Execute.Batch.targets index 67805cc120..8a83d18d94 100644 --- a/tests/src/CLRTest.Execute.Batch.targets +++ b/tests/src/CLRTest.Execute.Batch.targets @@ -125,6 +125,20 @@ IF NOT "!ERRORLEVEL!"=="0" ( <Message Text="Project depends on $(_CLRTestToRunFileFullPath)." Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'" /> <PropertyGroup> + <BatchCLRTestEnvironmentCompatibilityCheck Condition="'$(GCStressIncompatible)' == 'true'"><![CDATA[ +$(BatchCLRTestEnvironmentCompatibilityCheck) +IF NOT "%COMPlus_GCStress%"=="" ( + ECHO SKIPPING EXECUTION BECAUSE COMPlus_GCStress IS SET + Exit /b 0 +) + ]]></BatchCLRTestEnvironmentCompatibilityCheck> + <BatchCLRTestEnvironmentCompatibilityCheck Condition="'$(JitOptimizationSensitive)' == 'true'"><![CDATA[ +$(BatchCLRTestEnvironmentCompatibilityCheck) +IF "%COMPlus_JitStress%"=="" IF "%COMPlus_JitStressRegs%"=="" IF "%COMPlus_JITMinOpts%"=="" goto :Compatible1 + ECHO SKIPPING EXECUTION BECAUSE ONE OR MORE OF (COMPlus_JitStress, COMPlus_JitStressRegs, COMPlus_JITMinOpts) IS SET + Exit /b 0 +:Compatible1 + ]]></BatchCLRTestEnvironmentCompatibilityCheck> <BatchCLRTestExitCodePrep Condition="$(_CLRTestNeedsToRun)"> <![CDATA[ @@ -300,6 +314,8 @@ $(BatchCLRTestExitCodePrep) REM The __TestEnv variable may be used to specify something to run before the test. IF NOT "%__TestEnv%"=="" call %__TestEnv% +$(BatchCLRTestEnvironmentCompatibilityCheck) + REM Environment Variables $(BatchEnvironmentVariables) |