Merge pull request #3915 from hughbe/region-info-params
[platform/upstream/coreclr.git] / tests / tests.targets
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
4   <UsingTask AssemblyFile="$(PackagesDir)xunit.runner.msbuild\2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
5   
6   <ItemGroup>
7     <_SkipTestAssemblies Include="$(SkipTestAssemblies)" />
8   </ItemGroup>
9
10   <PropertyGroup>
11       <TestAssemblyDir Condition="'$(TestAssemblyDir)' == ''">$(BaseOutputPathWithConfig)\tests\</TestAssemblyDir>
12       <__TestRunHtmlLog Condition="'$(__TestRunHtmlLog)' == ''">$(__LogsDir)\TestRun.html</__TestRunHtmlLog>
13       <__TestRunXmlLog Condition="'$(__TestRunXmlLog)' == ''">$(__LogsDir)\TestRun.xml</__TestRunXmlLog>
14   </PropertyGroup>
15   <Target Name="FindTestDirectories">
16     <ItemGroup>
17       <AllTestAssemblies Include="$(BaseOutputPathWithConfig)\*\*.XUnitWrapper.dll" />
18       <TestAssemblies Include="@(AllTestAssemblies)" Exclude="@(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')" />
19     </ItemGroup>
20     
21     <Error  Text=" The wrappers must be compiled and placed at $(TestAssemblyDir)\*\ before they can be run, Do a clean Test Run"
22             Condition="'@(AllTestAssemblies)' == ''" />
23     
24     <Message Text= "AllTestAssemblies= @(AllTestAssemblies)"/>
25     <Message Text= "TestAssemblies= @(TestAssemblies)"/>
26     <Message Text= "_SkipTestAssemblies= @(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')"/>
27   </Target>
28
29   <UsingTask
30     AssemblyFile="$(SourceDir)\packages\xunit.runner.msbuild\2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll"
31     TaskName="Xunit.Runner.MSBuild.xunit" />
32
33    <Target Name="RunTests"
34           DependsOnTargets="FindTestDirectories"
35           Condition="'$(SkipTests)' != 'True'">
36
37
38     <PropertyGroup>
39       <ExcludeTraits Condition="'$(ExcludeTraits)'==''">category=outerloop;category=failing</ExcludeTraits>
40       <ParallelRun Condition="'$(ParallelRun)'==''">true</ParallelRun>
41     </PropertyGroup>
42     <ItemGroup>
43       <IncludeTraitsItems Include="$(IncludeTraits)" />
44       <ExcludeTraitsItems Include="$(ExcludeTraits)" />
45     </ItemGroup>
46
47     <xunit Assemblies="@(TestAssemblies)"
48       ParallelizeAssemblies="$(ParallelRun)"
49       ParallelizeTestCollections="$(ParallelRun)"
50       Html="$(__TestRunHtmlLog)"
51       Xml="$(__TestRunXmlLog)"
52       IncludeTraits="@(IncludeTraitsItems)"
53       ExcludeTraits="@(ExcludeTraitsItems)" /> 
54
55   </Target>
56
57 </Project>