summaryrefslogtreecommitdiff
path: root/tests/src/CLRTest.Execute.Bash.targets
diff options
context:
space:
mode:
authorRuss Keldorph <Russ.Keldorph@microsoft.com>2016-03-10 16:34:47 -0800
committerRuss Keldorph <Russ.Keldorph@microsoft.com>2016-03-12 20:31:18 -0800
commitaa0338cbc7bbb8fe342ef584bb0eca4d18a90572 (patch)
treec95f020425a7c8a2a53869b66d527c7ef2e30795 /tests/src/CLRTest.Execute.Bash.targets
parentd9b108e0e0a6ff0f6653874d743cd13c926bf473 (diff)
downloadcoreclr-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.Bash.targets')
-rw-r--r--tests/src/CLRTest.Execute.Bash.targets17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/src/CLRTest.Execute.Bash.targets b/tests/src/CLRTest.Execute.Bash.targets
index 35197192ab..3198ac3e96 100644
--- a/tests/src/CLRTest.Execute.Bash.targets
+++ b/tests/src/CLRTest.Execute.Bash.targets
@@ -135,6 +135,22 @@ fi
<Message Text="Project depends on $(_CLRTestToRunFileFullPath)." Condition="'$(_CLRTestNeedsProjectToRun)' == 'True'" />
<PropertyGroup>
+ <BashCLRTestEnvironmentCompatibilityCheck Condition="'$(GCStressIncompatible)' == 'true'"><![CDATA[
+$(BashCLRTestEnvironmentCompatibilityCheck)
+if [ ! -z "$COMPlus_GCStress" ]
+then
+ echo SKIPPING EXECUTION BECAUSE COMPlus_GCStress IS SET
+ exit 0
+fi
+ ]]></BashCLRTestEnvironmentCompatibilityCheck>
+ <BashCLRTestEnvironmentCompatibilityCheck Condition="'$(JitOptimizationSensitive)' == 'true'"><![CDATA[
+$(BashCLRTestEnvironmentCompatibilityCheck)
+if [ \( ! -z "$COMPlus_JitStress" \) -o \( ! -z "$COMPlus_JitStressRegs" \) -o \( ! -z "$COMPlus_JITMinOpts" \) ]
+then
+ echo SKIPPING EXECUTION BECAUSE ONE OR MORE OF (COMPlus_JitStress, COMPlus_JitStressRegs, COMPlus_JITMinOpts) IS SET
+ exit 0
+fi
+ ]]></BashCLRTestEnvironmentCompatibilityCheck>
<BashCLRTestExitCodePrep Condition="$(_CLRTestNeedsToRun)">
<![CDATA[CLRTestExpectedExitCode=$(CLRTestExitCode)
echo BEGIN EXECUTION]]>
@@ -280,6 +296,7 @@ cd "$%28dirname "$0")"
# The __TestEnv variable may be used to specify something to run before the test.
$__TestEnv
+$(BashCLRTestEnvironmentCompatibilityCheck)
$(BashCLRTestArgPrep)
$(BashCLRTestExitCodePrep)
# CrossGen Script (when /p:CrossGen=true)