mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Specialized;
|
|
using System.IO;
|
|
using System.Threading;
|
|
using Cosmos.Build.Common;
|
|
using Cosmos.Debug.Common;
|
|
using Cosmos.Debug.VSDebugEngine.Host;
|
|
|
|
namespace Cosmos.TestRunner.Core
|
|
{
|
|
partial class Engine
|
|
{
|
|
private void RunIsoInVMware(string iso, string harddisk)
|
|
{
|
|
if (!File.Exists(harddisk))
|
|
{
|
|
throw new FileNotFoundException("Harddisk file not found!", harddisk);
|
|
}
|
|
|
|
var xParams = new NameValueCollection();
|
|
|
|
xParams.Add("ISOFile", iso);
|
|
xParams.Add(BuildPropertyNames.VisualStudioDebugPortString, "Pipe: Cosmos\\Serial");
|
|
xParams.Add(BuildPropertyNames.VMwareEditionString, "Workstation");
|
|
|
|
var xDebugConnector = new DebugConnectorPipeServer(DebugConnectorPipeServer.DefaultCosmosPipeName);
|
|
InitializeDebugConnector(xDebugConnector);
|
|
|
|
var xVMware = new VMware(xParams, RunWithGDB, harddisk);
|
|
xVMware.OnShutDown = (a, b) =>
|
|
{
|
|
};
|
|
|
|
HandleRunning(xDebugConnector, xVMware);
|
|
}
|
|
}
|
|
}
|