mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 05:18:38 +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",
|
||||
"EnableStackCorruptionDetection:" + EnableStackCorruptionChecks,
|
||||
"StackCorruptionDetectionLevel:" + StackCorruptionDetectionLevel,
|
||||
"DebugMode:Source",
|
||||
"DebugMode:" + DebugMode,
|
||||
"TraceAssemblies:" + TraceAssembliesLevel,
|
||||
"DebugCom:1",
|
||||
"TargetAssembly:" + kernelFileName,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ namespace Cosmos.TestRunner.Core
|
|||
protected TraceAssemblies TraceAssembliesLevel => mConfiguration.TraceAssembliesLevel;
|
||||
protected bool EnableStackCorruptionChecks => mConfiguration.EnableStackCorruptionChecks;
|
||||
protected StackCorruptionDetectionLevel StackCorruptionDetectionLevel => mConfiguration.StackCorruptionDetectionLevel;
|
||||
protected DebugMode DebugMode => mConfiguration.DebugMode;
|
||||
|
||||
protected bool RunWithGDB => mConfiguration.RunWithGDB;
|
||||
protected bool StartBochsDebugGui => mConfiguration.StartBochsDebugGUI;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ namespace Cosmos.TestRunner.Core
|
|||
TraceAssemblies TraceAssembliesLevel { get; }
|
||||
bool EnableStackCorruptionChecks { get; }
|
||||
StackCorruptionDetectionLevel StackCorruptionDetectionLevel { get; }
|
||||
DebugMode DebugMode { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 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 bool EnableStackCorruptionChecks => true;
|
||||
public virtual StackCorruptionDetectionLevel StackCorruptionDetectionLevel => StackCorruptionDetectionLevel.AllInstructions;
|
||||
public virtual DebugMode DebugMode => DebugMode.Source;
|
||||
|
||||
public virtual IEnumerable<string> KernelAssembliesToRun
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ namespace Cosmos.TestRunner.TestAdapter
|
|||
public TraceAssemblies TraceAssembliesLevel { get; }
|
||||
public bool EnableStackCorruptionChecks { get; }
|
||||
public StackCorruptionDetectionLevel StackCorruptionDetectionLevel { get; }
|
||||
public DebugMode DebugMode { 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