Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2017-05-05 07:41:09 +0300
committerEric StJohn <ericstj@microsoft.com>2017-05-09 22:53:26 +0300
commit6b2a3fe8ec3ab26627f5e8eb7abaace03eafa185 (patch)
tree717af111e86b3f5132e134cff523a3315baf4072 /pkg/test/test.msbuild
parent051442c865a3d130c3afc726360beadd4c59ba46 (diff)
Add test targets to validate packages
Package testing can now use MSBuild to restore and evaluate the contents of packages. Define targets for evaluating closure and examining duplicate types / assemblies. I've defined conventions for placing targets files with framework specific configuration, package specific configuration, and framework + package specific configuration. I've included the minimum needed to make these run. For these exceptions I will file issues.
Diffstat (limited to 'pkg/test/test.msbuild')
-rw-r--r--pkg/test/test.msbuild25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/test/test.msbuild b/pkg/test/test.msbuild
new file mode 100644
index 0000000000..6c09548782
--- /dev/null
+++ b/pkg/test/test.msbuild
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Restore;Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <TestPackages Condition="'$(TestPackages)' != ''" Include="$(TestPackages)" />
+ </ItemGroup>
+
+ <Target Name="GetProjects">
+ <ItemGroup>
+ <Project Condition="'@(TestPackages)' == ''" Include="projects\**\*.csproj" />
+ <Project Condition="'@(TestPackages)' != ''" Include="projects\%(TestPackages.Identity)\**\*.csproj" />
+ </ItemGroup>
+ </Target>
+
+ <Target Name="Restore"
+ Inputs="@(Project)"
+ Outputs="@(Project->'%(RootDir)%(Directory)obj\project.assets.json')"
+ DependsOnTargets="GetProjects">
+ <MSBuild Projects="@(Project)" Targets="Restore" BuildInParallel="true" />
+ <Touch Files="@(Project->'%(RootDir)%(Directory)obj\project.assets.json')" />
+ </Target>
+
+ <Target Name="Test" DependsOnTargets="GetProjects">
+ <MSBuild Projects="@(Project)" Targets="Test" BuildInParallel="true" />
+ </Target>
+</Project> \ No newline at end of file