summaryrefslogtreecommitdiff
path: root/tests/helix.targets
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 19:09:09 +0900
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 19:09:09 +0900
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /tests/helix.targets
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'tests/helix.targets')
-rw-r--r--tests/helix.targets78
1 files changed, 78 insertions, 0 deletions
diff --git a/tests/helix.targets b/tests/helix.targets
new file mode 100644
index 0000000000..16acf01ca4
--- /dev/null
+++ b/tests/helix.targets
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <PackageTestRuntimeFolder>$(PackagesDir)test.Microsoft.NETCore.Runtime.CoreClr\1.1.1</PackageTestRuntimeFolder>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <!-- TODO This should come from some package -->
+ <CoreRootFiles Include="$(CORE_ROOT)\crossgen.exe" />
+ <CoreRootFiles Include="$(CORE_ROOT)\ildasm.exe" />
+ <CoreRootFiles Include="$(CORE_ROOT)\ilasm.exe" />
+
+ <!-- TODO these files should get copied to core_root but does not as they are xunit files. Using temporary workaround for now -->
+ <CoreRootFiles Include="$(PackagesDir)Microsoft.DotNet.xunit.performance\1.0.0-alpha-build0035\lib\dotnet\xunit.performance.core.dll" />
+ <CoreRootFiles Include="$(PackagesDir)xunit.extensibility.core\2.1.0\lib\dotnet\xunit.core.dll" />
+ </ItemGroup>
+
+ <!-- replace *.lock.json to be that of actual tests than XunitWrapper -->
+ <Target Name="ReplaceProjectLockJson"
+ BeforeTargets="CopyTestToTestDirectory">
+ <PropertyGroup>
+ <ProjectLockJson></ProjectLockJson>
+ <TestRuntimeProjectLockJson></TestRuntimeProjectLockJson>
+ </PropertyGroup>
+ <ItemGroup>
+ <TestNugetProjectLockFile Include="$(SourceDir)$(Category)\**\project.lock.json"/>
+ <TestNugetProjectLockFile Include="$(TestRuntimeProjectLockJson)"/>
+ </ItemGroup>
+ </Target>
+
+ <Target Name="CopyProductInPackagesFolder"
+ BeforeTargets="CopyTestToTestDirectory">
+
+ <Copy
+ SourceFiles="@(CoreRootFiles)"
+ DestinationFolder="$(PackageTestRuntimeFolder)"
+ SkipUnchangedFiles="false"
+ OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
+ Retries="$(CopyRetryCount)"
+ RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
+ UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)">
+ </Copy>
+
+ </Target>
+
+
+ <Target Name="AddFilesToAssemblyList"
+ BeforeTargets="CreateAssemblyListTxt">
+
+ <ItemGroup>
+
+ <ToReplace Include="$(PackageTestRuntimeFolder)\*" />
+
+ <!-- In helix xunit tests are run using xunit.console.exe instead of msbuild xunitrunner.
+ This dependency should ideally be added in some project.json. But in the package the assemblies are present in tools folder.
+ Assemblies in tools folder are not resolved during restore. Therefore forcing addition direclty. -->
+ <XunitConsoleExe Include="$(PackagesDir)xunit.runner.console\**\xunit.console.exe" />
+ <XunitConsoleExe Include="$(PackagesDir)xunit.runner.console\**\xunit.runner.utility.desktop.dll" />
+
+ <ToRemove Include="@(_TestCopyLocalByFileNameWithoutDuplicates)" Condition="'%(_TestCopyLocalByFileNameWithoutDuplicates.Filename)' == 'xunit.performance.core'"/>
+ <ToRemove Include="@(_TestCopyLocalByFileNameWithoutDuplicates)" Condition="'%(_TestCopyLocalByFileNameWithoutDuplicates.Filename)' == 'xunit.core'"/>
+
+ <_TestCopyLocalByFileNameWithoutDuplicates Remove="@(ToRemove)" />
+
+ <_TestCopyLocalByFileNameWithoutDuplicates Include="@(ToReplace)">
+ <NugetPackageId>test.Microsoft.NETCore.Runtime.CoreClr</NugetPackageId>
+ <SourcePath>%(ToReplace.Identity)</SourcePath>
+ </_TestCopyLocalByFileNameWithoutDuplicates>
+
+ <_TestCopyLocalByFileNameWithoutDuplicates Include="@(XunitConsoleExe)">
+ <NugetPackageId>xunit.runner.console</NugetPackageId>
+ <SourcePath>%(XunitConsoleExe.Identity)</SourcePath>
+ </_TestCopyLocalByFileNameWithoutDuplicates>
+ </ItemGroup>
+ </Target>
+
+</Project>