Verify XYZAC panel button parity
This commit is contained in:
@@ -45,14 +45,19 @@ assert.equal(send("HOME", { all: true }).kind, "COMMAND_RESULT");
|
||||
const run = send("PROGRAM_RUN");
|
||||
assert.equal(run.kind, "COMMAND_RESULT");
|
||||
let stepped = null;
|
||||
for (let cycle = 0; cycle < 300; cycle += 1) {
|
||||
let executionTraceEntries = 0;
|
||||
// The first long Z feed is planned at the configured LinuxCNC TP limit. Give
|
||||
// the fixed-tick simulation enough servo time to complete it before checking
|
||||
// that the interpreter has advanced beyond the historical line-82 boundary.
|
||||
for (let cycle = 0; cycle < 1500; cycle += 1) {
|
||||
stepped = send("SIM_STEP", { cycles: 1, response: "motion_delta" });
|
||||
assert.equal(stepped.kind, "COMMAND_RESULT");
|
||||
executionTraceEntries += stepped.payload.execution_trace.length;
|
||||
}
|
||||
assert.equal(stepped.kind, "COMMAND_RESULT");
|
||||
assert.equal(stepped.payload.program.program_status, "running");
|
||||
assert.ok(stepped.payload.program.current_line > 82);
|
||||
assert.ok(stepped.payload.execution_trace.length > 0);
|
||||
assert.ok(executionTraceEntries > 0);
|
||||
assert.ok(stepped.payload.program.execution_line_text.length > 0);
|
||||
assert.equal(stepped.payload.motion_authority, "wasm");
|
||||
assert.equal(Object.hasOwn(stepped.payload.xyzac_ledger.entries.at(-1), "response"), false);
|
||||
@@ -66,6 +71,6 @@ console.log(JSON.stringify({
|
||||
line_count: loaded.payload.program.line_count,
|
||||
preview_segments: loaded.payload.preview.segments.length,
|
||||
execution_line: stepped.payload.program.current_line,
|
||||
execution_trace: stepped.payload.execution_trace.length,
|
||||
execution_trace: executionTraceEntries,
|
||||
motion_authority: stepped.payload.motion_authority,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user