Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed Oct 30, 2023
1 parent 1dc3d63 commit e6e8ce9
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 46 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/chai-string": "^1.4.2",
"@types/mocha": "^9.1.0",
"@types/mocha": "^10.0.3",
"@types/node": "^14.18.17",
"@types/serialport": "8.0.2",
"@types/sinon": "^10.0.20",
"@types/tmp": "^0.2.3",
"@types/utf8": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^5.54.0",
Expand All @@ -80,11 +81,12 @@
"cross-env": "^7.0.3",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"mocha": "^9.2.0",
"mocha": "^10.2.0",
"mocha-jenkins-reporter": "^0.4.8",
"node-gyp": "^8.4.1",
"npm-run-all": "^4.1.5",
"prettier": "2.8.4",
"sinon": "^17.0.0",
"tmp": "^0.2.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
Expand Down
3 changes: 3 additions & 0 deletions src/MIParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ export class MIParser {
break;
}
case '(':
// this is the (gdb) prompt and used
// to know that GDB has started and is ready
// for commands
if (this.waitReady) {
this.waitReady();
this.waitReady = undefined;
Expand Down
34 changes: 34 additions & 0 deletions src/integration-tests/miparser.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*********************************************************************
* Copyright (c) 2023 Kichwa Coders Canada Inc. and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*********************************************************************/

import { Readable } from "stream";
import { GDBBackend } from "../GDBBackend";
import { MIParser } from "../MIParser";


describe.only('GDB Backend Test Suite', function () {
let backend : GDBBackend;
let parser : MIParser;

beforeEach(async function () {
backend = new GDBBackend();
parser = new MIParser(backend);
});

afterEach(function () {
//
});

it('parse', async function () {
//
parser.parse(Readable.from("Input"));
});

});
Loading

0 comments on commit e6e8ce9

Please sign in to comment.