Guard more interp staging paths
This commit is contained in:
@@ -6638,6 +6638,18 @@
|
||||
"flowsnake",
|
||||
"flowsnake.ngc",
|
||||
);
|
||||
const flowsnakeNgcFiles = [
|
||||
"flowsnake.ngc",
|
||||
];
|
||||
if (flowsnakeNgcFiles.length !== 1 || new Set(flowsnakeNgcFiles).size !== flowsnakeNgcFiles.length) {
|
||||
throw new Error("browser_interp_flowsnake_fixture_coverage: list drift");
|
||||
}
|
||||
const flowsnakeStagedNgcFiles = [
|
||||
flowsnakePath,
|
||||
].map((path) => path.replace("/work/browser-interp/flowsnake/", ""));
|
||||
if (flowsnakeStagedNgcFiles.join(",") !== flowsnakeNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_flowsnake_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_flowsnake",
|
||||
interp.runFile(flowsnakePath),
|
||||
@@ -6664,6 +6676,18 @@
|
||||
"inside-corners",
|
||||
"test.ngc",
|
||||
);
|
||||
const insideCornersNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (insideCornersNgcFiles.length !== 1 || new Set(insideCornersNgcFiles).size !== insideCornersNgcFiles.length) {
|
||||
throw new Error("browser_interp_inside_corners_fixture_coverage: list drift");
|
||||
}
|
||||
const insideCornersStagedNgcFiles = [
|
||||
insideCornersPath,
|
||||
].map((path) => path.replace("/work/browser-interp/inside-corners/", ""));
|
||||
if (insideCornersStagedNgcFiles.join(",") !== insideCornersNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_inside_corners_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_inside_corners",
|
||||
interp.runFile(insideCornersPath),
|
||||
@@ -6691,6 +6715,18 @@
|
||||
"inverse-time-with-comp",
|
||||
"inverse.ngc",
|
||||
);
|
||||
const inverseTimeWithCompNgcFiles = [
|
||||
"inverse.ngc",
|
||||
];
|
||||
if (inverseTimeWithCompNgcFiles.length !== 1 || new Set(inverseTimeWithCompNgcFiles).size !== inverseTimeWithCompNgcFiles.length) {
|
||||
throw new Error("browser_interp_inverse_time_with_comp_fixture_coverage: list drift");
|
||||
}
|
||||
const inverseTimeWithCompStagedNgcFiles = [
|
||||
inverseTimeWithCompPath,
|
||||
].map((path) => path.replace("/work/browser-interp/inverse-time-with-comp/", ""));
|
||||
if (inverseTimeWithCompStagedNgcFiles.join(",") !== inverseTimeWithCompNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_inverse_time_with_comp_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_inverse_time_with_comp",
|
||||
interp.runFile(inverseTimeWithCompPath),
|
||||
|
||||
@@ -1579,6 +1579,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const flowsnakePath = writeInterpRegressionFile("flowsnake", "flowsnake.ngc");
|
||||
const flowsnakeNgcFiles = [
|
||||
"flowsnake.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
flowsnakeNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("flowsnake"),
|
||||
"interp flowsnake fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
flowsnakePath,
|
||||
],
|
||||
flowsnakeNgcFiles.map((file) => `/work/interp/flowsnake/${file}`),
|
||||
"interp flowsnake staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_flowsnake_wasm",
|
||||
interp.runFile(flowsnakePath),
|
||||
@@ -1601,6 +1616,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const insideCornersPath = writeInterpRegressionFile("inside-corners", "test.ngc");
|
||||
const insideCornersNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
insideCornersNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("inside-corners"),
|
||||
"interp inside-corners fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
insideCornersPath,
|
||||
],
|
||||
insideCornersNgcFiles.map((file) => `/work/interp/inside-corners/${file}`),
|
||||
"interp inside-corners staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_inside_corners_wasm",
|
||||
interp.runFile(insideCornersPath),
|
||||
@@ -1627,6 +1657,21 @@ const inverseTimeWithCompPath = writeInterpRegressionFile(
|
||||
"inverse-time-with-comp",
|
||||
"inverse.ngc",
|
||||
);
|
||||
const inverseTimeWithCompNgcFiles = [
|
||||
"inverse.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
inverseTimeWithCompNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("inverse-time-with-comp"),
|
||||
"interp inverse-time-with-comp fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
inverseTimeWithCompPath,
|
||||
],
|
||||
inverseTimeWithCompNgcFiles.map((file) => `/work/interp/inverse-time-with-comp/${file}`),
|
||||
"interp inverse-time-with-comp staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_inverse_time_with_comp_wasm",
|
||||
interp.runFile(inverseTimeWithCompPath),
|
||||
|
||||
Reference in New Issue
Block a user