Guard g72 staging paths
This commit is contained in:
@@ -7144,7 +7144,7 @@
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
for (const g72Fixture of [
|
||||
const g72Fixtures = [
|
||||
{
|
||||
name: "facing",
|
||||
dir: "g72-facing",
|
||||
@@ -7157,8 +7157,16 @@
|
||||
file: "g72-iterations-missing.ngc",
|
||||
finalZ: "-40",
|
||||
},
|
||||
]) {
|
||||
];
|
||||
if (g72Fixtures.length !== 2 || new Set(g72Fixtures.map((fixture) => `${fixture.dir}/${fixture.file}`)).size !== g72Fixtures.length) {
|
||||
throw new Error("browser_interp_g72_fixture_coverage: list drift");
|
||||
}
|
||||
for (const g72Fixture of g72Fixtures) {
|
||||
const g72Path = await writeInterpRegressionFile(interp, g72Fixture.dir, g72Fixture.file);
|
||||
const g72StagedRelativeNgcFile = g72Path.replace("/work/browser-interp/", "");
|
||||
if (g72StagedRelativeNgcFile !== `${g72Fixture.dir}/${g72Fixture.file}`) {
|
||||
throw new Error(`browser_interp_g72_${g72Fixture.name}_staging_manifest: list drift`);
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
`browser_interp_g72_${g72Fixture.name}`,
|
||||
interp.runFile(g72Path),
|
||||
|
||||
@@ -2088,7 +2088,7 @@ verifyExpectedOutput(
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
for (const g72Fixture of [
|
||||
const g72Fixtures = [
|
||||
{
|
||||
name: "facing",
|
||||
dir: "g72-facing",
|
||||
@@ -2101,8 +2101,19 @@ for (const g72Fixture of [
|
||||
file: "g72-iterations-missing.ngc",
|
||||
finalZ: "-40",
|
||||
},
|
||||
]) {
|
||||
];
|
||||
for (const g72Fixture of g72Fixtures) {
|
||||
assert.deepEqual(
|
||||
[g72Fixture.file],
|
||||
interpRegressionNgcFilesRecursive(g72Fixture.dir),
|
||||
`interp ${g72Fixture.dir} fixture coverage drift`,
|
||||
);
|
||||
const g72Path = writeInterpRegressionFile(g72Fixture.dir, g72Fixture.file);
|
||||
assert.deepEqual(
|
||||
[g72Path],
|
||||
[`/work/interp/${g72Fixture.dir}/${g72Fixture.file}`],
|
||||
`interp ${g72Fixture.dir} staging manifest drift`,
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
`interp_g72_${g72Fixture.name}_wasm`,
|
||||
interp.runFile(g72Path),
|
||||
|
||||
Reference in New Issue
Block a user