mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
Change configuration of the tester engine. Now you can enable/disable run targets.
This commit is contained in:
parent
e0d3f0debc
commit
27ea82b4df
3 changed files with 13 additions and 11 deletions
|
|
@ -13,9 +13,12 @@ namespace Cosmos.TestRunner.Core
|
|||
|
||||
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(SimpleStructsAndArraysTest.Kernel).Assembly.Location);
|
||||
//engine.AddKernel(typeof(VGACompilerCrash.Kernel).Assembly.Location);
|
||||
engine.AddKernel(typeof(SimpleStructsAndArraysTest.Kernel).Assembly.Location);
|
||||
engine.AddKernel(typeof(VGACompilerCrash.Kernel).Assembly.Location);
|
||||
|
||||
// known bugs, therefor disabled for now:
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Cosmos.Build.Common;
|
||||
using Cosmos.Build.MSBuild;
|
||||
|
|
@ -13,7 +14,8 @@ namespace Cosmos.TestRunner.Core
|
|||
{
|
||||
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,14 +80,11 @@ namespace Cosmos.TestRunner.Core
|
|||
|
||||
private IEnumerable<RunConfiguration> GetRunConfigurations()
|
||||
{
|
||||
//yield return new RunConfiguration { IsELF = true, RunTarget = RunTargetEnum.VMware };
|
||||
yield return new RunConfiguration { IsELF = true, RunTarget = RunTargetEnum.Bochs };
|
||||
|
||||
//foreach (RunTargetEnum xTarget in Enum.GetValues(typeof(RunTargetEnum)))
|
||||
//{
|
||||
// yield return new RunConfiguration {IsELF = true, RunTarget = xTarget};
|
||||
// //yield return new RunConfiguration { IsELF = false, RunTarget = xTarget };
|
||||
//}
|
||||
foreach (RunTargetEnum xTarget in RunTargets)
|
||||
{
|
||||
yield return new RunConfiguration { IsELF = true, RunTarget = xTarget };
|
||||
//yield return new RunConfiguration { IsELF = false, RunTarget = xTarget };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue