Add selected bad interpreter error fixtures

This commit is contained in:
2026-06-09 08:01:40 +08:00
parent e7df5b3eda
commit 45420b055a
12 changed files with 164 additions and 4 deletions

View File

@@ -211,6 +211,10 @@ 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.flowsnake.run
check_exitcode linuxcnc_interp_minimal_harness.bad_nested.run
check_exitcode linuxcnc_interp_minimal_harness.bad_no_feed_rate.run
check_exitcode linuxcnc_interp_minimal_harness.bad_no_ijr.run
check_exitcode linuxcnc_interp_minimal_harness.bad_probe_no_axes.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
@@ -1147,6 +1151,38 @@ grep -Fq "setup.current_x=0.25" "$FLOWSNAKE_STDOUT"
grep -Fq "setup.current_y=1" "$FLOWSNAKE_STDOUT"
grep -Fq "setup.current_z=1" "$FLOWSNAKE_STDOUT"
BAD_NESTED_STDOUT="$BUILD_DIR/linuxcnc_interp_minimal_harness.bad_nested.run.stdout.log"
grep -Fq "file_open=0" "$BAD_NESTED_STDOUT"
grep -Fq "file_read_count=6" "$BAD_NESTED_STDOUT"
grep -Fq "file_execute_count=5" "$BAD_NESTED_STDOUT"
grep -Fq "file_saw_error=1" "$BAD_NESTED_STDOUT"
grep -Fq "file_error_text=Nested subroutine definition" "$BAD_NESTED_STDOUT"
grep -Fq "canon_event=ON_RESET" "$BAD_NESTED_STDOUT"
BAD_NO_FEED_RATE_STDOUT="$BUILD_DIR/linuxcnc_interp_minimal_harness.bad_no_feed_rate.run.stdout.log"
grep -Fq "file_open=0" "$BAD_NO_FEED_RATE_STDOUT"
grep -Fq "file_read_count=2" "$BAD_NO_FEED_RATE_STDOUT"
grep -Fq "file_execute_count=2" "$BAD_NO_FEED_RATE_STDOUT"
grep -Fq "file_saw_error=1" "$BAD_NO_FEED_RATE_STDOUT"
grep -Fq "file_error_text=Cannot do g1 with zero feed rate" "$BAD_NO_FEED_RATE_STDOUT"
grep -Fq "canon_event=ON_RESET" "$BAD_NO_FEED_RATE_STDOUT"
BAD_NO_IJR_STDOUT="$BUILD_DIR/linuxcnc_interp_minimal_harness.bad_no_ijr.run.stdout.log"
grep -Fq "file_open=0" "$BAD_NO_IJR_STDOUT"
grep -Fq "file_read_count=2" "$BAD_NO_IJR_STDOUT"
grep -Fq "file_execute_count=2" "$BAD_NO_IJR_STDOUT"
grep -Fq "file_saw_error=1" "$BAD_NO_IJR_STDOUT"
grep -Fq "file_error_text=R i j k words all missing for arc" "$BAD_NO_IJR_STDOUT"
grep -Fq "canon_event=ON_RESET" "$BAD_NO_IJR_STDOUT"
BAD_PROBE_NO_AXES_STDOUT="$BUILD_DIR/linuxcnc_interp_minimal_harness.bad_probe_no_axes.run.stdout.log"
grep -Fq "file_open=0" "$BAD_PROBE_NO_AXES_STDOUT"
grep -Fq "file_read_count=2" "$BAD_PROBE_NO_AXES_STDOUT"
grep -Fq "file_execute_count=1" "$BAD_PROBE_NO_AXES_STDOUT"
grep -Fq "file_saw_error=1" "$BAD_PROBE_NO_AXES_STDOUT"
grep -Fq "file_error_text=All axes missing with motion code" "$BAD_PROBE_NO_AXES_STDOUT"
grep -Fq "canon_event=ON_RESET" "$BAD_PROBE_NO_AXES_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"