Change configuration of the tester engine. Now you can enable/disable run targets.

This commit is contained in:
Matthijs ter Woord 2015-07-20 15:00:21 +02:00
parent e0d3f0debc
commit 27ea82b4df
3 changed files with 13 additions and 11 deletions

View file

@ -13,9 +13,12 @@ namespace Cosmos.TestRunner.Core
engine.AllowedSecondsInKernel = 30; engine.AllowedSecondsInKernel = 30;
// Currently, there's still a bug somewhere for testing vmware.
engine.RunTargets.Remove(RunTargetEnum.VMware);
engine.AddKernel(typeof(Cosmos.Compiler.Tests.SimpleWriteLine.Kernel.Kernel).Assembly.Location); engine.AddKernel(typeof(Cosmos.Compiler.Tests.SimpleWriteLine.Kernel.Kernel).Assembly.Location);
//engine.AddKernel(typeof(SimpleStructsAndArraysTest.Kernel).Assembly.Location); engine.AddKernel(typeof(SimpleStructsAndArraysTest.Kernel).Assembly.Location);
//engine.AddKernel(typeof(VGACompilerCrash.Kernel).Assembly.Location); engine.AddKernel(typeof(VGACompilerCrash.Kernel).Assembly.Location);
// known bugs, therefor disabled for now: // known bugs, therefor disabled for now:
} }

View file

@ -1,4 +1,5 @@
using System; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using Cosmos.Build.Common; using Cosmos.Build.Common;
using Cosmos.Build.MSBuild; using Cosmos.Build.MSBuild;
@ -13,7 +14,8 @@ namespace Cosmos.TestRunner.Core
{ {
partial class Engine partial class Engine
{ {
public int AllowedSecondsInKernel; public int AllowedSecondsInKernel = 30;
public List<RunTargetEnum> RunTargets = new List<RunTargetEnum>((RunTargetEnum[])Enum.GetValues(typeof(RunTargetEnum)));
private void ExecuteKernel(string assemblyFileName, RunConfiguration configuration) private void ExecuteKernel(string assemblyFileName, RunConfiguration configuration)
{ {

View file

@ -80,14 +80,11 @@ namespace Cosmos.TestRunner.Core
private IEnumerable<RunConfiguration> GetRunConfigurations() private IEnumerable<RunConfiguration> GetRunConfigurations()
{ {
//yield return new RunConfiguration { IsELF = true, RunTarget = RunTargetEnum.VMware }; foreach (RunTargetEnum xTarget in RunTargets)
yield return new RunConfiguration { IsELF = true, RunTarget = RunTargetEnum.Bochs }; {
yield return new RunConfiguration { IsELF = true, RunTarget = xTarget };
//foreach (RunTargetEnum xTarget in Enum.GetValues(typeof(RunTargetEnum))) //yield return new RunConfiguration { IsELF = false, RunTarget = xTarget };
//{ }
// yield return new RunConfiguration {IsELF = true, RunTarget = xTarget};
// //yield return new RunConfiguration { IsELF = false, RunTarget = xTarget };
//}
} }
} }
} }