1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <Target Name="DownloadTest">
5 SourceUrl="$(FEED_BASE_URL)/$(TestFile)"
6 DestinationFolder="$(MSBuildProjectDirectory)/corefx/tests"
8 <Output TaskParameter="DownloadedFile" ItemName="Content" />
12 <Target Name="DownloadTestsList">
14 SourceUrl="$(FEED_BASE_URL)/$(TEST_ASSETS_PATH)"
15 DestinationFolder="$(MSBuildProjectDirectory)/corefx/tests"
17 <Output TaskParameter="DownloadedFile" ItemName="Content" />
20 XmlInputPath="$(MSBuildProjectDirectory)/corefx/tests/corefx-test-assets.xml"
21 Query="/Build/Blob/@Id">
22 <Output TaskParameter="Result" ItemName="AllTests" />
26 <Target Name="DownloadAllTests" DependsOnTargets="DownloadTestsList">
28 <TempProjects Include="$(MSBuildProjectFile)">
29 <Properties>TestFile=%(AllTests.Identity)</Properties>
32 <MSBuild Projects="@(TempProjects)" BuildInParallel="true" StopOnFirstFailure="true" Targets="DownloadTest" />
33 <Message Text="Extracting CoreFX tests..." Importance="high" />
35 SourceFiles="$(MSBuildProjectDirectory)/corefx/tests/$([System.IO.Path]::GetFileName('%(AllTests.Identity)'))"
36 DestinationFolder="$(MSBuildProjectDirectory)/corefx/tests/extracted/$([System.IO.Path]::GetFileNameWithoutExtension('%(AllTests.Identity)'))" />