Skip to content

Commit

Permalink
DEBUG: show where '*.mod' are stored.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Mar 23, 2024
1 parent d42649b commit d063160
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/integration/linter.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { deepStrictEqual, strictEqual } from 'assert';
import { spawn } from 'child_process';
import * as path from 'path';

import { glob } from 'glob';
Expand Down Expand Up @@ -96,6 +97,22 @@ suite('Linter integration', async () => {
// need to implement a the compiler versioning see #523
test('GNU - API call to doLint produces correct diagnostics', async () => {
const diags = await linter['doLint'](doc);
const command = 'find';
const args = [root, '-name', '*.mod'];

const childProcess = spawn(command, args);

childProcess.stdout.on('data', data => {
console.log(data.toString());
});

childProcess.stderr.on('data', data => {
console.error(data.toString());
});

childProcess.on('close', code => {
console.log(`Child process exited with code ${code}`);
});
const ref: Diagnostic[] = [
new Diagnostic(
new Range(new Position(21 - 1, 18 - 1), new Position(21 - 1, 18 - 1)),
Expand Down

0 comments on commit d063160

Please sign in to comment.