diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
commit | 4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch) | |
tree | b48831a898906734f8884d08b6e18f1144ee2b82 /tests/helixpublish.proj | |
parent | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff) | |
download | coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2 coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip |
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
Diffstat (limited to 'tests/helixpublish.proj')
-rw-r--r-- | tests/helixpublish.proj | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/helixpublish.proj b/tests/helixpublish.proj new file mode 100644 index 0000000000..aa967f1d48 --- /dev/null +++ b/tests/helixpublish.proj @@ -0,0 +1,67 @@ +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <PropertyGroup> + <__BuildType>$(ConfigurationGroup)</__BuildType> + </PropertyGroup> + + <Import Project="..\dir.props" /> + <Import Project="$(ToolsDir)CloudTest.targets" Condition="Exists('$(ToolsDir)CloudTest.targets')" /> + + <!-- Define test payload & Correlation (Core_Root) payload --> + <ItemGroup> + <TestList Include="$(TestWorkingDir)\archive\tests\*" ></TestList> + <CoreRootUri Include="$(TestWorkingDir)\archive\Core_Root*\*.zip" ></CoreRootUri> + <DummyPackages Include="$(TestWorkingDir)\archive\packages\*" ></DummyPackages> + <ForUpload Include="@(TestList)" ></ForUpload> + <ForUpload Include="@(CoreRootUri)" ></ForUpload> + <SupplementalPayload Include="@(DummyPackages)" > + <RelativeBlobPath>$(Platform)$(ConfigurationGroup)/Packages.zip</RelativeBlobPath> + </SupplementalPayload> + </ItemGroup> + + <!-- Define name & location of test JSON blob --> + <PropertyGroup> + <PayloadTestListFilename>Tests.$(ConfigurationGroup).json</PayloadTestListFilename> + <PayloadTestListFile>$(TestWorkingDir)$(PayloadTestListFilename)</PayloadTestListFile> + <SkipArchive>true</SkipArchive> + </PropertyGroup> + + <Target Name="CreateTestListJson" + DependsOnTargets="CreateAzureStorage"> + + <!-- Define Correlation Payload as a property --> + <PropertyGroup> + <CoreRootUris>$(DropUri)$(Platform)$(ConfigurationGroup)/Tests/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(CoreRootUri.Filename)%(CoreRootUri.Extension)$(DropUriReadOnlyToken)</CoreRootUris> + <CorrelationPayloadProperty>$(CorrelationPayloadUris);$(CoreRootUris)</CorrelationPayloadProperty> + </PropertyGroup> + + <ItemGroup> + <TestList> + <Command Condition="'$(TargetsWindows)' == 'true'">$(HelixPythonPath) $(RunnerScript) --script %HELIX_WORKITEM_PAYLOAD%\runtests.cmd</Command> + <Command Condition="'$(TargetsWindows)' != 'true'">chmod +x $HELIX_WORKITEM_PAYLOAD/runtests.sh && $(HelixPythonPath) $(RunnerScript) --script $HELIX_WORKITEM_PAYLOAD/runtests.sh</Command> + <CorrelationPayloadUris>[$(CorrelationPayloadProperty)]</CorrelationPayloadUris> + <PayloadUri>$(DropUri)$(Platform)$(ConfigurationGroup)/Tests/$([System.String]::Copy('%(RecursiveDir)').Replace('\', '/'))%(Filename)%(Extension)$(DropUriReadOnlyToken)</PayloadUri> + <WorkItemId>%(Filename)</WorkItemId> + <TimeoutInSeconds>$(TimeoutInSeconds)</TimeoutInSeconds> + </TestList> + </ItemGroup> + <WriteItemsToJson JsonFileName="$(PayloadTestListFile)" Items="@(TestList)" /> + <!-- add test lists to the list of items for upload --> + <ItemGroup> + <ForUpload Include="$(PayloadTestListFile)"> + <RelativeBlobPath>$(PayloadTestListFilename)</RelativeBlobPath> + </ForUpload> + </ItemGroup> + <!-- for completion event --> + <ItemGroup> + <TestListFile Include="$(PayloadTestListFile)"> + <BuildCompleteJson>$(TestWorkingDir)$(OSPlatformConfig)/FuncBuildComplete.json</BuildCompleteJson> + <OfficialBuildJson>$(TestWorkingDir)$(OSPlatformConfig)/FuncOfficialBuild.json</OfficialBuildJson> + <HelixJobUploadCompletePath>$(TestWorkingDir)$(OSPlatformConfig)/helixjobuploadcomplete.sem</HelixJobUploadCompletePath> + </TestListFile> + </ItemGroup> + </Target> + + <Target Name="Build" /> + +</Project>
\ No newline at end of file |