diff --git a/Testing/Info.plist b/Testing/Info.plist index 0c67376e..3d13f7b5 100644 --- a/Testing/Info.plist +++ b/Testing/Info.plist @@ -1,5 +1,12 @@ - + + CFBundleIdentifier + com.yourcompany.MacTestRunner + LSMinimumSystemVersion + 10.12 + NSHighResolutionCapable + true + diff --git a/Testing/MacTestRunner.csproj b/Testing/MacTestRunner.csproj index e25404e2..01d342df 100644 --- a/Testing/MacTestRunner.csproj +++ b/Testing/MacTestRunner.csproj @@ -3,14 +3,14 @@ Debug AnyCPU - {0017C823-67F6-4DFA-8C2C-E23CD1E33D8F} - {948B3504-5B70-4649-8FE4-BDE1FB46EC69};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {3A01E7BF-BB41-46AC-B04A-201935F2CA99} + {A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Exe MacTestRunner Resources MacTestRunner - True - True + true + v4.5 bin\MacTestRunner.app @@ -76,16 +76,11 @@ ..\packages\NUnit.Runners.2.6.4\tools\lib\nunit-console-runner.dll - - \Library\Frameworks\Xamarin.Mac.framework\Versions\Current\lib\x86_64\full\Xamarin.Mac.dll - + - - - @@ -94,7 +89,7 @@ - + {92494904-35FA-4DC9-BDE9-3A3E87AC49D3} diff --git a/Testing/MacTestRunner/Main.cs b/Testing/MacTestRunner/Main.cs index 2e474b21..dacd5b69 100644 --- a/Testing/MacTestRunner/Main.cs +++ b/Testing/MacTestRunner/Main.cs @@ -1,5 +1,8 @@ using Xwt; using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.IO; namespace MacTest { @@ -7,15 +10,14 @@ namespace MacTest { static int Main (string [] args) { - //FIXME: remove this once mmp summorts xammac - ObjCRuntime.Dlfcn.dlopen ("/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac.dylib", 0); - - var list = new List (args); + var assemblyName = Path.GetFileName(typeof(MainClass).Assembly.Location); + var list = new List (args.Where (arg => !arg.StartsWith ("-psn_", System.StringComparison.Ordinal) && !arg.EndsWith(assemblyName, System.StringComparison.Ordinal))); list.Add ("-domain=None"); list.Add ("-noshadow"); list.Add ("-nothread"); - // if (!list.Contains (typeof (MainClass).Assembly.Location)) - // list.Add (typeof (MainClass).Assembly.Location); + + if (!list.Contains (typeof (MainClass).Assembly.Location)) + list.Add (typeof (MainClass).Assembly.Location); bool skipImageVerification = list.Remove ("-no-image-verify");