mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
.
This commit is contained in:
parent
1154900a9b
commit
9e33bac822
2 changed files with 24 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace Cosmos.TestRunner.Core
|
namespace Cosmos.TestRunner.Core
|
||||||
{
|
{
|
||||||
|
|
@ -14,17 +15,28 @@ 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 exclude a testing platform, modify uncomment and modify the following line
|
||||||
engine.RunTargets.Remove(RunTargetEnum.Bochs);
|
engine.RunTargets.Remove(RunTargetEnum.VMware);
|
||||||
|
|
||||||
// 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!
|
||||||
engine.RunIL2CPUInProcess = true;
|
engine.RunIL2CPUInProcess = false;
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
|
// end of known bugs
|
||||||
|
|
||||||
|
// double check: this check is in the engine, but lets put it here as well
|
||||||
|
if (engine.RunIL2CPUInProcess)
|
||||||
|
{
|
||||||
|
if (engine.KernelsToRun.Count() > 1)
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException("Can only run 1 kernel if IL2CPU is ran in-process!");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,14 @@ namespace Cosmos.TestRunner.Core
|
||||||
// configuration: in process eases debugging, but means certain errors (like stack overflow) kill the test runner.
|
// configuration: in process eases debugging, but means certain errors (like stack overflow) kill the test runner.
|
||||||
public bool RunIL2CPUInProcess = false;
|
public bool RunIL2CPUInProcess = false;
|
||||||
|
|
||||||
|
public IEnumerable<string> KernelsToRun
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return mKernelsToRun;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private List<string> mKernelsToRun = new List<string>();
|
private List<string> mKernelsToRun = new List<string>();
|
||||||
public void AddKernel(string assemblyFile)
|
public void AddKernel(string assemblyFile)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue