From 47aa69a6e94c93af41917098896cf8971fb2f142 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 12 Dec 2024 11:22:29 +0100 Subject: [PATCH] [tests] Add test for building with NativeAOT from Windows (remotely). --- tests/dotnet/UnitTests/ProjectTest.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/dotnet/UnitTests/ProjectTest.cs b/tests/dotnet/UnitTests/ProjectTest.cs index ae6367b58715..c68431b60cf3 100644 --- a/tests/dotnet/UnitTests/ProjectTest.cs +++ b/tests/dotnet/UnitTests/ProjectTest.cs @@ -2024,6 +2024,20 @@ public void BuildMyNativeAotAppWithTrimAnalysisWarning (ApplePlatform platform, [TestCase (ApplePlatform.TVOS, "tvossimulator-x64", "Debug")] [TestCase (ApplePlatform.TVOS, "tvossimulator-x64", "Release")] public void PublishAot (ApplePlatform platform, string runtimeIdentifiers, string configuration) + { + PublishAotImpl (platform, runtimeIdentifiers, configuration); + } + + [TestCase (ApplePlatform.iOS, "ios-arm64", "Release")] + [Category ("RemoteWindows")] + public void PublishAotOnWindows (ApplePlatform platform, string runtimeIdentifiers, string configuration) + { + Configuration.IgnoreIfNotOnWindows (); + + PublishAotImpl (platform, runtimeIdentifiers, configuration); + } + + void PublishAotImpl (ApplePlatform platform, string runtimeIdentifiers, string configuration) { var project = "MySimpleApp"; Configuration.IgnoreIfIgnoredPlatform (platform);