diff --git a/tests/monotouch-test/dotnet/iOS/Makefile b/tests/monotouch-test/dotnet/iOS/Makefile index 64ff0f20240a..5b804d041467 100644 --- a/tests/monotouch-test/dotnet/iOS/Makefile +++ b/tests/monotouch-test/dotnet/iOS/Makefile @@ -14,3 +14,9 @@ norm: run-norm: $(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:MtouchLink=SdkOnly /p:Configuration=Release-norm /bl:$@.binlog /t:Run" + +nativeaot: + $(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:PublishAot=true /p:MtouchLink=SdkOnly /p:Configuration=Release /bl:$@.binlog" + +run-nativeaot: + $(Q) $(MAKE) build BUILD_ARGUMENTS="/p:RuntimeIdentifier=ios-arm64 /p:PublishAot=true /p:MtouchLink=SdkOnly /p:Configuration=Release /bl:$@.binlog /t:Run" diff --git a/tests/xharness/Jenkins/TestData.cs b/tests/xharness/Jenkins/TestData.cs index a34323d7e996..8bf283635e29 100644 --- a/tests/xharness/Jenkins/TestData.cs +++ b/tests/xharness/Jenkins/TestData.cs @@ -24,5 +24,6 @@ class TestData { public string XamMacArch; public string RuntimeIdentifier; public string Registrar; + public bool PublishAot; // NativeAOT } } diff --git a/tests/xharness/Jenkins/TestVariationsFactory.cs b/tests/xharness/Jenkins/TestVariationsFactory.cs index 5f5e89bf533c..666f02acc62d 100644 --- a/tests/xharness/Jenkins/TestVariationsFactory.cs +++ b/tests/xharness/Jenkins/TestVariationsFactory.cs @@ -98,6 +98,8 @@ IEnumerable GetTestData (RunTestTask test) } if (test.TestProject.IsDotNetProject) yield return new TestData { Variation = "Release (LLVM)", Debug = false, UseLlvm = true, Ignored = ignore }; + if (test.Platform == TestPlatform.iOS && test.TestProject.IsDotNetProject) + yield return new TestData { Variation = "Release (NativeAOT)", Debug = false, PublishAot = true, Ignored = ignore }; break; case string name when name.StartsWith ("mscorlib", StringComparison.Ordinal): if (supports_debug) @@ -209,6 +211,7 @@ public IEnumerable CreateTestVariations (IEnumerable tests, Func CreateTestVariations (IEnumerable tests, Func