Tiny fix related to run targets of the kernel tester.

This commit is contained in:
Matthijs ter Woord 2015-07-23 16:44:32 -04:00
parent 54bbf40f31
commit b41aa6aa4b
3 changed files with 8 additions and 3 deletions

View file

@ -14,8 +14,8 @@ namespace Cosmos.TestRunner.Core
engine.AllowedSecondsInKernel = 120;
// If you want to exclude a testing platform, modify uncomment and modify the following line
//engine.RunTargets.Remove(RunTargetEnum.VMware);
// If you want to test only specific platforms, add them to the list, like next line. By default, all platforms are ran.
// engine.RunTargets.Add(RunTargetEnum.Bochs);
// if you're working on the compiler (or other lower parts), you can choose to run the compiler in process
// 1 thing to keep in mind though, is that this only works with 1 kernel at a time!

View file

@ -15,7 +15,7 @@ namespace Cosmos.TestRunner.Core
partial class Engine
{
public int AllowedSecondsInKernel = 30;
public List<RunTargetEnum> RunTargets = new List<RunTargetEnum>((RunTargetEnum[])Enum.GetValues(typeof(RunTargetEnum)));
public List<RunTargetEnum> RunTargets = new List<RunTargetEnum>();
private void ExecuteKernel(string assemblyFileName, RunConfiguration configuration)
{

View file

@ -43,6 +43,11 @@ namespace Cosmos.TestRunner.Core
throw new InvalidOperationException("No OutputHandler set!");
}
if (RunTargets.Count == 0)
{
RunTargets.AddRange((RunTargetEnum[])Enum.GetValues(typeof(RunTargetEnum)));
}
OutputHandler.ExecutionStart();
try
{