Guard abort and m19 staging manifests

This commit is contained in:
2026-06-13 06:17:16 +08:00
parent 091c4a3a66
commit 4680639f02
3 changed files with 153 additions and 0 deletions

View File

@@ -7409,6 +7409,20 @@
);
const abortHotCommentPlan = await stageInterpIniContext(interp, "abort-hot-comment");
const abortHotCommentNgcFiles = [
"test.ngc",
];
if (abortHotCommentNgcFiles.length !== 1 || new Set(abortHotCommentNgcFiles).size !== abortHotCommentNgcFiles.length) {
throw new Error("browser_interp_abort_hot_comment_fixture_coverage: list drift");
}
const abortHotCommentStagedNgcFiles = abortHotCommentPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/abort-hot-comment/", ""))
.sort();
if (abortHotCommentStagedNgcFiles.join(",") !== abortHotCommentNgcFiles.join(",")) {
throw new Error("browser_interp_abort_hot_comment_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_abort_hot_comment",
interp.runFileWithIniContinueOnError(
@@ -7426,6 +7440,20 @@
);
const m19Plan = await stageInterpIniContext(interp, "m19");
const m19NgcFiles = [
"test.ngc",
];
if (m19NgcFiles.length !== 1 || new Set(m19NgcFiles).size !== m19NgcFiles.length) {
throw new Error("browser_interp_m19_fixture_coverage: list drift");
}
const m19StagedNgcFiles = m19Plan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/m19/", ""))
.sort();
if (m19StagedNgcFiles.join(",") !== m19NgcFiles.join(",")) {
throw new Error("browser_interp_m19_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_m19",
interp.runFileWithIni(m19Plan.programPath, m19Plan.iniPath),

View File

@@ -2316,6 +2316,23 @@ verifyExpectedOutput(
);
const abortHotCommentPlan = stageInterpIniContext("abort-hot-comment");
const abortHotCommentNgcFiles = [
"test.ngc",
];
assert.deepEqual(
abortHotCommentNgcFiles,
interpRegressionNgcFilesRecursive("abort-hot-comment"),
"interp abort-hot-comment fixture coverage drift",
);
assert.deepEqual(
abortHotCommentPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/abort-hot-comment/", ""))
.sort(),
abortHotCommentNgcFiles,
"interp abort-hot-comment staging manifest drift",
);
verifyExpectedOutput(
"interp_abort_hot_comment_wasm",
interp.runFileWithIniContinueOnError(
@@ -2333,6 +2350,23 @@ verifyExpectedOutput(
);
const m19Plan = stageInterpIniContext("m19");
const m19NgcFiles = [
"test.ngc",
];
assert.deepEqual(
m19NgcFiles,
interpRegressionNgcFilesRecursive("m19"),
"interp m19 fixture coverage drift",
);
assert.deepEqual(
m19Plan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/m19/", ""))
.sort(),
m19NgcFiles,
"interp m19 staging manifest drift",
);
verifyExpectedOutput(
"interp_m19_wasm",
interp.runFileWithIni(m19Plan.programPath, m19Plan.iniPath),