summaryrefslogtreecommitdiff
path: root/tests/runtest.proj
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2016-09-06 15:17:04 -0700
committerwtgodbe <wigodbe@microsoft.com>2016-10-17 11:25:49 -0700
commit69ab16ac55d423935dd40c12237903b0c3a0c170 (patch)
treef59bccc958e9166b867dfcbabf5d2d92cebac32d /tests/runtest.proj
parent27c00018be793ad5cb9d7b2d2d4fcae497963ccc (diff)
downloadcoreclr-69ab16ac55d423935dd40c12237903b0c3a0c170.tar.gz
coreclr-69ab16ac55d423935dd40c12237903b0c3a0c170.tar.bz2
coreclr-69ab16ac55d423935dd40c12237903b0c3a0c170.zip
Build tests against packages & produce Core_Root for arbitrary OS
Diffstat (limited to 'tests/runtest.proj')
-rw-r--r--tests/runtest.proj22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/runtest.proj b/tests/runtest.proj
index e1c07e4101..acc4545d92 100644
--- a/tests/runtest.proj
+++ b/tests/runtest.proj
@@ -323,6 +323,28 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
Properties="Language=C#" />
</Target>
+ <Target Name="CreateNonWindowsTestOverlay">
+ <MSBuild Projects="$(MSBuildProjectFile)"
+ Targets="CopyNonWindowsDependecyToCoreRoot"
+ Properties="Language=C#;NonWindowsRuntimeId=$(NonWindowsRuntimeId)" />
+ </Target>
+
+ <Target Name="BinPlaceRef">
+ <!-- Copy mscorlib.dll from TargetingPack to bin/Product/ref, if we're building against packages -->
+ <MSBuild Projects="$(MSBuildProjectFile)"
+ Targets="CopyDependencyToRef"
+ Properties="Language=C#"
+ Condition=" '$(BuildTestsAgainstPackages)'=='true' " />
+ </Target>
+
+ <Target Name="BinPlaceProduct">
+ <!-- Copy test dependencies to bin/Product, if we're building against packages -->
+ <MSBuild Projects="$(MSBuildProjectFile)"
+ Targets="CopyDependencyToProduct"
+ Properties="Language=C#"
+ Condition=" '$(BuildTestsAgainstPackages)'=='true' " />
+ </Target>
+
<!-- All the test projects need to add dependency to currently built runtime as they require that to run.
In addition the version number of built runtime can change so all project.json needs to be dynamically generated.
Instead the following task creates a project.json with dependencies like Microsoft.netcore.runtime.coreclr ..etc.