mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
apparently, something weird was goofed up on mainwindow.xaml. changed testrunner slightly, to allow turning off running kernels through qemu
This commit is contained in:
parent
d5df4d7d49
commit
bbda2a8639
1 changed files with 30 additions and 20 deletions
|
|
@ -26,6 +26,11 @@ namespace Cosmos.TestRunner {
|
|||
public bool Succeeded;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines if the test runner should run the kernel using qemu, or only compile (Basically useful for profiling purposes)
|
||||
/// </summary>
|
||||
private const bool RunKernel = true;
|
||||
public static void Main() {
|
||||
try {
|
||||
Initialize();
|
||||
|
|
@ -44,12 +49,17 @@ namespace Cosmos.TestRunner {
|
|||
xBuilder.CompileCompleted += delegate { xEvent.Set(); };
|
||||
xBuilder.BeginCompile(DebugMode.None, 0, false);
|
||||
xEvent.WaitOne();
|
||||
if (RunKernel) {
|
||||
xBuilder.Assemble();
|
||||
xBuilder.Link();
|
||||
xBuilder.MakeISO();
|
||||
var xISOFile = Path.Combine(xBuilder.BuildPath, "Cosmos.iso");
|
||||
// run qemu
|
||||
xReturn = RunKernel(xItem.Key, xBuilder, xItem.Value, out xMessage);
|
||||
} else {
|
||||
xReturn = true;
|
||||
xMessage = "";
|
||||
}
|
||||
} catch (Exception E) {
|
||||
xMessage = E.ToString();
|
||||
xReturn = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue