Esempio n. 1
0
 void BisectForm_Load(object sender, EventArgs e)
 {
     Task.Factory.StartNew(SetupAutoComplete);
     cbBenchmark.Items.AddRange(Benchmark.GetBenchmarks(springPaths).ToArray());
     cbConfigs.Items.AddRange(Config.GetConfigs(springPaths).ToArray());
     cmbScripts.Items.AddRange(StartScript.GetStartScripts(springPaths).ToArray());
 }
 public TestCase(string engine, string game, string map, Config config, StartScript startScript) {
     Engine = engine;
     Game = game;
     Config = config;
     Map = map;
     StartScript = startScript;
 }
Esempio n. 3
0
 public TestCase(string engine, string game, string map, Config config, StartScript startScript)
 {
     Engine      = engine;
     Game        = game;
     Config      = config;
     Map         = map;
     StartScript = startScript;
 }
Esempio n. 4
0
        void RefreshBenchmarks()
        {
            benchmarkList.Items.Clear();
            benchmarkList.Items.AddRange(Benchmark.GetBenchmarks(springPaths, true).ToArray());

            cbConfigs.Items.Clear();
            cbConfigs.Items.AddRange(Config.GetConfigs(springPaths, true).ToArray());

            cmbScripts.Items.Clear();
            cmbScripts.Items.AddRange(StartScript.GetStartScripts(springPaths, true).ToArray());
        }
Esempio n. 5
0
        void PostLoad(SpringPaths paths)
        {
            Benchmarks =
                Benchmarks.Select(
                    x =>
                    Benchmark.GetBenchmarks(paths).SingleOrDefault(y => y.BenchmarkPath == x.BenchmarkPath) ??
                    Benchmark.GetBenchmarks(paths).First(y => y.Name == x.Name)).ToList();

            foreach (var tr in TestCases)
            {
                tr.Config = Config.GetConfigs(paths).SingleOrDefault(x => x.ConfigPath == tr.Config.ConfigPath) ??
                            Config.GetConfigs(paths).First(x => x.Name == tr.Config.Name);

                tr.StartScript = StartScript.GetStartScripts(paths).SingleOrDefault(x => x.ScriptPath == tr.StartScript.ScriptPath) ??
                                 StartScript.GetStartScripts(paths).First(x => x.Name == tr.StartScript.Name);
            }
        }