diff options
author | Sean Gillespie <segilles@microsoft.com> | 2016-06-08 16:04:24 -0700 |
---|---|---|
committer | Sean Gillespie <segilles@microsoft.com> | 2016-06-10 09:57:32 -0700 |
commit | cd82273c46047d2f9523124be646924b3605b373 (patch) | |
tree | 23eb275e9a7c01cdeea38adfe8bcb70dd7fb76d6 /tests/src/CLRTest.GC.targets | |
parent | 3e3eac0e69b7c765121ed8317312005f9bcd85b7 (diff) | |
download | coreclr-cd82273c46047d2f9523124be646924b3605b373.tar.gz coreclr-cd82273c46047d2f9523124be646924b3605b373.tar.bz2 coreclr-cd82273c46047d2f9523124be646924b3605b373.zip |
Remove need for longgc and gcsimulator tests to have their own build
Diffstat (limited to 'tests/src/CLRTest.GC.targets')
-rw-r--r-- | tests/src/CLRTest.GC.targets | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/tests/src/CLRTest.GC.targets b/tests/src/CLRTest.GC.targets new file mode 100644 index 0000000000..645ce0130c --- /dev/null +++ b/tests/src/CLRTest.GC.targets @@ -0,0 +1,90 @@ +<!-- +*********************************************************************************************** +CLRTest.Execute.targets + +WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have + created a backup copy. Incorrect changes to this file will make it + impossible to load or build your projects from the command-line or the IDE. + +This file contains the logic for generating command scripts for special GC tests. + +WARNING: When setting properties based on their current state (for example: + <Foo Condition="'$(Foo)'==''>Bar</Foo>). Be very careful. Another script generation + target might be trying to do the same thing. It's better to avoid this by instead setting a new property. + + Additionally, be careful with itemgroups. Include will propagate outside of the target too! + +*********************************************************************************************** +--> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <GCLongGCTestBashScript Condition="'$(IsLongRunningGCTest)' != 'true'"><![CDATA[ +# Long GC script +if [ ! -z $RunningLongGCTests ] +then + echo "Skipping execution because this is not a long-running GC test" + exit 0 +fi + ]]></GCLongGCTestBashScript> + <GCLongGCTestBashScript Condition="'$(IsLongRunningGCTest)' == 'true'"><![CDATA[ +# Long GC script +if [ -z $RunningLongGCTests ] +then + echo "Skipping execution because long-running GC tests are not enabled" + exit 0 +fi + ]]></GCLongGCTestBashScript> + + + <GCSimulatorTestBashScript Condition="'$(IsGCSimulatorTest)' != 'true'"><![CDATA[ +# GCSimulator script +if [ ! -z $RunningGCSimulatorTests ] +then + echo "Skipping execution because this is not a GCSimulator test" + exit 0 +fi + ]]></GCSimulatorTestBashScript> + <GCSimulatorTestBashScript Condition="'$(IsGCSimulatorTest)' == 'true'"><![CDATA[ +# GCSimulator script +if [ -z $RunningGCSimulatorTests ] +then + echo "Skipping execution because GCSimulator tests are not enabled" + exit 0 +fi + ]]></GCSimulatorTestBashScript> + + <BashCLRTestPreCommands>$(BashCLRTestPreCommands);$(GCLongGCTestBashScript);$(GCSimulatorTestBashScript)</BashCLRTestPreCommands> + <GCLongGCTestBatchScript Condition="'$(IsLongRunningGCTest)' != 'true'"><![CDATA[ +REM Long GC script +IF NOT "%RunningLongGCTests%"=="" ( + echo Skipping execution because this is not a long-running GC test. + Exit /b 0 +) + ]]></GCLongGCTestBatchScript> + <GCLongGCTestBatchScript Condition="'$(IsLongRunningGCTest)' == 'true'"><![CDATA[ +REM Long GC script +IF "%RunningLongGCTests%"=="" ( + echo Skipping execution because long-running GC tests are not enabled. + Exit /b 0 +) + ]]></GCLongGCTestBatchScript> + + + <GCSimulatorTestBatchScript Condition="'$(IsGCSimulatorTest)' != 'true'"><![CDATA[ +REM GCSimulator script +IF NOT "%RunningGCSimulatorTests%"=="" ( + echo Skipping execution because this is not a GCSimulator test. + Exit /b 0 +) + ]]></GCSimulatorTestBatchScript> + <GCSimulatorTestBatchScript Condition="'$(IsGCSimulatorTest)' == 'true'"><![CDATA[ +REM GCSimulator script +IF "%RunningGCSimulatorTests%"=="" ( + echo Skipping execution because GCSimulator tests are not enabled + Exit /b 0 +) + ]]></GCSimulatorTestBatchScript > + + <CLRTestBatchPreCommands>$(CLRTestBatchPreCommands);$(GCLongGCTestBatchScript);$(GCSimulatorTestBatchScript)</CLRTestBatchPreCommands> + </PropertyGroup> +</Project> |