Update CodeOwners (#16662)
[mono-project.git] / netcore / corefx-tests-restore.proj
blob1cd7b8f207a47d3112aa1f4ee38af80ae2198034
1 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3     <Target Name="DownloadTest">
4         <DownloadFile
5             SourceUrl="$(FEED_BASE_URL)/$(TestFile)"
6             DestinationFolder="$(MSBuildProjectDirectory)/corefx/tests"
7             Retries="3">
8             <Output TaskParameter="DownloadedFile" ItemName="Content" />
9         </DownloadFile>
10     </Target>
12     <Target Name="DownloadTestsList">
13         <DownloadFile
14             SourceUrl="$(FEED_BASE_URL)/$(TEST_ASSETS_PATH)"
15             DestinationFolder="$(MSBuildProjectDirectory)/corefx/tests"
16             Retries="3">
17             <Output TaskParameter="DownloadedFile" ItemName="Content" />
18         </DownloadFile>
19         <XmlPeek
20             XmlInputPath="$(MSBuildProjectDirectory)/corefx/tests/corefx-test-assets.xml" 
21             Query="/Build/Blob/@Id">
22             <Output TaskParameter="Result" ItemName="AllTests" />
23         </XmlPeek>
24     </Target>
26     <Target Name="DownloadAllTests" DependsOnTargets="DownloadTestsList">
27         <ItemGroup>
28             <TempProjects Include="$(MSBuildProjectFile)">
29                 <Properties>TestFile=%(AllTests.Identity)</Properties>
30             </TempProjects>
31         </ItemGroup>
32         <MSBuild Projects="@(TempProjects)" BuildInParallel="true" StopOnFirstFailure="true" Targets="DownloadTest" />
33         <Message Text="Extracting CoreFX tests..." Importance="high" />
34         <Unzip
35             SourceFiles="$(MSBuildProjectDirectory)/corefx/tests/$([System.IO.Path]::GetFileName('%(AllTests.Identity)'))"
36             DestinationFolder="$(MSBuildProjectDirectory)/corefx/tests/extracted/$([System.IO.Path]::GetFileNameWithoutExtension('%(AllTests.Identity)'))" />
37     </Target>
39 </Project>