Guard good arc staging paths

This commit is contained in:
2026-06-13 07:37:33 +08:00
parent f27793abe7
commit a4ce6dc3c6
3 changed files with 58 additions and 0 deletions

View File

@@ -7089,8 +7089,10 @@
if (goodArcFixtures.length !== 6 || new Set(goodArcFixtures.map((fixture) => fixture.file)).size !== goodArcFixtures.length) {
throw new Error("browser_interp_good_fixture_coverage: list drift");
}
const goodArcStagedNgcFiles = [];
for (const goodArcFixture of goodArcFixtures) {
const goodArcPath = await writeInterpRegressionFile(interp, "good", goodArcFixture.file);
goodArcStagedNgcFiles.push(goodArcPath);
verifyExpectedOutput(
`browser_interp_good_arc_${goodArcFixture.name}`,
interp.runFile(goodArcPath),
@@ -7106,6 +7108,10 @@
].join("\n"),
);
}
const goodArcStagedRelativeNgcFiles = goodArcStagedNgcFiles.map((path) => path.replace("/work/browser-interp/good/", ""));
if (goodArcStagedRelativeNgcFiles.join(",") !== goodArcFixtures.map((fixture) => fixture.file).join(",")) {
throw new Error("browser_interp_good_staging_manifest: list drift");
}
const g6164Path = await writeInterpRegressionFile(interp, "g6164", "test.ngc");
const g6164NgcFiles = [

View File

@@ -2029,8 +2029,10 @@ assert.deepEqual(
interpRegressionNgcFiles("good"),
"interp good fixture coverage drift",
);
const goodArcStagedNgcFiles = [];
for (const goodArcFixture of goodArcFixtures) {
const goodArcPath = writeInterpRegressionFile("good", goodArcFixture.file);
goodArcStagedNgcFiles.push(goodArcPath);
verifyExpectedOutput(
`interp_good_arc_${goodArcFixture.name}_wasm`,
interp.runFile(goodArcPath),
@@ -2046,6 +2048,11 @@ for (const goodArcFixture of goodArcFixtures) {
].join("\n"),
);
}
assert.deepEqual(
goodArcStagedNgcFiles,
goodArcFixtures.map((fixture) => `/work/interp/good/${fixture.file}`),
"interp good staging manifest drift",
);
const g6164Path = writeInterpRegressionFile("g6164", "test.ngc");
const g6164NgcFiles = [