diff options
author | Brian Robbins <brianrob@microsoft.com> | 2018-02-23 08:34:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 08:34:13 +0300 |
commit | 6956c87d683c4cecaafa9edaf3cea4a5747738fb (patch) | |
tree | 4f4cdd92949a2f6dcd5b4e8ed460b881f894f088 /external | |
parent | 173d9e637b267f2e624fee9f678d448df1b3e6e4 (diff) |
Enable ETW EventSource Tests (#27331)
* Upgrade TraceEvent to 2.0.5 and xunit.performance to 1.0.0-beta-build0018.
* Only run ETW tests when the test process is elevated.
* Enable ETW tests.
* Manually copy the native portions of TraceEvent into the runtime and shared framework directories.
Diffstat (limited to 'external')
-rw-r--r-- | external/test-runtime/XUnit.Runtime.depproj | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/external/test-runtime/XUnit.Runtime.depproj b/external/test-runtime/XUnit.Runtime.depproj index ef5c2b6b82..f009697544 100644 --- a/external/test-runtime/XUnit.Runtime.depproj +++ b/external/test-runtime/XUnit.Runtime.depproj @@ -102,6 +102,23 @@ <PackageToInclude Include="$(XUnitRunnerPackageId)" /> </ItemGroup> + <!-- Ensure that the native components of TraceEvent are restored into the runtime directory so that TraceEvent can pinvoke into them. --> + <Target Name="CopyTraceEventNativeFiles" AfterTargets="RestorePackages"> + <ItemGroup> + <TraceEventNativeFiles + Include="$(PackagesDir)\Microsoft.Diagnostics.Tracing.TraceEvent\$(TraceEventPackageVersion)\lib\native\**\*.*" /> + </ItemGroup> + <Copy + SourceFiles="@(TraceEventNativeFiles)" + DestinationFiles="@(TraceEventNativeFiles->'$(TargetDir)%(RecursiveDir)%(FileName)%(Extension)')" + SkipUnchangedFiles="true" /> + <Copy + SourceFiles="@(TraceEventNativeFiles)" + DestinationFiles="@(TraceEventNativeFiles->'$(NETCoreAppTestSharedFrameworkPath)%(RecursiveDir)%(FileName)%(Extension)')" + UseHardlinksIfPossible="true" + SkipUnchangedFiles="true" /> + </Target> + <PropertyGroup Condition="'$(TargetGroup)' == 'uap'"> <UAPToolsPackageVersion>1.0.17</UAPToolsPackageVersion> </PropertyGroup> |