|
|
@@ -20,9 +20,49 @@ namespace MoonSharpTests
|
|
|
public const string RESTRICT_TEST = null; //"Interop_StaticInstanceAccessRaisesError";
|
|
|
public const string LOG_ON_FILE = "moonsharp_tests.log";
|
|
|
|
|
|
+ // Tests skipped on all platforms
|
|
|
+ static List<string> SKIPLIST = new List<string>()
|
|
|
+ {
|
|
|
+ "TestMore_308_io", // avoid interactions with low level system
|
|
|
+ "TestMore_309_os", // avoid interactions with low level system
|
|
|
+ };
|
|
|
+
|
|
|
+ // Tests skipped on AOT platforms - known not workings :(
|
|
|
+ static List<string> AOT_SKIPLIST = new List<string>()
|
|
|
+ {
|
|
|
+ "VInterop_NIntPropertySetter_None",
|
|
|
+ "VInterop_NIntPropertySetter_Lazy",
|
|
|
+ "VInterop_NIntPropertySetter_Precomputed",
|
|
|
+ "VInterop_Overloads_NumDowncast",
|
|
|
+ "VInterop_Overloads_NilSelectsNonOptional",
|
|
|
+ "VInterop_Overloads_FullDecl",
|
|
|
+ "VInterop_Overloads_Static2",
|
|
|
+ "VInterop_Overloads_Cache1",
|
|
|
+ "VInterop_Overloads_Cache2",
|
|
|
+ "VInterop_ConcatMethod_None",
|
|
|
+ "VInterop_ConcatMethod_Lazy",
|
|
|
+ "VInterop_ConcatMethod_Precomputed",
|
|
|
+ "VInterop_ConcatMethodSemicolon_None",
|
|
|
+ "VInterop_ConcatMethodSemicolon_Lazy",
|
|
|
+ "VInterop_ConcatMethodSemicolon_Precomputed",
|
|
|
+ "VInterop_ConstructorAndConcatMethodSemicolon_None",
|
|
|
+ "VInterop_ConstructorAndConcatMethodSemicolon_Lazy",
|
|
|
+ "VInterop_ConstructorAndConcatMethodSemicolon_Precomputed",
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
|
|
|
static int Main(string[] args)
|
|
|
{
|
|
|
+ Console.ForegroundColor = ConsoleColor.Magenta;
|
|
|
+
|
|
|
+ Console.WriteLine("====================================================================================");
|
|
|
+ Console.WriteLine("====================================================================================");
|
|
|
+ Console.WriteLine("====================================================================================");
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine();
|
|
|
+
|
|
|
try
|
|
|
{
|
|
|
TestRunner T = new TestRunner(Log);
|
|
|
@@ -30,9 +70,18 @@ namespace MoonSharpTests
|
|
|
if (LOG_ON_FILE != null)
|
|
|
File.WriteAllText(LOG_ON_FILE, "");
|
|
|
|
|
|
- Console_WriteLine("Running on AOT : {0}", Script.GlobalOptions.Platform.IsRunningOnAOT());
|
|
|
+ Console.ForegroundColor = ConsoleColor.Cyan;
|
|
|
+ Console.WriteLine("Running on AOT : {0}", Script.GlobalOptions.Platform.IsRunningOnAOT());
|
|
|
+
|
|
|
+ if (Script.GlobalOptions.Platform.IsRunningOnAOT())
|
|
|
+ {
|
|
|
+ SKIPLIST.AddRange(AOT_SKIPLIST);
|
|
|
+ }
|
|
|
+
|
|
|
+ Console.WriteLine();
|
|
|
+ Console.WriteLine();
|
|
|
|
|
|
- T.Test(RESTRICT_TEST);
|
|
|
+ T.Test(RESTRICT_TEST, SKIPLIST.ToArray());
|
|
|
|
|
|
if (Debugger.IsAttached)
|
|
|
{
|
|
|
@@ -55,10 +104,12 @@ namespace MoonSharpTests
|
|
|
{
|
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
|
|
|
|
+ Console.WriteLine();
|
|
|
if (r.Exception!= null)
|
|
|
Console_WriteLine("{0} - {1}", r.TestName, r.Exception);
|
|
|
else
|
|
|
Console_WriteLine("{0} - {1}", r.TestName, r.Message);
|
|
|
+ Console.WriteLine();
|
|
|
}
|
|
|
else if (r.Type == TestResultType.Ok)
|
|
|
{
|