Skip to content

Commit

Permalink
Define a merged runner for the profiler tests (dotnet#107200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Sep 3, 2024
1 parent 252f413 commit f2d5480
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/tests/issues.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1684,21 +1684,6 @@
<ExcludeList Include="$(XunitTestBinBase)/Loader/ContextualReflection/ContextualReflection/**">
<Issue>https://github.com/dotnet/runtime/issues/34072</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/profiler/**">
<Issue>needs triage</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/profiler/elt/slowpatheltenter/*">
<Issue>needs triage</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/profiler/elt/slowpatheltleave/*">
<Issue>needs triage</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/profiler/unittest/metadatagetdispenser/**">
<Issue>needs triage</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/profiler/rejit/rejit/rejit.sh">
<Issue>needs triage</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/readytorun/**">
<Issue>These tests are not supposed to be run with mono.</Issue>
</ExcludeList>
Expand Down
9 changes: 9 additions & 0 deletions src/tests/profiler/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project>
<!-- SDK Style projects auto-magically include this file. -->
<Import Project="..\Directory.Build.targets" />

<PropertyGroup Condition="'$(IsMergedTestRunnerAssembly)' != 'true'">
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<ReferenceXUnitWrapperGenerator>false</ReferenceXUnitWrapperGenerator>
</PropertyGroup>
</Project>
13 changes: 13 additions & 0 deletions src/tests/profiler/profiler.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Profiler APIs aren't supported on mobile platforms -->
<DisableProjectBuild Condition="'$(TargetsMobile)' == 'true'">true</DisableProjectBuild>
<!-- Profiler APIs aren't supported on Mono -->
<DisableProjectBuild Condition="'$(RuntimeFlavor)' == 'mono'">true</DisableProjectBuild>
</PropertyGroup>
<ItemGroup>
<MergedWrapperProjectReference Include="*/**/*.csproj" Exclude="common/**/*.csproj;unittest/unloadlibrary.csproj" />
</ItemGroup>

<Import Project="$(TestSourceDir)MergedTestRunner.targets" />
</Project>

0 comments on commit f2d5480

Please sign in to comment.