Add g33.1 interpreter regression coverage
This commit is contained in:
@@ -1537,6 +1537,25 @@
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const g33_1Path = await writeInterpRegressionFile(interp, "g33.1", "g33.1.ngc");
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_g33_1",
|
||||
interp.runFile(g33_1Path),
|
||||
[
|
||||
"file_open=0",
|
||||
"file_read_count=5",
|
||||
"file_execute_count=5",
|
||||
"file_saw_error=0",
|
||||
"run_step phase=execute step=4 rc=0 line=4",
|
||||
"statement_uri=g33.1%20z-1.2%20k0.1",
|
||||
"canon_event=START_SPINDLE_CLOCKWISE spindle=0",
|
||||
"canon_event=START_SPEED_FEED_SYNCH spindle=0 feed_per_revolution=0.1 velocity_mode=0",
|
||||
"canon_event=RIGID_TAP line=4 x=0 y=0 z=-1.2 scale=1",
|
||||
"canon_event=STOP_SPEED_FEED_SYNCH",
|
||||
"canon_event=PROGRAM_END",
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const g6164Path = await writeInterpRegressionFile(interp, "g6164", "test.ngc");
|
||||
verifyExpectedOutput(
|
||||
"browser_interp_g6164",
|
||||
|
||||
@@ -210,6 +210,7 @@ check_exitcode linuxcnc_interp_minimal_harness.return_value.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.subs_follow_main.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.fractional_linenumbers.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.namedparam_bug424.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.g33_1.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.g6164.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.rotation_abs_pts.run
|
||||
check_exitcode linuxcnc_interp_minimal_harness.rotation_g28.run
|
||||
@@ -1129,6 +1130,19 @@ grep -Fq "canon_event=USE_LENGTH_UNITS units=1" "$NAMEDPARAM_BUG424_STDOUT"
|
||||
grep -Fq "canon_event=STRAIGHT_TRAVERSE line=5 x=2 y=3 z=4" "$NAMEDPARAM_BUG424_STDOUT"
|
||||
grep -Fq "canon_event=PROGRAM_END" "$NAMEDPARAM_BUG424_STDOUT"
|
||||
|
||||
G33_1_STDOUT="$BUILD_DIR/linuxcnc_interp_minimal_harness.g33_1.run.stdout.log"
|
||||
grep -Fq "file_open=0" "$G33_1_STDOUT"
|
||||
grep -Fq "file_read_count=5" "$G33_1_STDOUT"
|
||||
grep -Fq "file_execute_count=5" "$G33_1_STDOUT"
|
||||
grep -Fq "file_saw_error=0" "$G33_1_STDOUT"
|
||||
grep -Fq "run_step phase=execute step=4 rc=0 line=4" "$G33_1_STDOUT"
|
||||
grep -Fq "statement_uri=g33.1%20z-1.2%20k0.1" "$G33_1_STDOUT"
|
||||
grep -Fq "canon_event=START_SPINDLE_CLOCKWISE spindle=0" "$G33_1_STDOUT"
|
||||
grep -Fq "canon_event=START_SPEED_FEED_SYNCH spindle=0 feed_per_revolution=0.1 velocity_mode=0" "$G33_1_STDOUT"
|
||||
grep -Fq "canon_event=RIGID_TAP line=4 x=0 y=0 z=-1.2 scale=1" "$G33_1_STDOUT"
|
||||
grep -Fq "canon_event=STOP_SPEED_FEED_SYNCH" "$G33_1_STDOUT"
|
||||
grep -Fq "canon_event=PROGRAM_END" "$G33_1_STDOUT"
|
||||
|
||||
G6164_STDOUT="$BUILD_DIR/linuxcnc_interp_minimal_harness.g6164.run.stdout.log"
|
||||
grep -Fq "file_open=0" "$G6164_STDOUT"
|
||||
grep -Fq "file_read_count=6" "$G6164_STDOUT"
|
||||
|
||||
@@ -1249,6 +1249,25 @@ verifyExpectedOutput(
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const g33_1Path = writeInterpRegressionFile("g33.1", "g33.1.ngc");
|
||||
verifyExpectedOutput(
|
||||
"interp_g33_1_wasm",
|
||||
interp.runFile(g33_1Path),
|
||||
[
|
||||
"file_open=0",
|
||||
"file_read_count=5",
|
||||
"file_execute_count=5",
|
||||
"file_saw_error=0",
|
||||
"run_step phase=execute step=4 rc=0 line=4",
|
||||
"statement_uri=g33.1%20z-1.2%20k0.1",
|
||||
"canon_event=START_SPINDLE_CLOCKWISE spindle=0",
|
||||
"canon_event=START_SPEED_FEED_SYNCH spindle=0 feed_per_revolution=0.1 velocity_mode=0",
|
||||
"canon_event=RIGID_TAP line=4 x=0 y=0 z=-1.2 scale=1",
|
||||
"canon_event=STOP_SPEED_FEED_SYNCH",
|
||||
"canon_event=PROGRAM_END",
|
||||
].join("\n"),
|
||||
);
|
||||
|
||||
const g6164Path = writeInterpRegressionFile("g6164", "test.ngc");
|
||||
verifyExpectedOutput(
|
||||
"interp_g6164_wasm",
|
||||
|
||||
Reference in New Issue
Block a user