Guard rotation direct-file staging

This commit is contained in:
2026-06-13 08:56:13 +08:00
parent e953e5184c
commit 880810e5c0
3 changed files with 51 additions and 17 deletions

View File

@@ -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",