summaryrefslogtreecommitdiff
path: root/tests/runtest.proj
diff options
context:
space:
mode:
authorDavis Goodin <dagood@microsoft.com>2016-03-02 19:31:29 -0600
committerDavis Goodin <dagood@microsoft.com>2016-03-10 09:18:15 -0600
commit899d4270b510f5edd1242def8d201b1804dd7683 (patch)
tree4cc4bd48c14b788cef6ab067e6323282cad99ed3 /tests/runtest.proj
parent2325dea4efa87fc658cb566454e4955f7269ddf6 (diff)
downloadcoreclr-899d4270b510f5edd1242def8d201b1804dd7683.tar.gz
coreclr-899d4270b510f5edd1242def8d201b1804dd7683.tar.bz2
coreclr-899d4270b510f5edd1242def8d201b1804dd7683.zip
Add validation to test build.
Don't validate generated files, and make the xunit.runner.msbuild workaround only apply to that specific package.
Diffstat (limited to 'tests/runtest.proj')
-rw-r--r--tests/runtest.proj29
1 files changed, 25 insertions, 4 deletions
diff --git a/tests/runtest.proj b/tests/runtest.proj
index f882a466ea..4c9a6467e6 100644
--- a/tests/runtest.proj
+++ b/tests/runtest.proj
@@ -128,7 +128,6 @@ $(_XunitEpilog)
"xunit" : "2.1.0",
"xunit.assert" : "2.1.0",
"xunit.core" : "2.1.0",
- "xunit.runner.msbuild": "2.1.0"
},
"frameworks": {
"net45": {
@@ -304,11 +303,33 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
<MSBuild Projects="$(MSBuildProjectFile)" Targets="CreateXunitWrapper" Properties="_CMDDIR=%(TestDirectories.Identity)" />
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
+
+ <!--
+ Contents of a project.json that will be restored once with errors turned off. This works
+ around the package being incompatible with dotnet restore. Only the package contents are
+ required so the compatibility errors can be ignored.
+ -->
+ <PropertyGroup>
+ <XunitRunnerRestoreGenConfig>{ "dependencies": { "xunit.runner.msbuild": "2.1.0" }, "frameworks": { "net45": {} } }</XunitRunnerRestoreGenConfig>
+ <XunitRunnerRestoreProjectDir>$(BaseOutputPath)\tempRestoreProject</XunitRunnerRestoreProjectDir>
+ <XunitRunnerRestoreProjectJsonPath>$(XunitRunnerRestoreProjectDir)\project.json</XunitRunnerRestoreProjectJsonPath>
+ </PropertyGroup>
+
+ <MakeDir Directories="$(XunitRunnerRestoreProjectDir)" />
+ <WriteLinesToFile File="$(XunitRunnerRestoreProjectJsonPath)"
+ Lines="$(XunitRunnerRestoreGenConfig)"
+ Overwrite="true" />
+
+ <Exec Command="$(DnuRestoreCommand) &quot;$(XunitRunnerRestoreProjectJsonPath)&quot;"
+ StandardOutputImportance="Low"
+ CustomErrorRegularExpression="^Unable to resolve .*"
+ IgnoreExitCode="true"
+ IgnoreStandardErrorWarningFormat="true" />
+
<!-- Restore all wrapper projects' project.jsons in one pass for perf & to avoid concurrency problems -->
<Exec Command="$(DnuRestoreCommand) &quot;$(XunitWrapperGeneratedCSDirBase.TrimEnd('\\'))&quot;"
- StandardOutputImportance="Low"
- CustomErrorRegularExpression="^Unable to locate .*"
- ContinueOnError="WarnAndContinue" />
+ StandardOutputImportance="Low" />
+
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages...Done." />
<MSBuild Projects="$(MSBuildProjectFile)" Targets="BuildXunitWrapper" Properties="_CMDDIR=%(TestDirectories.Identity)" />