Add missing virtual distructors

This commit is contained in:
2024-05-27 22:58:54 +02:00
parent d66d0919b0
commit b7beb7e601
7 changed files with 10 additions and 374 deletions

View File

@ -96,16 +96,15 @@ async function runVM(cpioImage) {
}
async function runInDirectory (directoryPath) {
const testSources = await glob(path.join(directoryPath, '*.eln'))
let failed = 0
for (const testEntry of testSources) {
console.log(`Compiling ${path.basename(testEntry)}.`)
for (const testEntry of await glob(path.join(directoryPath, '*.eln'))) {
const parsedPath = path.parse(testEntry)
console.log(`Compiling ${parsedPath.base}.`)
const buildResult = await compileTest(parsedPath)
if (buildResult.output !== '') {
if (buildResult.code !== 0) {
if (!(await checkFailure(parsedPath, buildResult))) {
++failed
}
@ -120,7 +119,7 @@ async function runInDirectory (directoryPath) {
await runVM(cpioImage)
return {
total: testSources.length,
total: (await glob(path.join(directoryPath, 'failures/*'))).length,
failed,
passed () {