Guard oword-unwind staging manifest
This commit is contained in:
@@ -7344,6 +7344,21 @@
|
||||
);
|
||||
|
||||
const owordUnwindPlan = await stageInterpIniContext(interp, "oword-unwind");
|
||||
const owordUnwindNgcFiles = [
|
||||
"fail.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
if (owordUnwindNgcFiles.length !== 2 || new Set(owordUnwindNgcFiles).size !== owordUnwindNgcFiles.length) {
|
||||
throw new Error("browser_interp_oword_unwind_fixture_coverage: list drift");
|
||||
}
|
||||
const owordUnwindStagedNgcFiles = owordUnwindPlan.files
|
||||
.map((file) => file.sourceRel)
|
||||
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
|
||||
.map((sourceRel) => sourceRel.replace("tests/interp/oword-unwind/", ""))
|
||||
.sort();
|
||||
if (owordUnwindStagedNgcFiles.join(",") !== owordUnwindNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_oword_unwind_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_oword_unwind",
|
||||
interp.runFileWithIniContinueOnError(
|
||||
|
||||
@@ -2242,6 +2242,24 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const owordUnwindPlan = stageInterpIniContext("oword-unwind");
|
||||
const owordUnwindNgcFiles = [
|
||||
"fail.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
owordUnwindNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("oword-unwind"),
|
||||
"interp oword-unwind fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
owordUnwindPlan.files
|
||||
.map((file) => file.sourceRel)
|
||||
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
|
||||
.map((sourceRel) => sourceRel.replace("tests/interp/oword-unwind/", ""))
|
||||
.sort(),
|
||||
owordUnwindNgcFiles,
|
||||
"interp oword-unwind staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_oword_unwind_wasm",
|
||||
interp.runFileWithIniContinueOnError(
|
||||
|
||||
Reference in New Issue
Block a user