对齐 LinuxCNC 解释器行为覆盖
This commit is contained in:
@@ -167,6 +167,9 @@ CNC_SIM_RS274_VAR="$var_file" \
|
||||
CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_canned_cycle_planes.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_canned_cycle_planes.json
|
||||
CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_extended_plane_cycle.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_extended_plane_cycle.json
|
||||
CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_arc_planes.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_arc_planes.json
|
||||
@@ -206,6 +209,245 @@ CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
INI_FILE_NAME="$ini_named_parameter_file" CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_ini_named_parameter.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_ini_named_parameter.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_readonly_named_parameters_extra.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_readonly_named_parameters_extra.json
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_readonly_named_parameter_assign_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_readonly_named_parameter_assign_error.json 2>/tmp/cnc_sim_linuxcnc_source_readonly_named_parameter_assign_error.err; then
|
||||
echo "expected linuxcnc_readonly_named_parameter_assign_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_negative_sqrt_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_negative_sqrt_error.json 2>/tmp/cnc_sim_linuxcnc_source_negative_sqrt_error.err; then
|
||||
echo "expected linuxcnc_negative_sqrt_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_infinite_expression_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_infinite_expression_error.json 2>/tmp/cnc_sim_linuxcnc_source_infinite_expression_error.err; then
|
||||
echo "expected linuxcnc_infinite_expression_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_value_returned.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_value_returned.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_call_level.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_call_level.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_exists_word_value.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_exists_word_value.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_lowercase_numeric_oword.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_lowercase_numeric_oword.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_parameter_expression_assignment.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_parameter_expression_assignment.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_word_bracket_whitespace.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_word_bracket_whitespace.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_m98_mixed_styles_variables.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_m98_mixed_styles_variables.json
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_numeric_oword_main_eof_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_numeric_oword_main_eof_error.json 2>/tmp/cnc_sim_linuxcnc_source_numeric_oword_main_eof_error.err; then
|
||||
echo "expected linuxcnc_numeric_oword_main_eof_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_numeric_oword_sub_illegal_location.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_numeric_oword_sub_illegal_location.json 2>/tmp/cnc_sim_linuxcnc_source_numeric_oword_sub_illegal_location.err; then
|
||||
echo "expected linuxcnc_numeric_oword_sub_illegal_location.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_canned_cycle_reject_rotary_followup.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_canned_cycle_reject_rotary_followup.json 2>/tmp/cnc_sim_linuxcnc_source_canned_cycle_reject_rotary_followup.err; then
|
||||
echo "expected linuxcnc_canned_cycle_reject_rotary_followup.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_nested_subroutine_definition_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_nested_subroutine_definition_error.json 2>/tmp/cnc_sim_linuxcnc_source_nested_subroutine_definition_error.err; then
|
||||
echo "expected linuxcnc_nested_subroutine_definition_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_ccomp_arcexit_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_ccomp_arcexit_error.json 2>/tmp/cnc_sim_linuxcnc_source_ccomp_arcexit_error.err; then
|
||||
echo "expected linuxcnc_ccomp_arcexit_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_abort_hot_comment.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_abort_hot_comment.json 2>/tmp/cnc_sim_linuxcnc_source_abort_hot_comment.err; then
|
||||
echo "expected linuxcnc_abort_hot_comment.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_ccomp_gouging_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_ccomp_gouging_error.json 2>/tmp/cnc_sim_linuxcnc_source_ccomp_gouging_error.err; then
|
||||
echo "expected linuxcnc_ccomp_gouging_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
cp "$base_var_file" "$var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_rotary_probe_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_rotary_probe_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_multi_rotary_probe_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_multi_rotary_probe_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_tool_info_zero_parameter.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_tool_info_zero_parameter.json
|
||||
CNC_SIM_TOOL_IN_SPINDLE=1 CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_spindle_tool_info_parameter.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_spindle_tool_info_parameter.json
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_readonly_numbered_parameter_assign_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_readonly_numbered_parameter_assign_error.json 2>/tmp/cnc_sim_linuxcnc_source_readonly_numbered_parameter_assign_error.err; then
|
||||
echo "expected linuxcnc_readonly_numbered_parameter_assign_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g28_g30_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g28_g30_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_rotary_g28_g30_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_rotary_g28_g30_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g92_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g92_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_rotary_g92_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_rotary_g92_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g52_g92_numbered_interaction.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g52_g92_numbered_interaction.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g5x_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g5x_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g59_3_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g59_3_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g59_3_rotary_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g59_3_rotary_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g5x_rotary_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g5x_rotary_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g54_rotary_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g54_rotary_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_debug_level_parameter.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_debug_level_parameter.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_m66_result_parameter.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_m66_result_parameter.json
|
||||
cp "$base_var_file" "$var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_tool_offset_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_tool_offset_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_rotary_tool_offset_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_rotary_tool_offset_numbered_parameters.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_current_position_numbered_parameters.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_current_position_numbered_parameters.json
|
||||
cp "$base_var_file" "$var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_persistent_parameters_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_persistent_parameters_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_persistent_parameters_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_persistent_parameters_check.json
|
||||
rotary_persistent_var_file="$build_dir/rs274ngc-rotary-persistent.var"
|
||||
: > "$rotary_persistent_var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$rotary_persistent_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_rotary_persistent_parameters_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_rotary_persistent_parameters_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$rotary_persistent_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_rotary_persistent_parameters_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_rotary_persistent_parameters_check.json
|
||||
g54_persistent_var_file="$build_dir/rs274ngc-g54-persistent.var"
|
||||
: > "$g54_persistent_var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$g54_persistent_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g54_persistent_parameters_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g54_persistent_parameters_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$g54_persistent_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g54_persistent_parameters_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g54_persistent_parameters_check.json
|
||||
empty_var_file="$build_dir/rs274ngc-empty.var"
|
||||
: > "$empty_var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$empty_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_user_persistent_parameter_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$empty_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_user_persistent_parameter_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_check.json
|
||||
existing_user_var_file="$build_dir/rs274ngc-existing-user.var"
|
||||
printf '5001\t17.000000\n' > "$existing_user_var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$existing_user_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_user_persistent_parameter_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_user_existing_persistent_parameter_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$existing_user_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_user_persistent_parameter_existing_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_user_existing_persistent_parameter_check.json
|
||||
boundary_user_var_file="$build_dir/rs274ngc-boundary-user.var"
|
||||
printf '5001\t17.000000\n5030\t18.000000\n5060\t19.000000\n' > "$boundary_user_var_file"
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$boundary_user_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_user_persistent_parameter_boundary_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_boundary_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$boundary_user_var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_user_persistent_parameter_boundary_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_boundary_check.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_volatile_global_parameter_set.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_volatile_global_parameter_set.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_volatile_global_parameter_check.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_volatile_global_parameter_check.json
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_arc_center_tolerance_good_imperial.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_arc_center_tolerance_good_imperial.json
|
||||
if CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_arc_center_tolerance_bad_metric.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_arc_center_tolerance_bad_metric.json 2>/tmp/cnc_sim_linuxcnc_source_arc_center_tolerance_bad_metric.err; then
|
||||
echo "expected linuxcnc_arc_center_tolerance_bad_metric.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_extended_plane_arc_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_extended_plane_arc_error.json 2>/tmp/cnc_sim_linuxcnc_source_extended_plane_arc_error.err; then
|
||||
echo "expected linuxcnc_extended_plane_arc_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -q "Cannot do an arc in planes G17.1, G18.1, or G19.1" /tmp/cnc_sim_linuxcnc_source_extended_plane_arc_error.err; then
|
||||
echo "unexpected linuxcnc_extended_plane_arc_error.ngc error" >&2
|
||||
cat /tmp/cnc_sim_linuxcnc_source_extended_plane_arc_error.err >&2
|
||||
exit 1
|
||||
fi
|
||||
if CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g62_extended_plane_error.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g62_extended_plane_error.json 2>/tmp/cnc_sim_linuxcnc_source_g62_extended_plane_error.err; then
|
||||
echo "expected linuxcnc_g62_extended_plane_error.ngc to fail" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! grep -q "one plane must be selected for nurbs: XY, YZ, ZX" /tmp/cnc_sim_linuxcnc_source_g62_extended_plane_error.err; then
|
||||
echo "unexpected linuxcnc_g62_extended_plane_error.ngc error" >&2
|
||||
cat /tmp/cnc_sim_linuxcnc_source_g62_extended_plane_error.err >&2
|
||||
exit 1
|
||||
fi
|
||||
CNC_SIM_RS274_FILE_MODE=1 CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_g76only.ngc \
|
||||
>/tmp/cnc_sim_linuxcnc_source_g76only.json
|
||||
cp "$base_var_file" "$var_file"
|
||||
CNC_SIM_RS274_VAR="$var_file" \
|
||||
"$build_dir/linuxcnc_rs274_source_dump" tests/gcode/linuxcnc_coordinate_offsets.ngc \
|
||||
@@ -675,6 +917,31 @@ expected_plane_g87_sequence = [
|
||||
if plane_g87_sequence != expected_plane_g87_sequence:
|
||||
raise SystemExit(f"unexpected source-linked G19 G87 plane sequence: {plane_g87_sequence!r}")
|
||||
|
||||
extended_plane_cycle = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_extended_plane_cycle.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["u"] == 1 and
|
||||
event["end"]["v"] == 2 and
|
||||
event["end"]["w"] == -1
|
||||
for event in extended_plane_cycle
|
||||
):
|
||||
raise SystemExit("missing source-linked G17.1 G81 feed along W depth axis")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["u"] == 1 and
|
||||
event["end"]["v"] == 2 and
|
||||
event["end"]["w"] == 1
|
||||
for event in extended_plane_cycle
|
||||
):
|
||||
raise SystemExit("missing source-linked G17.1 G81 retract to W R plane")
|
||||
if not any(
|
||||
event["type"] == "set-plane" and event["line"] == 7 and event["plane"] == 171
|
||||
for event in extended_plane_cycle
|
||||
):
|
||||
raise SystemExit("missing source-linked cutter-comp-active G17.1 plane selection")
|
||||
|
||||
extended_cycle = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_canned_cycles_extended.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
@@ -1112,6 +1379,544 @@ expected_ini_named_moves = [(3, 3.25, 0), (5, 3.25, 1)]
|
||||
if ini_named_moves != expected_ini_named_moves:
|
||||
raise SystemExit(f"unexpected source-linked INI named parameter motions: {ini_named_moves!r}")
|
||||
|
||||
readonly_named = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_readonly_named_parameters_extra.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in readonly_named
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_spindle_rpm_mode> / #<_spindle_css_mode> G97 branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 8 and
|
||||
event["end"]["y"] == 1
|
||||
for event in readonly_named
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_ccomp> left-compensation branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 13 and
|
||||
event["end"]["x"] == 2
|
||||
for event in readonly_named
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_ccomp> right-compensation branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 18 and
|
||||
event["end"]["a"] == 1
|
||||
for event in readonly_named
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_spindle_rpm_mode> / #<_spindle_css_mode> G96 branch motion")
|
||||
|
||||
value_returned = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_value_returned.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 11 and
|
||||
event["end"]["x"] == 1
|
||||
for event in value_returned
|
||||
):
|
||||
raise SystemExit("missing source-linked initial #<_value_returned> clear branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 15 and
|
||||
event["end"]["y"] == 1
|
||||
for event in value_returned
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_value_returned> endsub[value] branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 19 and
|
||||
event["end"]["z"] == 1
|
||||
for event in value_returned
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_value_returned> cleared-procedure branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 23 and
|
||||
event["end"]["a"] == 1
|
||||
for event in value_returned
|
||||
):
|
||||
raise SystemExit("missing source-linked #<_value_returned> return[value] branch motion")
|
||||
|
||||
call_level = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_call_level.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 15 and
|
||||
event["end"]["x"] == 1
|
||||
for event in call_level
|
||||
):
|
||||
raise SystemExit("missing source-linked main-program #<_call_level> branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 8 and
|
||||
event["end"]["y"] == 1
|
||||
for event in call_level
|
||||
):
|
||||
raise SystemExit("missing source-linked outer O-word #<_call_level> branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["z"] == 1
|
||||
for event in call_level
|
||||
):
|
||||
raise SystemExit("missing source-linked inner O-word #<_call_level>/#<_remap_level> branch motion")
|
||||
|
||||
exists_word_value = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_exists_word_value.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 2 and
|
||||
event["end"]["x"] == 1 and
|
||||
event["end"]["y"] == 0 and
|
||||
event["end"]["z"] == 1 and
|
||||
event["end"]["a"] == 0
|
||||
for event in exists_word_value
|
||||
):
|
||||
raise SystemExit("missing source-linked direct EXISTS word-value motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1 and
|
||||
event["end"]["y"] == 0 and
|
||||
event["end"]["z"] == 0
|
||||
for event in exists_word_value
|
||||
):
|
||||
raise SystemExit("missing source-linked indirect EXISTS word-value motion")
|
||||
|
||||
lowercase_numeric_oword = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_lowercase_numeric_oword.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 9 and
|
||||
event["end"]["x"] == 6
|
||||
for event in lowercase_numeric_oword
|
||||
):
|
||||
raise SystemExit("missing source-linked lowercase numeric O-word return[value] motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 11 and
|
||||
event["end"]["y"] == 7
|
||||
for event in lowercase_numeric_oword
|
||||
):
|
||||
raise SystemExit("missing source-linked lowercase numeric O-word endsub[value] motion")
|
||||
|
||||
parameter_expression_assignment = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_parameter_expression_assignment.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 2 and
|
||||
event["end"]["y"] == 3 and
|
||||
event["end"]["z"] == 4
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked parameter expression assignment motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 8 and
|
||||
event["end"]["a"] == 7
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked parameter reference expression-index motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 9 and
|
||||
event["end"]["b"] == 5
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked word parameter unary expression-index motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 11 and
|
||||
event["end"]["c"] == 5
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked word parameter signed expression-index motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 13 and
|
||||
event["end"]["u"] == 6
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked parameter assignment signed expression-index motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 14 and
|
||||
event["end"]["v"] == 6
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked whitespace-insensitive parameter expression-index motion")
|
||||
if not any(
|
||||
event["type"] == "rapid" and
|
||||
event["line"] == 15 and
|
||||
event["end"]["w"] == 3
|
||||
for event in parameter_expression_assignment
|
||||
):
|
||||
raise SystemExit("missing source-linked whitespace-insensitive word value motion")
|
||||
|
||||
word_bracket_whitespace = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_word_bracket_whitespace.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["x"] == 3
|
||||
for event in word_bracket_whitespace
|
||||
):
|
||||
raise SystemExit("missing source-linked spaced bracket word X motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["y"] == 3
|
||||
for event in word_bracket_whitespace
|
||||
):
|
||||
raise SystemExit("missing source-linked plus-spaced bracket word Y motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == -3
|
||||
for event in word_bracket_whitespace
|
||||
):
|
||||
raise SystemExit("missing source-linked minus-spaced bracket word X motion")
|
||||
|
||||
m98_mixed_styles = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_m98_mixed_styles_variables.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 13.01 and
|
||||
event["end"]["y"] == 13.3 and
|
||||
event["end"]["z"] == 13.31
|
||||
for event in m98_mixed_styles
|
||||
):
|
||||
raise SystemExit("missing source-linked M98 mixed-style global-parameter motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 10 and
|
||||
event["end"]["a"] == 42.01 and
|
||||
event["end"]["b"] == 42.3 and
|
||||
event["end"]["c"] == 13.31
|
||||
for event in m98_mixed_styles
|
||||
):
|
||||
raise SystemExit("missing source-linked O-word mixed-style local-parameter motion")
|
||||
|
||||
arc_center_tolerance_good_imperial = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_arc_center_tolerance_good_imperial.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "arc-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 5
|
||||
for event in arc_center_tolerance_good_imperial
|
||||
):
|
||||
raise SystemExit("missing source-linked small imperial center-format arc within tolerance")
|
||||
|
||||
g76only = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g76only.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "comment" and
|
||||
event["line"] == 8 and
|
||||
event["reserved"] == 3301
|
||||
for event in g76only
|
||||
):
|
||||
raise SystemExit("missing source-linked G76 speed-feed sync start in g76only fixture")
|
||||
if not any(
|
||||
event["type"] == "program-end" and
|
||||
event["line"] == 13
|
||||
for event in g76only
|
||||
):
|
||||
raise SystemExit("missing source-linked G76-only program end")
|
||||
|
||||
numbered_parameters = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 6 and
|
||||
event["end"]["x"] == 1
|
||||
for event in numbered_parameters
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered tool/position parameter branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 10 and
|
||||
event["end"]["y"] == 1
|
||||
for event in numbered_parameters
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered probe parameter branch motion")
|
||||
|
||||
rotary_probe_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_rotary_probe_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1 and
|
||||
event["end"]["a"] == 5
|
||||
for event in rotary_probe_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered rotary probe parameter branch motion")
|
||||
|
||||
multi_rotary_probe_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_multi_rotary_probe_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1 and
|
||||
event["end"]["a"] == 5 and
|
||||
event["end"]["b"] == 6 and
|
||||
event["end"]["c"] == 7 and
|
||||
event["end"]["u"] == 8 and
|
||||
event["end"]["v"] == 9 and
|
||||
event["end"]["w"] == 10
|
||||
for event in multi_rotary_probe_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered multi-axis rotary probe parameter branch motion")
|
||||
|
||||
tool_info_zero_parameter = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_tool_info_zero_parameter.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in tool_info_zero_parameter
|
||||
):
|
||||
raise SystemExit("missing source-linked zeroed #5400/#5410/#5411/#5412/#5413 branch motion")
|
||||
|
||||
spindle_tool_info_parameter = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_spindle_tool_info_parameter.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in spindle_tool_info_parameter
|
||||
):
|
||||
raise SystemExit("missing source-linked preloaded spindle-tool #5400/#5410/#5411/#5412/#5413 branch motion")
|
||||
|
||||
g28_g30_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g28_g30_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 7 and
|
||||
event["end"]["x"] == 10
|
||||
for event in g28_g30_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked G28/G30 numbered parameter branch motion")
|
||||
|
||||
rotary_g28_g30_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_rotary_g28_g30_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 7 and
|
||||
event["end"]["x"] == 1 and
|
||||
event["end"]["a"] == 7 and
|
||||
event["end"]["b"] == 8 and
|
||||
event["end"]["c"] == 9 and
|
||||
event["end"]["u"] == 10 and
|
||||
event["end"]["v"] == 11 and
|
||||
event["end"]["w"] == 12
|
||||
for event in rotary_g28_g30_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked rotary G28/G30 numbered parameter branch motion")
|
||||
|
||||
g92_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g92_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g92_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked G92 numbered parameter branch motion")
|
||||
|
||||
rotary_g92_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_rotary_g92_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in rotary_g92_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked rotary G92 numbered parameter branch motion")
|
||||
|
||||
g52_g92_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g52_g92_numbered_interaction.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 6 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g52_g92_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked G52 X0 Y0 #5210/#5211/#5212 branch motion")
|
||||
|
||||
g5x_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g5x_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g5x_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked G5X numbered parameter branch motion")
|
||||
|
||||
g593_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g59_3_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g593_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked G59.3 numbered parameter branch motion")
|
||||
|
||||
g593_rotary_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g59_3_rotary_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g593_rotary_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked rotary G59.3 numbered parameter branch motion")
|
||||
|
||||
g5x_rotary_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g5x_rotary_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g5x_rotary_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked rotary G5X numbered parameter branch motion")
|
||||
|
||||
g54_rotary_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g54_rotary_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g54_rotary_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked rotary G54 numbered parameter branch motion")
|
||||
|
||||
debug_level_parameter = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_debug_level_parameter.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["x"] == 1
|
||||
for event in debug_level_parameter
|
||||
):
|
||||
raise SystemExit("missing source-linked #5599 enabled debug-level branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 8 and
|
||||
event["end"]["y"] == 1
|
||||
for event in debug_level_parameter
|
||||
):
|
||||
raise SystemExit("missing source-linked #5599 disabled debug-level branch motion")
|
||||
if any(
|
||||
event["type"] == "comment" and event["line"] in {5, 10}
|
||||
for event in debug_level_parameter
|
||||
):
|
||||
raise SystemExit("unexpected source-linked generic comment event for DEBUG hot comment")
|
||||
|
||||
m66_result_parameter = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_m66_result_parameter.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in m66_result_parameter
|
||||
):
|
||||
raise SystemExit("missing source-linked #5399 digital M66 result branch motion")
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 9 and
|
||||
event["end"]["y"] == 1
|
||||
for event in m66_result_parameter
|
||||
):
|
||||
raise SystemExit("missing source-linked #5399 analog M66 result branch motion")
|
||||
|
||||
tool_offset_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_tool_offset_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == -1 and
|
||||
event["end"]["y"] == 1 and
|
||||
event["end"]["z"] == -2
|
||||
for event in tool_offset_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered tool-offset/current-position parameter branch motion")
|
||||
|
||||
rotary_tool_offset_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_rotary_tool_offset_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1 and
|
||||
event["end"]["a"] == -1 and
|
||||
event["end"]["b"] == -2 and
|
||||
event["end"]["c"] == -3 and
|
||||
event["end"]["u"] == -4 and
|
||||
event["end"]["v"] == -5 and
|
||||
event["end"]["w"] == -6
|
||||
for event in rotary_tool_offset_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered rotary tool-offset/current-position parameter branch motion")
|
||||
|
||||
current_position_numbered = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_current_position_numbered_parameters.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 10 and
|
||||
event["end"]["y"] == 2 and
|
||||
event["end"]["z"] == 3 and
|
||||
event["end"]["a"] == 4 and
|
||||
event["end"]["b"] == 5 and
|
||||
event["end"]["c"] == 6 and
|
||||
event["end"]["u"] == 7 and
|
||||
event["end"]["v"] == 8 and
|
||||
event["end"]["w"] == 9
|
||||
for event in current_position_numbered
|
||||
):
|
||||
raise SystemExit("missing source-linked numbered current-position parameter branch motion")
|
||||
|
||||
persistent_parameters_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_persistent_parameters_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in persistent_parameters_check
|
||||
):
|
||||
raise SystemExit("missing source-linked persistent parameter reload branch motion")
|
||||
|
||||
rotary_persistent_parameters_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_rotary_persistent_parameters_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 5 and
|
||||
event["end"]["x"] == 1
|
||||
for event in rotary_persistent_parameters_check
|
||||
):
|
||||
raise SystemExit("missing source-linked rotary persistent parameter reload branch motion")
|
||||
|
||||
g54_persistent_parameters_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_g54_persistent_parameters_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 4 and
|
||||
event["end"]["x"] == 1
|
||||
for event in g54_persistent_parameters_check
|
||||
):
|
||||
raise SystemExit("missing source-linked G54 persistent parameter reload branch motion")
|
||||
|
||||
user_persistent_parameter_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["x"] == 1
|
||||
for event in user_persistent_parameter_check
|
||||
):
|
||||
raise SystemExit("missing source-linked empty-var #5001 non-persistence branch motion")
|
||||
|
||||
user_existing_persistent_parameter_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_user_existing_persistent_parameter_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["x"] == 1
|
||||
for event in user_existing_persistent_parameter_check
|
||||
):
|
||||
raise SystemExit("missing source-linked existing-var #5001 persistence branch motion")
|
||||
|
||||
user_persistent_parameter_boundary_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_boundary_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["x"] == 1
|
||||
for event in user_persistent_parameter_boundary_check
|
||||
):
|
||||
raise SystemExit("missing source-linked #5000/#5001/#5030/#5060 persistence boundary branch motion")
|
||||
|
||||
volatile_global_parameter_check = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_volatile_global_parameter_check.json").read_text())
|
||||
if not any(
|
||||
event["type"] == "linear-feed" and
|
||||
event["line"] == 3 and
|
||||
event["end"]["x"] == 1
|
||||
for event in volatile_global_parameter_check
|
||||
):
|
||||
raise SystemExit("missing source-linked volatile global #31 reset branch motion")
|
||||
|
||||
coords = json.loads(Path("/tmp/cnc_sim_linuxcnc_source_coordinate_offsets.json").read_text())
|
||||
g5x = [event for event in coords if event["type"] == "set-g5x-offset"]
|
||||
g92 = [event for event in coords if event["type"] == "set-g92-offset"]
|
||||
@@ -1245,6 +2050,7 @@ echo "dumped /tmp/cnc_sim_linuxcnc_source_dynamic_tool_length.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_canned_cycle.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_canned_cycles_extended.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_canned_cycle_planes.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_extended_plane_cycle.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_arc_planes.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_arc_distance_modes.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_predefined_positions.json"
|
||||
@@ -1258,6 +2064,48 @@ echo "dumped /tmp/cnc_sim_linuxcnc_source_named_parameter_exists.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_indexed_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_named_parameter_normalization.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_ini_named_parameter.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_readonly_named_parameters_extra.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_value_returned.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_call_level.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_exists_word_value.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_lowercase_numeric_oword.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_parameter_expression_assignment.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_word_bracket_whitespace.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_m98_mixed_styles_variables.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_arc_center_tolerance_good_imperial.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g76only.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_rotary_probe_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_multi_rotary_probe_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_tool_info_zero_parameter.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_spindle_tool_info_parameter.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g28_g30_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_rotary_g28_g30_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g92_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_rotary_g92_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g52_g92_numbered_interaction.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g5x_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g59_3_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g59_3_rotary_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g5x_rotary_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g54_rotary_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_debug_level_parameter.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_m66_result_parameter.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_tool_offset_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_rotary_tool_offset_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_current_position_numbered_parameters.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_persistent_parameters_set.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_persistent_parameters_check.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_rotary_persistent_parameters_set.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_rotary_persistent_parameters_check.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g54_persistent_parameters_set.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_g54_persistent_parameters_check.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_set.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_check.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_user_existing_persistent_parameter_set.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_user_existing_persistent_parameter_check.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_boundary_set.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_user_persistent_parameter_boundary_check.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_coordinate_offsets.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_coordinate_l20.json"
|
||||
echo "dumped /tmp/cnc_sim_linuxcnc_source_coordinate_p0.json"
|
||||
|
||||
Reference in New Issue
Block a user