1 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <__BuildType>$(ConfigurationGroup)</__BuildType>
7 <Import Project="..\dir.props" />
8 <Import Project="$(ToolsDir)CloudTest.targets" Condition="Exists('$(ToolsDir)CloudTest.targets')" />
10 <!-- Define test payload & Correlation (Core_Root) payload -->
12 <TestList Include="$(TestWorkingDir)\archive\tests\*" ></TestList>
13 <CoreRootUri Include="$(TestWorkingDir)\archive\Core_Root*\*.zip" ></CoreRootUri>
14 <DummyPackages Include="$(TestWorkingDir)\archive\packages\*" ></DummyPackages>
15 <ForUpload Include="@(TestList)" ></ForUpload>
16 <ForUpload Include="@(CoreRootUri)" ></ForUpload>
17 <SupplementalPayload Include="@(DummyPackages)" >
18 <RelativeBlobPath>$(Platform)$(ConfigurationGroup)/Packages.zip</RelativeBlobPath>
19 </SupplementalPayload>
22 <!-- Define name & location of test JSON blob -->
24 <PayloadTestListFilename>Tests.$(ConfigurationGroup).json</PayloadTestListFilename>
25 <PayloadTestListFile>$(TestWorkingDir)$(PayloadTestListFilename)</PayloadTestListFile>
26 <SkipArchive>true</SkipArchive>
29 <Target Name="CreateTestListJson"
30 DependsOnTargets="CreateAzureStorage">
32 <!-- Define Correlation Payload as a property -->
34 <CoreRootUris>$(DropUri)$(Platform)$(ConfigurationGroup)/Tests/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(CoreRootUri.Filename)%(CoreRootUri.Extension)$(DropUriReadOnlyToken)</CoreRootUris>
35 <CorrelationPayloadProperty>$(CorrelationPayloadUris);$(CoreRootUris)</CorrelationPayloadProperty>
40 <Command Condition="'$(TargetsWindows)' == 'true'">$(HelixPythonPath) $(RunnerScript) --script %HELIX_WORKITEM_PAYLOAD%\runtests.cmd</Command>
41 <Command Condition="'$(TargetsWindows)' != 'true'">chmod +x $HELIX_WORKITEM_PAYLOAD/runtests.sh && $(HelixPythonPath) $(RunnerScript) --script $HELIX_WORKITEM_PAYLOAD/runtests.sh</Command>
42 <CorrelationPayloadUris>[$(CorrelationPayloadProperty)]</CorrelationPayloadUris>
43 <PayloadUri>$(DropUri)$(Platform)$(ConfigurationGroup)/Tests/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(Filename)%(Extension)$(DropUriReadOnlyToken)</PayloadUri>
44 <WorkItemId>%(Filename)</WorkItemId>
45 <TimeoutInSeconds>$(TimeoutInSeconds)</TimeoutInSeconds>
48 <WriteItemsToJson JsonFileName="$(PayloadTestListFile)" Items="@(TestList)" />
49 <!-- add test lists to the list of items for upload -->
51 <ForUpload Include="$(PayloadTestListFile)">
52 <RelativeBlobPath>$(PayloadTestListFilename)</RelativeBlobPath>
55 <!-- for completion event -->
57 <TestListFile Include="$(PayloadTestListFile)">
58 <BuildCompleteJson>$(TestWorkingDir)$(OSPlatformConfig)/FuncBuildComplete.json</BuildCompleteJson>
59 <OfficialBuildJson>$(TestWorkingDir)$(OSPlatformConfig)/FuncOfficialBuild.json</OfficialBuildJson>
60 <HelixJobUploadCompletePath>$(TestWorkingDir)$(OSPlatformConfig)/helixjobuploadcomplete.sem</HelixJobUploadCompletePath>
65 <Target Name="Build" />