This commit is contained in:
Matthijs ter Woord 2015-07-23 11:42:46 -04:00
parent 1154900a9b
commit 9e33bac822
2 changed files with 24 additions and 4 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Linq;
namespace Cosmos.TestRunner.Core
{
@ -14,17 +15,28 @@ 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.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
// 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(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:
// 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!");
}
}
}
}
}

View file

@ -14,6 +14,14 @@ namespace Cosmos.TestRunner.Core
// configuration: in process eases debugging, but means certain errors (like stack overflow) kill the test runner.
public bool RunIL2CPUInProcess = false;
public IEnumerable<string> KernelsToRun
{
get
{
return mKernelsToRun;
}
}
private List<string> mKernelsToRun = new List<string>();
public void AddKernel(string assemblyFile)
{