Guard rotation direct-file staging
This commit is contained in:
@@ -7396,6 +7396,7 @@
|
||||
"rotation/abs-pts",
|
||||
"test.ngc",
|
||||
);
|
||||
assertInterpRegressionFileStaging("rotation/abs-pts", "test.ngc", rotationAbsPtsPath);
|
||||
const rotationRegressionFiles = [
|
||||
"abs-pts/test.ngc",
|
||||
"g28/g28.ngc",
|
||||
@@ -7432,6 +7433,7 @@
|
||||
}
|
||||
|
||||
const rotationG28Path = await writeInterpRegressionFile(interp, "rotation/g28", "g28.ngc");
|
||||
assertInterpRegressionFileStaging("rotation/g28", "g28.ngc", rotationG28Path);
|
||||
const rotationG28Output = interp.runFile(rotationG28Path);
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_rotation_g28",
|
||||
@@ -7454,14 +7456,7 @@
|
||||
}
|
||||
|
||||
const rotationG53Path = await writeInterpRegressionFile(interp, "rotation/g53", "g53.ngc");
|
||||
const rotationStagedNgcFiles = [
|
||||
rotationAbsPtsPath,
|
||||
rotationG28Path,
|
||||
rotationG53Path,
|
||||
].map((path) => path.replace("/work/browser-interp/rotation/", ""));
|
||||
if (rotationStagedNgcFiles.join(",") !== rotationRegressionFiles.join(",")) {
|
||||
throw new Error("browser_interp_rotation_staging_manifest: list drift");
|
||||
}
|
||||
assertInterpRegressionFileStaging("rotation/g53", "g53.ngc", rotationG53Path);
|
||||
const rotationG53Output = interp.runFile(rotationG53Path);
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_rotation_g53",
|
||||
|
||||
@@ -2373,6 +2373,7 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const rotationAbsPtsPath = writeInterpRegressionFile("rotation/abs-pts", "test.ngc");
|
||||
assertInterpRegressionFileStaging("rotation/abs-pts", "test.ngc", rotationAbsPtsPath);
|
||||
const rotationRegressionFiles = [
|
||||
"abs-pts/test.ngc",
|
||||
"g28/g28.ngc",
|
||||
@@ -2409,6 +2410,7 @@ assert.equal(
|
||||
);
|
||||
|
||||
const rotationG28Path = writeInterpRegressionFile("rotation/g28", "g28.ngc");
|
||||
assertInterpRegressionFileStaging("rotation/g28", "g28.ngc", rotationG28Path);
|
||||
const rotationG28Output = interp.runFile(rotationG28Path);
|
||||
verifyExpectedOutput(
|
||||
"interp_rotation_g28_wasm",
|
||||
@@ -2433,15 +2435,7 @@ assert.match(
|
||||
);
|
||||
|
||||
const rotationG53Path = writeInterpRegressionFile("rotation/g53", "g53.ngc");
|
||||
assert.deepEqual(
|
||||
[
|
||||
rotationAbsPtsPath,
|
||||
rotationG28Path,
|
||||
rotationG53Path,
|
||||
],
|
||||
rotationRegressionFiles.map((file) => `/work/interp/rotation/${file}`),
|
||||
"interp rotation staging manifest drift",
|
||||
);
|
||||
assertInterpRegressionFileStaging("rotation/g53", "g53.ngc", rotationG53Path);
|
||||
const rotationG53Output = interp.runFile(rotationG53Path);
|
||||
verifyExpectedOutput(
|
||||
"interp_rotation_g53_wasm",
|
||||
|
||||
Reference in New Issue
Block a user