Guard early direct-file staging
This commit is contained in:
@@ -1339,7 +1339,13 @@ verifyExpectedOutput(
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const doWhileBreakPath = writeInterpRegressionFile("do-while-break", "test.ngc");
|
||||
const doWhileBreakNgcFiles = [
|
||||
"bug.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
const doWhileBreakDir = writeInterpRegressionFiles("do-while-break", doWhileBreakNgcFiles);
|
||||
assertInterpRegressionStaging("do-while-break", doWhileBreakNgcFiles, doWhileBreakDir);
|
||||
const doWhileBreakPath = `${doWhileBreakDir}/test.ngc`;
|
||||
verifyExpectedOutput(
|
||||
"interp_do_while_break_wasm",
|
||||
interp.runFile(doWhileBreakPath),
|
||||
@@ -1358,24 +1364,7 @@ verifyExpectedOutput(
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const doWhileBreakBugPath = writeInterpRegressionFile("do-while-break", "bug.ngc");
|
||||
const doWhileBreakNgcFiles = [
|
||||
"bug.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
doWhileBreakNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("do-while-break"),
|
||||
"interp do-while-break fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
doWhileBreakBugPath,
|
||||
doWhileBreakPath,
|
||||
],
|
||||
doWhileBreakNgcFiles.map((file) => `/work/interp/do-while-break/${file}`),
|
||||
"interp do-while-break staging manifest drift",
|
||||
);
|
||||
const doWhileBreakBugPath = `${doWhileBreakDir}/bug.ngc`;
|
||||
verifyExpectedOutput(
|
||||
"interp_do_while_break_bug_wasm",
|
||||
interp.runFile(doWhileBreakBugPath),
|
||||
@@ -1399,13 +1388,7 @@ assert.deepEqual(
|
||||
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",
|
||||
);
|
||||
assertInterpRegressionFileStaging("oword-bug315", "test.ngc", owordBug315Path);
|
||||
verifyExpectedOutput(
|
||||
"interp_oword_bug315_wasm",
|
||||
interp.runFile(owordBug315Path),
|
||||
@@ -1429,13 +1412,7 @@ assert.deepEqual(
|
||||
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",
|
||||
);
|
||||
assertInterpRegressionFileStaging("oword-bug315-p2", "test.ngc", owordBug315P2Path);
|
||||
verifyExpectedOutput(
|
||||
"interp_oword_bug315_p2_wasm",
|
||||
interp.runFile(owordBug315P2Path),
|
||||
@@ -1459,13 +1436,7 @@ assert.deepEqual(
|
||||
interpRegressionNgcFilesRecursive("exists"),
|
||||
"interp exists fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
existsPath,
|
||||
],
|
||||
existsNgcFiles.map((file) => `/work/interp/exists/${file}`),
|
||||
"interp exists staging manifest drift",
|
||||
);
|
||||
assertInterpRegressionFileStaging("exists", "test.ngc", existsPath);
|
||||
verifyExpectedOutput(
|
||||
"interp_exists_wasm",
|
||||
interp.runFile(existsPath),
|
||||
@@ -1489,13 +1460,7 @@ assert.deepEqual(
|
||||
interpRegressionNgcFilesRecursive("return-value"),
|
||||
"interp return-value fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
returnValuePath,
|
||||
],
|
||||
returnValueNgcFiles.map((file) => `/work/interp/return-value/${file}`),
|
||||
"interp return-value staging manifest drift",
|
||||
);
|
||||
assertInterpRegressionFileStaging("return-value", "test.ngc", returnValuePath);
|
||||
verifyExpectedOutput(
|
||||
"interp_return_value_wasm",
|
||||
interp.runFile(returnValuePath),
|
||||
|
||||
Reference in New Issue
Block a user