mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-04 23:31:37 +00:00
Tiny fix related to run targets of the kernel tester.
This commit is contained in:
parent
54bbf40f31
commit
b41aa6aa4b
3 changed files with 8 additions and 3 deletions
|
|
@ -14,8 +14,8 @@ namespace Cosmos.TestRunner.Core
|
||||||
|
|
||||||
engine.AllowedSecondsInKernel = 120;
|
engine.AllowedSecondsInKernel = 120;
|
||||||
|
|
||||||
// If you want to exclude a testing platform, modify uncomment and modify the following line
|
// If you want to test only specific platforms, add them to the list, like next line. By default, all platforms are ran.
|
||||||
//engine.RunTargets.Remove(RunTargetEnum.VMware);
|
// 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
|
// 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!
|
// 1 thing to keep in mind though, is that this only works with 1 kernel at a time!
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ namespace Cosmos.TestRunner.Core
|
||||||
partial class Engine
|
partial class Engine
|
||||||
{
|
{
|
||||||
public int AllowedSecondsInKernel = 30;
|
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)
|
private void ExecuteKernel(string assemblyFileName, RunConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,11 @@ namespace Cosmos.TestRunner.Core
|
||||||
throw new InvalidOperationException("No OutputHandler set!");
|
throw new InvalidOperationException("No OutputHandler set!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (RunTargets.Count == 0)
|
||||||
|
{
|
||||||
|
RunTargets.AddRange((RunTargetEnum[])Enum.GetValues(typeof(RunTargetEnum)));
|
||||||
|
}
|
||||||
|
|
||||||
OutputHandler.ExecutionStart();
|
OutputHandler.ExecutionStart();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue