Skip to content

Commit

Permalink
[mono] [tests] Set error for mono_fullaot runtime tests when no suita…
Browse files Browse the repository at this point in the history
…ble tests are found (#96902)
  • Loading branch information
matouskozak committed Jan 19, 2024
1 parent 4068acb commit f6824bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tests/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,15 @@
<TestAssemblies Include="%(TestAssemblyPaths.Identity)" Condition="Exists(%(TestAssemblyPaths.Identity))" />
<TestDirsWithDuplicates Include="$([System.IO.Path]::GetDirectoryName('%(TestAssemblies.Identity)'))" />
</ItemGroup>

<Error
Text="No tests found for Mono AOT compilation. Make sure that the desired test cases are not excluded from AOT compilation."
Condition="!Exists(%(TestAssemblies.Identity))" />

<RemoveDuplicates Inputs="@(TestDirsWithDuplicates)">
<Output TaskParameter="Filtered" ItemName="TestDirs" />
</RemoveDuplicates>
<ItemGroup>
<ItemGroup>
<TestsAndAssociatedAssemblies Include="%(TestDirs.Identity)/**/*.dll" Exclude="@(NoMonoAotAssemblyPaths)" />
<CoreRootDlls Include="$(CORE_ROOT)/*.dll" Exclude="$(CORE_ROOT)/xunit.performance.api.dll;$(CORE_ROOT)/Microsoft.CodeAnalysis.VisualBasic.dll" />
<AllDlls Condition="'$(MonoFullAot)' == 'true'" Include="@(TestsAndAssociatedAssemblies);@(CoreRootDlls)" />
Expand Down

0 comments on commit f6824bc

Please sign in to comment.