Beispiel #1
0
        public override bool Stop(bool success)
        {
            _updateTimer.Stop();
            _updateTimer = null;

            UpdateQuality();
            MainWindow.NewNightlyRun = _lastRun = null;
            return(true);
        }
Beispiel #2
0
        private static string GetRunDisplayText(Summary.Run run)
        {
            var text = run.Date.ToString("M/d  h:mm tt");

            if (!string.IsNullOrEmpty(run.Revision))
            {
                text += "    (rev. " + run.Revision + ")";
            }
            return(text);
        }
Beispiel #3
0
        public void AddRun(Summary.Run run, ComboBox combo)
        {
            var text = run.Date.ToString("M/d  h:mm tt");

            if (run.Revision > 0)
            {
                text += "    (rev. " + run.Revision + ")";
            }
            combo.Items.Insert(0, text);
        }
Beispiel #4
0
        private void StartQuality()
        {
            _labels.Clear();
            _findTest.Clear();

            MainWindow.SetStatus("Running quality pass...");
            MainWindow.ResetElapsedTime();

            MainWindow.TestsRun = 0;

            MainWindow.CommandShell.LogFile = MainWindow.DefaultLogFile;
            if (File.Exists(MainWindow.DefaultLogFile))
            {
                Try.Multi <Exception>(() => File.Delete(MainWindow.DefaultLogFile), 4, false);
            }
            MainWindow.NewNightlyRun = _lastRun = new Summary.Run
            {
                Date = DateTime.Now
            };

            StartLog("Quality", MainWindow.DefaultLogFile);

            _updateTimer = new Timer {
                Interval = 300
            };
            _updateTimer.Tick += (s, a) => RunUI(UpdateQuality);
            _updateTimer.Start();

            var args = "offscreen=on quality=on{0} pass0={1} pass1={2} {3}{4}{5}".With(
                MainWindow.QualityPassDefinite.Checked ? " loop=" + int.Parse(MainWindow.QualityPassCount.Text) : "",
                MainWindow.Pass0.Checked.ToString(),
                MainWindow.Pass1.Checked.ToString(),
                MainWindow.QualityChooseTests.Checked ? TabTests.GetTestList() : "",
                MainWindow.QualityChooseTests.Checked ? " perftests=on" : "",  // In case any perf tests are explicitly selected - no harm if they aren't
                MainWindow.QualityRunSmallMoleculeVersions.Checked ? " runsmallmoleculeversions=on" : "",
                MainWindow.QualityAddSmallMoleculeNodes.Checked ? " testsmallmolecules=on" : "");

            MainWindow.AddTestRunner(args);

            MainWindow.RunCommands();
        }
Beispiel #5
0
 public void UpdateRun(Summary.Run run, ComboBox combo)
 {
     combo.Items[0] = GetRunDisplayText(run);
 }
Beispiel #6
0
 public void AddRun(Summary.Run run, ComboBox combo)
 {
     combo.Items.Insert(0, GetRunDisplayText(run));
 }
Beispiel #7
0
        public override bool Stop(bool success)
        {
            _updateTimer.Stop();
            _updateTimer = null;

            UpdateQuality();
            MainWindow.NewNightlyRun = _lastRun = null;
            return true;
        }
Beispiel #8
0
        private void StartQuality()
        {
            _labels.Clear();
            _findTest.Clear();

            MainWindow.SetStatus("Running quality pass...");
            MainWindow.ResetElapsedTime();

            MainWindow.TestsRun = 0;

            MainWindow.CommandShell.LogFile = MainWindow.DefaultLogFile;
            if (File.Exists(MainWindow.DefaultLogFile))
                Try.Multi<Exception>(() => File.Delete(MainWindow.DefaultLogFile), 4, false);
            MainWindow.NewNightlyRun = _lastRun = new Summary.Run
            {
                Date = DateTime.Now
            };

            StartLog("Quality", MainWindow.DefaultLogFile);

            _updateTimer = new Timer {Interval = 300};
            _updateTimer.Tick += (s, a) => RunUI(UpdateQuality);
            _updateTimer.Start();

            var args = "offscreen=on quality=on{0} pass0={1} pass1={2} {3}{4}{5}".With(
                MainWindow.QualityPassDefinite.Checked ? " loop=" + int.Parse(MainWindow.QualityPassCount.Text) : "",
                MainWindow.Pass0.Checked.ToString(),
                MainWindow.Pass1.Checked.ToString(),
                MainWindow.QualityChooseTests.Checked ? TabTests.GetTestList() : "",
                MainWindow.QualityChooseTests.Checked ? " perftests=on" : "",  // In case any perf tests are explicitly selected - no harm if they aren't
                MainWindow.QualtityTestSmallMolecules.Checked ? " testsmallmolecules=on" : "");
            MainWindow.AddTestRunner(args);

            MainWindow.RunCommands();
        }