UNPKG

ssh2-custom

Version:

A custom package for the ssh2 library with pre-built native modules.

21 lines (18 loc) 554 B
'use strict'; const { spawnSync } = require('node:child_process'); const { readdirSync } = require('node:fs'); const { join } = require('node:path'); const files = readdirSync(__dirname).sort(); for (const filename of files) { if (filename.startsWith('test-')) { const path = join(__dirname, filename); console.log(`> Running ${filename} ...`); const result = spawnSync(`${process.argv0} ${path}`, { shell: true, stdio: 'inherit', windowsHide: true }); if (result.status !== 0) process.exitCode = 1; } }