summaryrefslogtreecommitdiff
path: root/tests/helixpublish.proj
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2017-02-10 11:35:12 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2017-02-10 11:35:12 (GMT)
commit4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch)
treeb48831a898906734f8884d08b6e18f1144ee2b82 /tests/helixpublish.proj
parentdb20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff)
downloadcoreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip
coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz
coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
Diffstat (limited to 'tests/helixpublish.proj')
-rw-r--r--tests/helixpublish.proj67
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/helixpublish.proj b/tests/helixpublish.proj
new file mode 100644
index 0000000..aa967f1
--- /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 &amp;&amp; $(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