Guard m98m99 interp directory staging
This commit is contained in:
@@ -8133,14 +8133,16 @@
|
||||
"m98m99/09-disable-fanuc-subs",
|
||||
m98m99DisableFanucSubsFiles,
|
||||
);
|
||||
assertInterpRegressionStaging(
|
||||
"m98m99/09-disable-fanuc-subs",
|
||||
m98m99DisableFanucSubsFiles,
|
||||
m98m99DisableFanucSubsDir,
|
||||
);
|
||||
const m98m99NestedStagedNgcFiles = [
|
||||
m98m99NestedSubsPath,
|
||||
m98m99SubFollowsMainPath,
|
||||
...m98m99DisableFanucSubsFiles
|
||||
.filter((file) => file.endsWith(".ngc"))
|
||||
.map((file) => `${m98m99DisableFanucSubsDir}/${file}`),
|
||||
].map((path) => path.replace("/work/browser-interp/m98m99/", ""));
|
||||
if (m98m99NestedStagedNgcFiles.join(",") !== m98m99RegressionFiles.slice(9, 13).join(",")) {
|
||||
if (m98m99NestedStagedNgcFiles.join(",") !== m98m99RegressionFiles.slice(9, 11).join(",")) {
|
||||
throw new Error("browser_interp_m98m99_nested_staging_manifest: list drift");
|
||||
}
|
||||
for (const disableFanucCase of [
|
||||
@@ -8267,11 +8269,15 @@
|
||||
"m98m99/11-main-program-oword",
|
||||
m98m99MainProgramOwordFiles,
|
||||
);
|
||||
const m98m99MainProgramStagedNgcFiles = [
|
||||
m98m99M98P001Path,
|
||||
...m98m99MainProgramOwordFiles.map((file) => `${m98m99MainProgramOwordDir}/${file}`),
|
||||
].map((path) => path.replace("/work/browser-interp/m98m99/", ""));
|
||||
if (m98m99MainProgramStagedNgcFiles.join(",") !== m98m99RegressionFiles.slice(13, 21).join(",")) {
|
||||
assertInterpRegressionStaging(
|
||||
"m98m99/11-main-program-oword",
|
||||
m98m99MainProgramOwordFiles,
|
||||
m98m99MainProgramOwordDir,
|
||||
);
|
||||
const m98m99M98P001StagedNgcFiles = [m98m99M98P001Path].map((path) =>
|
||||
path.replace("/work/browser-interp/m98m99/", ""),
|
||||
);
|
||||
if (m98m99M98P001StagedNgcFiles.join(",") !== m98m99RegressionFiles.slice(13, 14).join(",")) {
|
||||
throw new Error("browser_interp_m98m99_main_program_staging_manifest: list drift");
|
||||
}
|
||||
for (const mainProgramFixture of [
|
||||
|
||||
@@ -3115,18 +3115,20 @@ const m98m99DisableFanucSubsDir = writeInterpRegressionFiles(
|
||||
"m98m99/09-disable-fanuc-subs",
|
||||
m98m99DisableFanucSubsFiles,
|
||||
);
|
||||
assertInterpRegressionStaging(
|
||||
"m98m99/09-disable-fanuc-subs",
|
||||
m98m99DisableFanucSubsFiles,
|
||||
m98m99DisableFanucSubsDir,
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
m98m99NestedSubsPath,
|
||||
m98m99SubFollowsMainPath,
|
||||
...m98m99DisableFanucSubsFiles
|
||||
.filter((file) => file.endsWith(".ngc"))
|
||||
.map((file) => `${m98m99DisableFanucSubsDir}/${file}`),
|
||||
],
|
||||
m98m99RegressionFiles
|
||||
.slice(9, 13)
|
||||
.slice(9, 11)
|
||||
.map((file) => `/work/interp/m98m99/${file}`),
|
||||
"interp m98m99 nested/disable-fanuc staging manifest drift",
|
||||
"interp m98m99 nested direct-file staging manifest drift",
|
||||
);
|
||||
for (const disableFanucCase of [
|
||||
{
|
||||
@@ -3245,15 +3247,17 @@ const m98m99MainProgramOwordDir = writeInterpRegressionFiles(
|
||||
"m98m99/11-main-program-oword",
|
||||
m98m99MainProgramOwordFiles,
|
||||
);
|
||||
assertInterpRegressionStaging(
|
||||
"m98m99/11-main-program-oword",
|
||||
m98m99MainProgramOwordFiles,
|
||||
m98m99MainProgramOwordDir,
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
m98m99M98P001Path,
|
||||
...m98m99MainProgramOwordFiles.map((file) => `${m98m99MainProgramOwordDir}/${file}`),
|
||||
],
|
||||
[m98m99M98P001Path],
|
||||
m98m99RegressionFiles
|
||||
.slice(13, 21)
|
||||
.slice(13, 14)
|
||||
.map((file) => `/work/interp/m98m99/${file}`),
|
||||
"interp m98m99 main-program staging manifest drift",
|
||||
"interp m98m99 m98-p001 direct-file staging manifest drift",
|
||||
);
|
||||
for (const mainProgramFixture of [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user