(haveCuda: boolean)
| 1 | import {execProcess} from './common'; |
| 2 | |
| 3 | export async function test(haveCuda: boolean) { |
| 4 | var cmd = 'node ./lib/tests/model.js' |
| 5 | if (haveCuda) { |
| 6 | cmd += ' --have-cuda' |
| 7 | } |
| 8 | const result = await execProcess(cmd); |
| 9 | if (result.code !== 0) { |
| 10 | throw(new Error(`Unit tests failed :${ |
| 11 | result.code} ${result.signal} ${result.err?.message}`)) |
| 12 | } |
| 13 | } |
no test coverage detected