diff options
author | Davis Goodin <dagood@microsoft.com> | 2016-08-18 10:31:02 -0500 |
---|---|---|
committer | Davis Goodin <dagood@microsoft.com> | 2016-09-01 15:53:10 -0500 |
commit | 2493a6ef84cdafde9c7e5730f5a20183aa267035 (patch) | |
tree | b511035d810b8f015da2966f08390f3658924949 /tests/src | |
parent | bcd4c0c7ff141f854c1c3727f9a5cf45ea3efd43 (diff) | |
download | coreclr-2493a6ef84cdafde9c7e5730f5a20183aa267035.tar.gz coreclr-2493a6ef84cdafde9c7e5730f5a20183aa267035.tar.bz2 coreclr-2493a6ef84cdafde9c7e5730f5a20183aa267035.zip |
Upgrade xunit version to avoid specialized restore
Upgrade xunit from 2.1.0 to 2.2.0-beta2-build3300.
Restore xunit.runner.msbuild during normal test build.
Remove unused reference to xunit 2.1.0.
Replace "2.1.0" with "$(XunitPackageVersion)" for direct path to files.
Upgrade xunit used by GCPerfTestFramework and fix helix path.
Upgrade Microsoft.DotNet.xunit.performance and Microsoft.DotNet.xunit.performance.metrics to 1.0.0-alpha-build0040.
Upgrade XunitPerformanceDependency packages to 1.0.0-alpha-build0040.
Include scripts project.json in validation, update them.
Don't use helix.targets in generated xunit wrappers.
Copy TestTFM defaulting logic from CoreFX dir.props. Tweak default wrapper TFM per platform, and use real RID instead of relying on fallthrough.
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/Common/test_dependencies/project.json | 10 | ||||
-rw-r--r-- | tests/src/GC/Performance/Framework/GCPerfTestFramework.csproj | 31 | ||||
-rw-r--r-- | tests/src/GC/Performance/Framework/packages.config | 24 | ||||
-rw-r--r-- | tests/src/JIT/config/benchmark+roslyn/project.json | 10 | ||||
-rw-r--r-- | tests/src/JIT/config/benchmark+serialize/project.json | 10 | ||||
-rw-r--r-- | tests/src/JIT/config/benchmark/project.json | 10 | ||||
-rw-r--r-- | tests/src/TestWrappersConfig/project.json | 13 | ||||
-rw-r--r-- | tests/src/dir.props | 9 |
8 files changed, 67 insertions, 50 deletions
diff --git a/tests/src/Common/test_dependencies/project.json b/tests/src/Common/test_dependencies/project.json index b504cf88f1..7aa96c54a4 100644 --- a/tests/src/Common/test_dependencies/project.json +++ b/tests/src/Common/test_dependencies/project.json @@ -1,12 +1,12 @@ { "dependencies": { - "xunit": "2.1.0", + "xunit": "2.2.0-beta2-build3300", "xunit.console.netcore": "1.0.2-prerelease-00101", - "xunit.runner.utility": "2.1.0", + "xunit.runner.utility": "2.2.0-beta2-build3300", "Microsoft.CodeAnalysis.Compilers": "1.1.1", - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", "Microsoft.Win32.Primitives": "4.3.0-beta-24431-01", "Newtonsoft.Json": "7.0.1", "Microsoft.NETCore.Platforms": "4.3.0-beta-24431-01", diff --git a/tests/src/GC/Performance/Framework/GCPerfTestFramework.csproj b/tests/src/GC/Performance/Framework/GCPerfTestFramework.csproj index cc8261f26e..d013349cc9 100644 --- a/tests/src/GC/Performance/Framework/GCPerfTestFramework.csproj +++ b/tests/src/GC/Performance/Framework/GCPerfTestFramework.csproj @@ -35,11 +35,12 @@ <PlatformTarget>x64</PlatformTarget> </PropertyGroup> <ItemGroup> - <Reference Include="Microsoft.Diagnostics.Tracing.TraceEvent, Version=1.0.39.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> - <HintPath>packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.39\lib\net40\Microsoft.Diagnostics.Tracing.TraceEvent.dll</HintPath> + <Reference Include="Microsoft.Diagnostics.Tracing.TraceEvent, Version=1.0.41.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> + <HintPath>packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.41\lib\net40\Microsoft.Diagnostics.Tracing.TraceEvent.dll</HintPath> <Private>True</Private> </Reference> <Reference Include="System" /> + <Reference Include="System.ComponentModel.Composition" /> <Reference Include="System.Core" /> <Reference Include="System.IO.FileSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> <HintPath>packages\System.IO.FileSystem.4.0.0\lib\net46\System.IO.FileSystem.dll</HintPath> @@ -56,27 +57,27 @@ <Reference Include="System.Net.Http" /> <Reference Include="System.Xml" /> <Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL"> - <HintPath>packages\Microsoft.DotNet.xunit.performance.metrics.1.0.0-alpha-build0030\lib\net46\xunit.abstractions.dll</HintPath> + <HintPath>packages\Microsoft.DotNet.xunit.performance.metrics.1.0.0-alpha-build0040\lib\net46\xunit.abstractions.dll</HintPath> <Private>True</Private> </Reference> - <Reference Include="xunit.core, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL"> - <HintPath>packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll</HintPath> + <Reference Include="xunit.core, Version=2.2.0.3300, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL"> + <HintPath>packages\xunit.extensibility.core.2.2.0-beta2-build3300\lib\netstandard1.0\xunit.core.dll</HintPath> <Private>True</Private> </Reference> - <Reference Include="xunit.execution.desktop, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL"> - <HintPath>packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath> + <Reference Include="xunit.execution.desktop, Version=2.2.0.3300, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL"> + <HintPath>packages\xunit.extensibility.execution.2.2.0-beta2-build3300\lib\net45\xunit.execution.desktop.dll</HintPath> <Private>True</Private> </Reference> - <Reference Include="xunit.performance.core, Version=1.0.0.30, Culture=neutral, PublicKeyToken=67066efe964d3b03, processorArchitecture=MSIL"> - <HintPath>packages\Microsoft.DotNet.xunit.performance.metrics.1.0.0-alpha-build0030\lib\net46\xunit.performance.core.dll</HintPath> + <Reference Include="xunit.performance.core, Version=1.0.0.40, Culture=neutral, PublicKeyToken=67066efe964d3b03, processorArchitecture=MSIL"> + <HintPath>packages\Microsoft.DotNet.xunit.performance.metrics.1.0.0-alpha-build0040\lib\net46\xunit.performance.core.dll</HintPath> <Private>True</Private> </Reference> - <Reference Include="xunit.performance.execution.desktop, Version=1.0.0.30, Culture=neutral, PublicKeyToken=67066efe964d3b03, processorArchitecture=MSIL"> - <HintPath>packages\Microsoft.DotNet.xunit.performance.1.0.0-alpha-build0030\lib\net46\xunit.performance.execution.desktop.dll</HintPath> + <Reference Include="xunit.performance.execution.desktop, Version=1.0.0.40, Culture=neutral, PublicKeyToken=67066efe964d3b03, processorArchitecture=MSIL"> + <HintPath>packages\Microsoft.DotNet.xunit.performance.1.0.0-alpha-build0040\lib\net46\xunit.performance.execution.desktop.dll</HintPath> <Private>True</Private> </Reference> - <Reference Include="xunit.performance.metrics, Version=1.0.0.30, Culture=neutral, processorArchitecture=MSIL"> - <HintPath>packages\Microsoft.DotNet.xunit.performance.metrics.1.0.0-alpha-build0030\lib\net46\xunit.performance.metrics.dll</HintPath> + <Reference Include="xunit.performance.metrics, Version=1.0.0.40, Culture=neutral, processorArchitecture=MSIL"> + <HintPath>packages\Microsoft.DotNet.xunit.performance.metrics.1.0.0-alpha-build0040\lib\net46\xunit.performance.metrics.dll</HintPath> <Private>True</Private> </Reference> </ItemGroup> @@ -102,12 +103,12 @@ <None Include="packages.config" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> - <Import Project="packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.39\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets" Condition="Exists('packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.39\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets')" /> + <Import Project="packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.41\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets" Condition="Exists('packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.41\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets')" /> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <PropertyGroup> <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> </PropertyGroup> - <Error Condition="!Exists('packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.39\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.39\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets'))" /> + <Error Condition="!Exists('packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.41\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.Diagnostics.Tracing.TraceEvent.1.0.41\build\Microsoft.Diagnostics.Tracing.TraceEvent.targets'))" /> </Target> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. diff --git a/tests/src/GC/Performance/Framework/packages.config b/tests/src/GC/Performance/Framework/packages.config index 16572761b4..c43e175825 100644 --- a/tests/src/GC/Performance/Framework/packages.config +++ b/tests/src/GC/Performance/Framework/packages.config @@ -1,24 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> <packages> - <package id="Microsoft.Diagnostics.Tracing.TraceEvent" version="1.0.39" targetFramework="net461" /> - <package id="Microsoft.DotNet.xunit.performance" version="1.0.0-alpha-build0030" targetFramework="net461" /> - <package id="Microsoft.DotNet.xunit.performance.metrics" version="1.0.0-alpha-build0030" targetFramework="net461" /> + <package id="Microsoft.Diagnostics.Tracing.TraceEvent" version="1.0.41" targetFramework="net461" /> + <package id="Microsoft.DotNet.xunit.performance" version="1.0.0-alpha-build0040" targetFramework="net461" /> + <package id="Microsoft.DotNet.xunit.performance.metrics" version="1.0.0-alpha-build0040" targetFramework="net461" /> <package id="System.Collections" version="4.0.10" targetFramework="net461" /> <package id="System.Diagnostics.Debug" version="4.0.10" targetFramework="net461" /> - <package id="System.Diagnostics.Tracing" version="4.0.20" targetFramework="net461" /> + <package id="System.Diagnostics.Tracing" version="4.1.0" targetFramework="net461" /> <package id="System.Globalization" version="4.0.10" targetFramework="net461" /> - <package id="System.IO" version="4.0.10" targetFramework="net461" /> + <package id="System.IO" version="4.1.0" targetFramework="net461" /> <package id="System.IO.FileSystem" version="4.0.0" targetFramework="net461" /> <package id="System.IO.FileSystem.Primitives" version="4.0.0" targetFramework="net461" /> - <package id="System.Linq" version="4.0.0" targetFramework="net461" /> - <package id="System.Reflection" version="4.0.10" targetFramework="net461" /> - <package id="System.Runtime" version="4.0.20" targetFramework="net461" /> - <package id="System.Runtime.Extensions" version="4.0.10" targetFramework="net461" /> + <package id="System.Linq" version="4.1.0" targetFramework="net461" /> + <package id="System.Reflection" version="4.1.0" targetFramework="net461" /> + <package id="System.Runtime" version="4.1.0" targetFramework="net461" /> + <package id="System.Runtime.Extensions" version="4.1.0" targetFramework="net461" /> <package id="System.Runtime.Handles" version="4.0.0" targetFramework="net461" /> <package id="System.Text.Encoding" version="4.0.10" targetFramework="net461" /> <package id="System.Threading" version="4.0.10" targetFramework="net461" /> <package id="System.Threading.Tasks" version="4.0.10" targetFramework="net461" /> - <package id="xunit.abstractions" version="2.0.0" targetFramework="net461" /> - <package id="xunit.extensibility.core" version="2.1.0" targetFramework="net461" /> - <package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net461" /> + <package id="xunit.abstractions" version="2.0.1-rc2" targetFramework="net461" /> + <package id="xunit.extensibility.core" version="2.2.0-beta2-build3300" targetFramework="net461" /> + <package id="xunit.extensibility.execution" version="2.2.0-beta2-build3300" targetFramework="net461" /> </packages>
\ No newline at end of file diff --git a/tests/src/JIT/config/benchmark+roslyn/project.json b/tests/src/JIT/config/benchmark+roslyn/project.json index 922737f3fd..e35433c484 100644 --- a/tests/src/JIT/config/benchmark+roslyn/project.json +++ b/tests/src/JIT/config/benchmark+roslyn/project.json @@ -1,9 +1,9 @@ { "dependencies": { "Microsoft.CodeAnalysis.Compilers": "1.1.1", - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", "Microsoft.NETCore.Platforms": "4.3.0-beta-24431-01", "System.Console": "4.3.0-beta-24431-01", "System.Dynamic.Runtime": "4.3.0-beta-24431-01", @@ -21,9 +21,9 @@ "System.Threading.Tasks": "4.3.0-beta-24431-01", "System.Threading.Tasks.Parallel": "4.3.0-beta-24431-01", "System.Security.Cryptography.Algorithms": "4.3.0-beta-24431-01", - "xunit": "2.1.0", + "xunit": "2.2.0-beta2-build3300", "xunit.console.netcore": "1.0.2-prerelease-00101", - "xunit.runner.utility": "2.1.0" + "xunit.runner.utility": "2.2.0-beta2-build3300" }, "frameworks": { "netcoreapp1.0": { diff --git a/tests/src/JIT/config/benchmark+serialize/project.json b/tests/src/JIT/config/benchmark+serialize/project.json index 193170ddae..8a2935b37f 100644 --- a/tests/src/JIT/config/benchmark+serialize/project.json +++ b/tests/src/JIT/config/benchmark+serialize/project.json @@ -1,8 +1,8 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", "Microsoft.NETCore.Platforms": "4.3.0-beta-24431-01", "Newtonsoft.Json": "7.0.1", "System.Console": "4.3.0-beta-24431-01", @@ -18,9 +18,9 @@ "System.Text.RegularExpressions": "4.3.0-beta-24431-01", "System.Xml.XmlDocument": "4.3.0-beta-24431-01", "System.Xml.XmlSerializer": "4.3.0-beta-24431-01", - "xunit": "2.1.0", + "xunit": "2.2.0-beta2-build3300", "xunit.console.netcore": "1.0.2-prerelease-00101", - "xunit.runner.utility": "2.1.0" + "xunit.runner.utility": "2.2.0-beta2-build3300" }, "frameworks": { "netcoreapp1.0": { diff --git a/tests/src/JIT/config/benchmark/project.json b/tests/src/JIT/config/benchmark/project.json index f8b6e1caaa..93861077fd 100644 --- a/tests/src/JIT/config/benchmark/project.json +++ b/tests/src/JIT/config/benchmark/project.json @@ -1,8 +1,8 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", "Microsoft.NETCore.Platforms": "4.3.0-beta-24431-01", "System.Collections.NonGeneric": "4.3.0-beta-24431-01", "System.Console": "4.3.0-beta-24431-01", @@ -21,9 +21,9 @@ "System.Xml.XmlDocument": "4.3.0-beta-24431-01", "System.Xml.XPath": "4.3.0-beta-24431-01", "System.Xml.XPath.XmlDocument": "4.3.0-beta-24431-01", - "xunit": "2.1.0", + "xunit": "2.2.0-beta2-build3300", "xunit.console.netcore": "1.0.2-prerelease-00101", - "xunit.runner.utility": "2.1.0" + "xunit.runner.utility": "2.2.0-beta2-build3300" }, "frameworks": { "netcoreapp1.0": { diff --git a/tests/src/TestWrappersConfig/project.json b/tests/src/TestWrappersConfig/project.json index 07ede5fca1..b9534119a9 100644 --- a/tests/src/TestWrappersConfig/project.json +++ b/tests/src/TestWrappersConfig/project.json @@ -1,10 +1,17 @@ { "dependencies": { - "xunit": "2.1.0", - "xunit.assert": "2.1.0", - "xunit.core": "2.1.0" + "xunit": "2.2.0-beta2-build3300", + "xunit.assert": "2.2.0-beta2-build3300", + "xunit.core": "2.2.0-beta2-build3300", + "xunit.runner.msbuild": "2.2.0-beta2-build3300" }, "frameworks": { + "netcoreapp1.0": { + "imports": [ + "dnxcore50", + "portable-net45+win8" + ] + }, "net45": { "imports": "portable-net45+win8" } diff --git a/tests/src/dir.props b/tests/src/dir.props index 3b2754c221..262feeaaaf 100644 --- a/tests/src/dir.props +++ b/tests/src/dir.props @@ -35,6 +35,7 @@ <PropertyGroup> <TargetsWindows>true</TargetsWindows> <TestNugetRuntimeId>win7-x64</TestNugetRuntimeId> + <DefaultTestTFM>net45</DefaultTestTFM> </PropertyGroup> </When> <When Condition="'$(OSGroup)'=='Linux'"> @@ -69,6 +70,14 @@ <TargetsUnknownUnix Condition="'$(TargetsUnix)' == 'true' AND '$(OSGroup)' != 'FreeBSD' AND '$(OSGroup)' != 'Linux' AND '$(OSGroup)' != 'OSX'">true</TargetsUnknownUnix> </PropertyGroup> + <!-- Default Test platform to deploy the netstandard compiled tests to --> + <PropertyGroup> + <!-- we default TestTFM and FilterToTestTFM to netcoreapp1.0 if they are not explicity defined --> + <DefaultTestTFM Condition="'$(DefaultTestTFM)'==''">netcoreapp1.0</DefaultTestTFM> + <TestTFM Condition="'$(TestTFM)'==''">$(DefaultTestTFM)</TestTFM> + <FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">$(DefaultTestTFM)</FilterToTestTFM> + </PropertyGroup> + <!-- Set default ZapRequire level (used only when CrossGen is enabled) --> <PropertyGroup> <ZapRequire Condition="'$(ZapRequire)' == ''">2</ZapRequire> |