(dir, sourceFile, ignoredRefOutput, params)
| 545 | }; |
| 546 | |
| 547 | async function testEndToEnd(dir, sourceFile, ignoredRefOutput, params) { |
| 548 | // This test only works on linux. |
| 549 | if (!os?.system) return; |
| 550 | if (os.name !== 'linux' && os.name !== 'macos') return; |
| 551 | params.platform = os.name; |
| 552 | const tmpLogFile= `/var/tmp/${Date.now()}.v8.log` |
| 553 | const result = os.system( |
| 554 | os.d8Path, ['--prof', `--logfile=${tmpLogFile}`, dir + sourceFile]); |
| 555 | |
| 556 | const tickProcessor = TickProcessor.fromParams(params); |
| 557 | // We will not always get the same ticks due to timing on bots, |
| 558 | // hence we cannot properly compare output expectations. |
| 559 | // Let's just use a dummy file and only test whether we don't throw. |
| 560 | const printMonitor = new PrintMonitor(dir + ignoredRefOutput); |
| 561 | await tickProcessor.processLogFileInTest(tmpLogFile); |
| 562 | tickProcessor.printStatistics(); |
| 563 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…