Skip to content

[NativeAOT] Enable running libraries and functional tests locally and on CI #93447

Open
@ivanpovazan

Description

@ivanpovazan

Description

  1. Currently we run libraries and functional tests on CI only for ios-arm64 and tvos-arm64 platforms.
    In order to improve test coverage we should enable testing on:

    • maccatalyst
    • iossimulators
    • tvossimulators
  2. Additionally, running libraries and functional tests locally is currently not supported (on CI we build on Helix).
    Building the test project with:

    ./dotnet.sh build /t:Test -c Debug /p:TargetOS=ios /p:TargetArchitecture=arm64 src/tests/FunctionalTests/iOS/Device/AOT/iOS.Device.Aot.Test.csproj /p:UseNativeAOTRuntime=true /p:RunAOTCompilation=false /p:RuntimeFlavor=CoreCLR
    

    Fails with:

    /Users/ivan/repos/runtime-naot/src/mono/msbuild/apple/build/AppleBuild.targets(279,11): error MSB4057: The target "SetupProperties" does not exist in the project. [/Users/ivan/repos/runtime-naot/src/tests/FunctionalTests/iOS/Device/AOT/iOS.Device.Aot.Test.csproj]
    

Tasks

  • Enable running libraries and functional tests on CI for maccatalyst, iossimulators and tvossimulators with NativeAOT
  • Enable building/running libraries and functional tests locally for all iOS-like platforms with NativeAOT

NOTE: Linking relevant changes needed to run a functional test locally: https://github.com/dotnet/runtime/pull/93658/files#diff-0360540626912334f1c240468f218cbeb3966bbbc7d809fdbac435b1b5e3a95eR34-R53

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions