Skip to content

Commit f6824bc

Browse files
authored
[mono] [tests] Set error for mono_fullaot runtime tests when no suitable tests are found (#96902)
1 parent 4068acb commit f6824bc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tests/build.proj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,15 @@
115115
<TestAssemblies Include="%(TestAssemblyPaths.Identity)" Condition="Exists(%(TestAssemblyPaths.Identity))" />
116116
<TestDirsWithDuplicates Include="$([System.IO.Path]::GetDirectoryName('%(TestAssemblies.Identity)'))" />
117117
</ItemGroup>
118+
119+
<Error
120+
Text="No tests found for Mono AOT compilation. Make sure that the desired test cases are not excluded from AOT compilation."
121+
Condition="!Exists(%(TestAssemblies.Identity))" />
122+
118123
<RemoveDuplicates Inputs="@(TestDirsWithDuplicates)">
119124
<Output TaskParameter="Filtered" ItemName="TestDirs" />
120125
</RemoveDuplicates>
121-
<ItemGroup>
126+
<ItemGroup>
122127
<TestsAndAssociatedAssemblies Include="%(TestDirs.Identity)/**/*.dll" Exclude="@(NoMonoAotAssemblyPaths)" />
123128
<CoreRootDlls Include="$(CORE_ROOT)/*.dll" Exclude="$(CORE_ROOT)/xunit.performance.api.dll;$(CORE_ROOT)/Microsoft.CodeAnalysis.VisualBasic.dll" />
124129
<AllDlls Condition="'$(MonoFullAot)' == 'true'" Include="@(TestsAndAssociatedAssemblies);@(CoreRootDlls)" />

0 commit comments

Comments
 (0)