Skip to content

Commit ac3b110

Browse files
Start running Loader and Interop tests for NativeAOT (#84404)
These are the most interesting ones to cover in regular testing.
1 parent 9aefa9d commit ac3b110

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

eng/pipelines/runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ extends:
244244
extraStepsTemplate: /eng/pipelines/coreclr/nativeaot-post-build-steps.yml
245245
extraStepsParameters:
246246
creator: dotnet-bot
247-
testBuildArgs: nativeaot tree nativeaot /p:BuildNativeAotFrameworkObjects=true
247+
testBuildArgs: 'nativeaot tree ";nativeaot;Loader;Interop;" /p:BuildNativeAotFrameworkObjects=true'
248248
liveLibrariesBuildConfig: Release
249249
testRunNamePrefixSuffix: NativeAOT_$(_BuildConfig)
250250
extraVariablesTemplates:

src/tests/Directory.Build.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,16 @@
549549

550550
<!-- Bump the generic cycle tolerance. There's at least one test with a cycle that is reachable at runtime to depth 6 -->
551551
<IlcArg Include="--maxgenericcycle:7" />
552+
553+
<!-- We set TrimMode to partial so that we don't trim parts of the tests,
554+
but don't make this apply to xunit cruft -->
555+
<IlcArg Include="--trim:Microsoft.DotNet.XUnitExtensions" />
556+
<IlcArg Include="--trim:xunit.abstractions" />
557+
<IlcArg Include="--trim:xunit.assert" />
558+
<IlcArg Include="--trim:xunit.console" />
559+
<IlcArg Include="--trim:xunit.core" />
560+
<IlcArg Include="--trim:xunit.execution.dotnet" />
561+
<IlcArg Include="--trim:xunit.abstractions" />
552562
</ItemGroup>
553563

554564
<Import Project="$(CoreCLRBuildIntegrationDir)Microsoft.DotNet.ILCompiler.SingleEntry.targets" Condition="'$(TestBuildMode)' == 'nativeaot'" />

0 commit comments

Comments
 (0)