mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
Add DebugMode parameter
This commit is contained in:
parent
18ab8bdcc4
commit
e8eae64425
7 changed files with 5 additions and 68 deletions
|
|
@ -216,7 +216,7 @@ namespace Cosmos.TestRunner.Core
|
||||||
"EnableDebug:True",
|
"EnableDebug:True",
|
||||||
"EnableStackCorruptionDetection:" + EnableStackCorruptionChecks,
|
"EnableStackCorruptionDetection:" + EnableStackCorruptionChecks,
|
||||||
"StackCorruptionDetectionLevel:" + StackCorruptionDetectionLevel,
|
"StackCorruptionDetectionLevel:" + StackCorruptionDetectionLevel,
|
||||||
"DebugMode:Source",
|
"DebugMode:" + DebugMode,
|
||||||
"TraceAssemblies:" + TraceAssembliesLevel,
|
"TraceAssemblies:" + TraceAssembliesLevel,
|
||||||
"DebugCom:1",
|
"DebugCom:1",
|
||||||
"TargetAssembly:" + kernelFileName,
|
"TargetAssembly:" + kernelFileName,
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ namespace Cosmos.TestRunner.Core
|
||||||
protected TraceAssemblies TraceAssembliesLevel => mConfiguration.TraceAssembliesLevel;
|
protected TraceAssemblies TraceAssembliesLevel => mConfiguration.TraceAssembliesLevel;
|
||||||
protected bool EnableStackCorruptionChecks => mConfiguration.EnableStackCorruptionChecks;
|
protected bool EnableStackCorruptionChecks => mConfiguration.EnableStackCorruptionChecks;
|
||||||
protected StackCorruptionDetectionLevel StackCorruptionDetectionLevel => mConfiguration.StackCorruptionDetectionLevel;
|
protected StackCorruptionDetectionLevel StackCorruptionDetectionLevel => mConfiguration.StackCorruptionDetectionLevel;
|
||||||
|
protected DebugMode DebugMode => mConfiguration.DebugMode;
|
||||||
|
|
||||||
protected bool RunWithGDB => mConfiguration.RunWithGDB;
|
protected bool RunWithGDB => mConfiguration.RunWithGDB;
|
||||||
protected bool StartBochsDebugGui => mConfiguration.StartBochsDebugGUI;
|
protected bool StartBochsDebugGui => mConfiguration.StartBochsDebugGUI;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ namespace Cosmos.TestRunner.Core
|
||||||
TraceAssemblies TraceAssembliesLevel { get; }
|
TraceAssemblies TraceAssembliesLevel { get; }
|
||||||
bool EnableStackCorruptionChecks { get; }
|
bool EnableStackCorruptionChecks { get; }
|
||||||
StackCorruptionDetectionLevel StackCorruptionDetectionLevel { get; }
|
StackCorruptionDetectionLevel StackCorruptionDetectionLevel { get; }
|
||||||
|
DebugMode DebugMode { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An enumerable of kernel assemblies which will be run.
|
/// An enumerable of kernel assemblies which will be run.
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ namespace Cosmos.TestRunner.Full
|
||||||
public virtual TraceAssemblies TraceAssembliesLevel => TraceAssemblies.User;
|
public virtual TraceAssemblies TraceAssembliesLevel => TraceAssemblies.User;
|
||||||
public virtual bool EnableStackCorruptionChecks => true;
|
public virtual bool EnableStackCorruptionChecks => true;
|
||||||
public virtual StackCorruptionDetectionLevel StackCorruptionDetectionLevel => StackCorruptionDetectionLevel.AllInstructions;
|
public virtual StackCorruptionDetectionLevel StackCorruptionDetectionLevel => StackCorruptionDetectionLevel.AllInstructions;
|
||||||
|
public virtual DebugMode DebugMode => DebugMode.Source;
|
||||||
|
|
||||||
public virtual IEnumerable<string> KernelAssembliesToRun
|
public virtual IEnumerable<string> KernelAssembliesToRun
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ namespace Cosmos.TestRunner.TestAdapter
|
||||||
public TraceAssemblies TraceAssembliesLevel { get; }
|
public TraceAssemblies TraceAssembliesLevel { get; }
|
||||||
public bool EnableStackCorruptionChecks { get; }
|
public bool EnableStackCorruptionChecks { get; }
|
||||||
public StackCorruptionDetectionLevel StackCorruptionDetectionLevel { get; }
|
public StackCorruptionDetectionLevel StackCorruptionDetectionLevel { get; }
|
||||||
|
public DebugMode DebugMode { get; }
|
||||||
|
|
||||||
public IEnumerable<string> KernelAssembliesToRun { get; }
|
public IEnumerable<string> KernelAssembliesToRun { get; }
|
||||||
|
|
||||||
|
|
|
||||||
25
Tests/Cosmos.TestRunner/.vscode/launch.json
vendored
25
Tests/Cosmos.TestRunner/.vscode/launch.json
vendored
|
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": ".NET Core Launch (console)",
|
|
||||||
"type": "coreclr",
|
|
||||||
"request": "launch",
|
|
||||||
"preLaunchTask": "build",
|
|
||||||
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/Cosmos.TestRunner.dll",
|
|
||||||
"args": [],
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"console": "internalConsole",
|
|
||||||
"stopAtEntry": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": ".NET Core Attach",
|
|
||||||
"type": "coreclr",
|
|
||||||
"request": "attach",
|
|
||||||
"processId": "${command:pickProcess}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
42
Tests/Cosmos.TestRunner/.vscode/tasks.json
vendored
42
Tests/Cosmos.TestRunner/.vscode/tasks.json
vendored
|
|
@ -1,42 +0,0 @@
|
||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"tasks": [
|
|
||||||
{
|
|
||||||
"label": "build",
|
|
||||||
"command": "dotnet",
|
|
||||||
"type": "process",
|
|
||||||
"args": [
|
|
||||||
"build",
|
|
||||||
"${workspaceFolder}/Cosmos.TestRunner.csproj",
|
|
||||||
"/property:GenerateFullPaths=true",
|
|
||||||
"/consoleloggerparameters:NoSummary"
|
|
||||||
],
|
|
||||||
"problemMatcher": "$msCompile"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "publish",
|
|
||||||
"command": "dotnet",
|
|
||||||
"type": "process",
|
|
||||||
"args": [
|
|
||||||
"publish",
|
|
||||||
"${workspaceFolder}/Cosmos.TestRunner.csproj",
|
|
||||||
"/property:GenerateFullPaths=true",
|
|
||||||
"/consoleloggerparameters:NoSummary"
|
|
||||||
],
|
|
||||||
"problemMatcher": "$msCompile"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "watch",
|
|
||||||
"command": "dotnet",
|
|
||||||
"type": "process",
|
|
||||||
"args": [
|
|
||||||
"watch",
|
|
||||||
"run",
|
|
||||||
"${workspaceFolder}/Cosmos.TestRunner.csproj",
|
|
||||||
"/property:GenerateFullPaths=true",
|
|
||||||
"/consoleloggerparameters:NoSummary"
|
|
||||||
],
|
|
||||||
"problemMatcher": "$msCompile"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue