From d063160c4b7877a38e11f1f47f30c72139beb6f0 Mon Sep 17 00:00:00 2001 From: gnikit Date: Sat, 23 Mar 2024 14:04:08 +0000 Subject: [PATCH] DEBUG: show where '*.mod' are stored. --- test/integration/linter.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/integration/linter.test.ts b/test/integration/linter.test.ts index e2e26971..38ac2b1c 100644 --- a/test/integration/linter.test.ts +++ b/test/integration/linter.test.ts @@ -1,4 +1,5 @@ import { deepStrictEqual, strictEqual } from 'assert'; +import { spawn } from 'child_process'; import * as path from 'path'; import { glob } from 'glob'; @@ -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)),