Guard oword/namedparam staging paths
This commit is contained in:
@@ -6321,6 +6321,18 @@
|
||||
"oword-bug315",
|
||||
"test.ngc",
|
||||
);
|
||||
const owordBug315NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (owordBug315NgcFiles.length !== 1 || new Set(owordBug315NgcFiles).size !== owordBug315NgcFiles.length) {
|
||||
throw new Error("browser_interp_oword_bug315_fixture_coverage: list drift");
|
||||
}
|
||||
const owordBug315StagedNgcFiles = [
|
||||
owordBug315Path,
|
||||
].map((path) => path.replace("/work/browser-interp/oword-bug315/", ""));
|
||||
if (owordBug315StagedNgcFiles.join(",") !== owordBug315NgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_oword_bug315_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_oword_bug315",
|
||||
interp.runFile(owordBug315Path),
|
||||
@@ -6340,6 +6352,18 @@
|
||||
"oword-bug315-p2",
|
||||
"test.ngc",
|
||||
);
|
||||
const owordBug315P2NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (owordBug315P2NgcFiles.length !== 1 || new Set(owordBug315P2NgcFiles).size !== owordBug315P2NgcFiles.length) {
|
||||
throw new Error("browser_interp_oword_bug315_p2_fixture_coverage: list drift");
|
||||
}
|
||||
const owordBug315P2StagedNgcFiles = [
|
||||
owordBug315P2Path,
|
||||
].map((path) => path.replace("/work/browser-interp/oword-bug315-p2/", ""));
|
||||
if (owordBug315P2StagedNgcFiles.join(",") !== owordBug315P2NgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_oword_bug315_p2_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_oword_bug315_p2",
|
||||
interp.runFile(owordBug315P2Path),
|
||||
@@ -6581,6 +6605,18 @@
|
||||
"namedparam-bug424",
|
||||
"test.ngc",
|
||||
);
|
||||
const namedparamBug424NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (namedparamBug424NgcFiles.length !== 1 || new Set(namedparamBug424NgcFiles).size !== namedparamBug424NgcFiles.length) {
|
||||
throw new Error("browser_interp_namedparam_bug424_fixture_coverage: list drift");
|
||||
}
|
||||
const namedparamBug424StagedNgcFiles = [
|
||||
namedparamBug424Path,
|
||||
].map((path) => path.replace("/work/browser-interp/namedparam-bug424/", ""));
|
||||
if (namedparamBug424StagedNgcFiles.join(",") !== namedparamBug424NgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_namedparam_bug424_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_namedparam_bug424",
|
||||
interp.runFile(namedparamBug424Path),
|
||||
|
||||
@@ -1272,6 +1272,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const owordBug315Path = writeInterpRegressionFile("oword-bug315", "test.ngc");
|
||||
const owordBug315NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
owordBug315NgcFiles,
|
||||
interpRegressionNgcFilesRecursive("oword-bug315"),
|
||||
"interp oword-bug315 fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
owordBug315Path,
|
||||
],
|
||||
owordBug315NgcFiles.map((file) => `/work/interp/oword-bug315/${file}`),
|
||||
"interp oword-bug315 staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_oword_bug315_wasm",
|
||||
interp.runFile(owordBug315Path),
|
||||
@@ -1287,6 +1302,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const owordBug315P2Path = writeInterpRegressionFile("oword-bug315-p2", "test.ngc");
|
||||
const owordBug315P2NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
owordBug315P2NgcFiles,
|
||||
interpRegressionNgcFilesRecursive("oword-bug315-p2"),
|
||||
"interp oword-bug315-p2 fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
owordBug315P2Path,
|
||||
],
|
||||
owordBug315P2NgcFiles.map((file) => `/work/interp/oword-bug315-p2/${file}`),
|
||||
"interp oword-bug315-p2 staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_oword_bug315_p2_wasm",
|
||||
interp.runFile(owordBug315P2Path),
|
||||
@@ -1517,6 +1547,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const namedparamBug424Path = writeInterpRegressionFile("namedparam-bug424", "test.ngc");
|
||||
const namedparamBug424NgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
namedparamBug424NgcFiles,
|
||||
interpRegressionNgcFilesRecursive("namedparam-bug424"),
|
||||
"interp namedparam-bug424 fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
namedparamBug424Path,
|
||||
],
|
||||
namedparamBug424NgcFiles.map((file) => `/work/interp/namedparam-bug424/${file}`),
|
||||
"interp namedparam-bug424 staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_namedparam_bug424_wasm",
|
||||
interp.runFile(namedparamBug424Path),
|
||||
|
||||
Reference in New Issue
Block a user