Ejemplo n.º 1
0
 internal AbstractAction(Test test, TestExecutionContext initialCtx, IncrementalTestRunner runner)
 {
     this.test       = test;
     this.runner     = runner;
     this.initialCtx = initialCtx;
     this.testResult = test.MakeTestResult();
 }
Ejemplo n.º 2
0
    public static bool PumpTest(string name)
    {
        if (name == "tp")
        {
            return(TPPump());
        }
        if (name == "dele")
        {
            return(DelePump());
        }
        if (name == "gc")
        {
            return(GcPump());
        }

        if (testRunner == null)
        {
            return(false);
        }
        try {
            bool res = testRunner.Step();
            if (!res)
            {
                testRunner = null;
            }
            return(res);
        } catch (Exception e) {
            Console.WriteLine(e);
            return(true);
        }
    }
Ejemplo n.º 3
0
 internal AbstractAction(Test test, AbstractAction parent, IncrementalTestRunner runner)
 {
     this.test       = test;
     this.runner     = runner;
     this.parent     = parent;
     this.initialCtx = parent.context;
     this.testResult = test.MakeTestResult();
 }
Ejemplo n.º 4
0
    public static void StartTest(string name)
    {
        var baseDir = AppDomain.CurrentDomain.BaseDirectory;

        if (testRunner != null)
        {
            throw new Exception("Test in progress");
        }

        string extra_disable = "";

        string[] args           = name.Split(',');
        var      testsuite_name = suites.Where(ts => ts.Name == args [0]).Select(ts => ts.File).FirstOrDefault();

        if (testsuite_name == null)
        {
            throw new Exception("NO SUITE NAMED " + args [0]);
        }

        string test_name = null;
        int?   range     = null;

        for (int i = 1; i < args.Length; ++i)
        {
            int r;
            if (int.TryParse(args [i], out r))
            {
                range = r;
            }
            else
            {
                test_name = args [i];
            }
        }

        testRunner = new IncrementalTestRunner();
        // testRunner.PrintLabels ();
        // if (test_name != null)
        //  testRunner.RunTest (test_name);

        testRunner.Exclude("WASM,NotWorking,ValueAdd,CAS,InetAccess");
        testRunner.Add(Assembly.LoadFrom(baseDir + "/" + testsuite_name));
        // testRunner.RunOnly ("MonoTests.System.Threading.AutoResetEventTest.MultipleSet");

        testRunner.Start(10);
    }
Ejemplo n.º 5
0
 public static bool PumpTest()
 {
     if (testRunner == null)
     {
         return(false);
     }
     try {
         bool res = testRunner.Step();
         if (!res)
         {
             testRunner = null;
         }
         return(res);
     } catch (Exception e) {
         Console.WriteLine(e);
         return(true);
     }
 }
Ejemplo n.º 6
0
    public static void StartTest(string name)
    {
        var baseDir = AppDomain.CurrentDomain.BaseDirectory;

        if (testRunner != null)
        {
            throw new Exception("Test in progress");
        }

        if (name == "tp")
        {
            TPStart();
            return;
        }
        if (name == "dele")
        {
            DeleStart();
            return;
        }
        if (name == "gc")
        {
            GcStart();
            return;
        }
        if (name == "timer")
        {
            TimerStart();
            return;
        }

        string extra_disable = "";

        latest_test_result = "IN-PROGRESS";

        string[] args           = name.Split(',');
        var      testsuite_name = suites.Where(ts => ts.Name == args [0]).Select(ts => ts.File).FirstOrDefault();

        if (testsuite_name == null)
        {
            throw new Exception("NO SUITE NAMED " + args [0]);
        }

        string test_name = null;
        int?   range     = null;

        for (int i = 1; i < args.Length; ++i)
        {
            int r;
            if (int.TryParse(args [i], out r))
            {
                range = r;
            }
            else
            {
                test_name = args [i];
            }
        }

        testRunner = new IncrementalTestRunner();
        // testRunner.PrintLabels ();
        // if (test_name != null)
        //  testRunner.RunTest (test_name);

        testRunner.Exclude("NotWasm,WASM,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingRuntimeInterpreter,MultiThreaded");
        testRunner.Add(Assembly.LoadFrom(baseDir + "/" + testsuite_name));
        // testRunner.RunOnly ("MonoTests.System.Threading.AutoResetEventTest.MultipleSet");

        // This is useful if you need to skip to the middle of a huge test suite like corlib.
        // testRunner.SkipFirst (4550);
        testRunner.Start(10);
    }
Ejemplo n.º 7
0
 public TestSuiteAction(TestSuite test, TestExecutionContext initialCtx, IncrementalTestRunner runner) : base(test, initialCtx, runner)
 {
     this.testSuite = test;
 }
Ejemplo n.º 8
0
 public TestSuiteAction(TestSuite test, AbstractAction parent, IncrementalTestRunner runner) : base(test, parent, runner)
 {
     this.testSuite = test;
 }
Ejemplo n.º 9
0
 public TestAction(TestMethod test, AbstractAction parent, IncrementalTestRunner runner) : base(test, parent, runner)
 {
     this.test = test;
 }