Guard more direct-file staging paths
This commit is contained in:
@@ -6420,6 +6420,18 @@
|
||||
"subs-follow-main",
|
||||
"test.ngc",
|
||||
);
|
||||
const subsFollowMainNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (subsFollowMainNgcFiles.length !== 1 || new Set(subsFollowMainNgcFiles).size !== subsFollowMainNgcFiles.length) {
|
||||
throw new Error("browser_interp_subs_follow_main_fixture_coverage: list drift");
|
||||
}
|
||||
const subsFollowMainStagedNgcFiles = [
|
||||
subsFollowMainPath,
|
||||
].map((path) => path.replace("/work/browser-interp/subs-follow-main/", ""));
|
||||
if (subsFollowMainStagedNgcFiles.join(",") !== subsFollowMainNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_subs_follow_main_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_subs_follow_main",
|
||||
interp.runFile(subsFollowMainPath),
|
||||
@@ -6438,6 +6450,18 @@
|
||||
"fractional-linenumbers",
|
||||
"test.ngc",
|
||||
);
|
||||
const fractionalLinenumbersNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (fractionalLinenumbersNgcFiles.length !== 1 || new Set(fractionalLinenumbersNgcFiles).size !== fractionalLinenumbersNgcFiles.length) {
|
||||
throw new Error("browser_interp_fractional_linenumbers_fixture_coverage: list drift");
|
||||
}
|
||||
const fractionalLinenumbersStagedNgcFiles = [
|
||||
fractionalLinenumbersPath,
|
||||
].map((path) => path.replace("/work/browser-interp/fractional-linenumbers/", ""));
|
||||
if (fractionalLinenumbersStagedNgcFiles.join(",") !== fractionalLinenumbersNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_fractional_linenumbers_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_fractional_linenumbers",
|
||||
interp.runFile(fractionalLinenumbersPath),
|
||||
@@ -6457,6 +6481,18 @@
|
||||
"crazy-paths",
|
||||
"test.ngc",
|
||||
);
|
||||
const crazyPathsNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
if (crazyPathsNgcFiles.length !== 1 || new Set(crazyPathsNgcFiles).size !== crazyPathsNgcFiles.length) {
|
||||
throw new Error("browser_interp_crazy_paths_fixture_coverage: list drift");
|
||||
}
|
||||
const crazyPathsStagedNgcFiles = [
|
||||
crazyPathsPath,
|
||||
].map((path) => path.replace("/work/browser-interp/crazy-paths/", ""));
|
||||
if (crazyPathsStagedNgcFiles.join(",") !== crazyPathsNgcFiles.join(",")) {
|
||||
throw new Error("browser_interp_crazy_paths_staging_manifest: list drift");
|
||||
}
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_crazy_paths",
|
||||
interp.runFile(crazyPathsPath),
|
||||
|
||||
@@ -1365,6 +1365,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const subsFollowMainPath = writeInterpRegressionFile("subs-follow-main", "test.ngc");
|
||||
const subsFollowMainNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
subsFollowMainNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("subs-follow-main"),
|
||||
"interp subs-follow-main fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
subsFollowMainPath,
|
||||
],
|
||||
subsFollowMainNgcFiles.map((file) => `/work/interp/subs-follow-main/${file}`),
|
||||
"interp subs-follow-main staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_subs_follow_main_wasm",
|
||||
interp.runFile(subsFollowMainPath),
|
||||
@@ -1382,6 +1397,21 @@ const fractionalLinenumbersPath = writeInterpRegressionFile(
|
||||
"fractional-linenumbers",
|
||||
"test.ngc",
|
||||
);
|
||||
const fractionalLinenumbersNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
fractionalLinenumbersNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("fractional-linenumbers"),
|
||||
"interp fractional-linenumbers fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
fractionalLinenumbersPath,
|
||||
],
|
||||
fractionalLinenumbersNgcFiles.map((file) => `/work/interp/fractional-linenumbers/${file}`),
|
||||
"interp fractional-linenumbers staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_fractional_linenumbers_wasm",
|
||||
interp.runFile(fractionalLinenumbersPath),
|
||||
@@ -1397,6 +1427,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const crazyPathsPath = writeInterpRegressionFile("crazy-paths", "test.ngc");
|
||||
const crazyPathsNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
crazyPathsNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("crazy-paths"),
|
||||
"interp crazy-paths fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
crazyPathsPath,
|
||||
],
|
||||
crazyPathsNgcFiles.map((file) => `/work/interp/crazy-paths/${file}`),
|
||||
"interp crazy-paths staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_crazy_paths_wasm",
|
||||
interp.runFile(crazyPathsPath),
|
||||
|
||||
Reference in New Issue
Block a user