diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 21c306e3a9e999..1862f4493ba8c2 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -170,7 +170,9 @@ - + + @@ -180,6 +182,10 @@ + + + diff --git a/src/tests/FunctionalTests/iOS/Simulator/AOT/Program.cs b/src/tests/FunctionalTests/iOS/Simulator/AOT/Program.cs new file mode 100644 index 00000000000000..437f6843a36fc7 --- /dev/null +++ b/src/tests/FunctionalTests/iOS/Simulator/AOT/Program.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Runtime.InteropServices; + +public static class Program +{ + [DllImport("__Internal")] + public static extern void mono_ios_set_summary (string value); + + public static async Task Main(string[] args) + { + mono_ios_set_summary($"Starting functional test"); + Console.WriteLine("Done!"); + await Task.Delay(5000); + + return 42; + } +} diff --git a/src/tests/FunctionalTests/iOS/Simulator/AOT/iOS.Simulator.Aot.Test.csproj b/src/tests/FunctionalTests/iOS/Simulator/AOT/iOS.Simulator.Aot.Test.csproj new file mode 100644 index 00000000000000..c2df960184d6d5 --- /dev/null +++ b/src/tests/FunctionalTests/iOS/Simulator/AOT/iOS.Simulator.Aot.Test.csproj @@ -0,0 +1,18 @@ + + + + Exe + false + true + true + $(NetCoreAppCurrent) + iOSSimulator + iOS.Simulator.Aot.Test.dll + false + 42 + + + + + + diff --git a/src/tests/FunctionalTests/tvOS/Simulator/AOT/Program.cs b/src/tests/FunctionalTests/tvOS/Simulator/AOT/Program.cs new file mode 100644 index 00000000000000..437f6843a36fc7 --- /dev/null +++ b/src/tests/FunctionalTests/tvOS/Simulator/AOT/Program.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Runtime.InteropServices; + +public static class Program +{ + [DllImport("__Internal")] + public static extern void mono_ios_set_summary (string value); + + public static async Task Main(string[] args) + { + mono_ios_set_summary($"Starting functional test"); + Console.WriteLine("Done!"); + await Task.Delay(5000); + + return 42; + } +} diff --git a/src/tests/FunctionalTests/tvOS/Simulator/AOT/tvOS.Simulator.Aot.Test.csproj b/src/tests/FunctionalTests/tvOS/Simulator/AOT/tvOS.Simulator.Aot.Test.csproj new file mode 100644 index 00000000000000..66d83fd77151ae --- /dev/null +++ b/src/tests/FunctionalTests/tvOS/Simulator/AOT/tvOS.Simulator.Aot.Test.csproj @@ -0,0 +1,17 @@ + + + + Exe + false + true + true + $(NetCoreAppCurrent) + tvOS.Simulator.Aot.Test.dll + false + 42 + + + + + +