Add g33.1 interpreter regression coverage

This commit is contained in:
2026-06-09 07:41:17 +08:00
parent 5116b9894d
commit 3698c51917
11 changed files with 91 additions and 3 deletions

View File

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