Exclude profiler/r2r tests from building (#86314)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Wed, 17 May 2023 01:20:42 +0000 (10:20 +0900)
committerGitHub <noreply@github.com>
Wed, 17 May 2023 01:20:42 +0000 (10:20 +0900)
These are excluded in issues.targets, but we shouldn't even build them.

src/tests/issues.targets
src/tests/profiler/Directory.Build.props [new file with mode: 0644]
src/tests/readytorun/Directory.Build.props [new file with mode: 0644]

index eccfda9..a164dc3 100644 (file)
         <ExcludeList Include="$(XunitTestBinBase)/Loader/ContextualReflection/ContextualReflection/*">
             <Issue>https://github.com/dotnet/runtimelab/issues/165</Issue>
         </ExcludeList>
-        <ExcludeList Include="$(XunitTestBinBase)/profiler/**/*">
-            <Issue>CoreCLR test</Issue>
-        </ExcludeList>
-        <ExcludeList Include="$(XunitTestBinBase)/readytorun/**/*">
-            <Issue>CoreCLR test</Issue>
-        </ExcludeList>
         <ExcludeList Include="$(XunitTestBinBase)/reflection/Modifiers/modifiers/*">
             <Issue>https://github.com/dotnet/runtimelab/issues/201</Issue>
         </ExcludeList>
diff --git a/src/tests/profiler/Directory.Build.props b/src/tests/profiler/Directory.Build.props
new file mode 100644 (file)
index 0000000..338eecc
--- /dev/null
@@ -0,0 +1,7 @@
+<Project>
+  <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
+
+  <PropertyGroup>
+    <NativeAotIncompatible>true</NativeAotIncompatible>
+  </PropertyGroup>
+</Project>
diff --git a/src/tests/readytorun/Directory.Build.props b/src/tests/readytorun/Directory.Build.props
new file mode 100644 (file)
index 0000000..338eecc
--- /dev/null
@@ -0,0 +1,7 @@
+<Project>
+  <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
+
+  <PropertyGroup>
+    <NativeAotIncompatible>true</NativeAotIncompatible>
+  </PropertyGroup>
+</Project>