@@ -442,6 +442,75 @@ def _test_easycomm3_rotctl_v4_move_up():
442442 allowed_rotctl_versions = ROTCTL_VERSION_4
443443 )
444444
445+ @staticmethod
446+ def _test_easycomm3_rotctl_v4_move_down ():
447+ # defect behaviour is reported in https://github.com/Hamlib/Hamlib/issues/1006
448+ return TestData (
449+ description = "rotctl=v4.x easycomm=3 move: DOWN SPEED" ,
450+ rotctl_commands = "\\ move 4 100\n {}" .format (EXIT_SEQUENCE ),
451+ expected_test_program_stdout_lines = [
452+ r"received: >VD9900<" ,
453+ r"received: >RESET<" ],
454+ allowed_test_program_return_codes = [0 ],
455+ expected_rotctl_stdout_lines = [
456+ r"Rotator command: \\move 4 100" ,
457+ "" ,
458+ r"Rotator command: \\pause 0.2\d*" ,
459+ "" ,
460+ r"Rotator command: \\reset 0" ,
461+ "" ,
462+ "Rotator command: q" ],
463+ allowed_rotctl_return_codes = [0 ],
464+ rotctl_extra_program_cli_args = [EASYCOMM_3_CLI_ARG ],
465+ allowed_rotctl_versions = ROTCTL_VERSION_4
466+ )
467+
468+ @staticmethod
469+ def _test_easycomm3_rotctl_v4_move_left ():
470+ # defect behaviour is reported in https://github.com/Hamlib/Hamlib/issues/1006
471+ return TestData (
472+ description = "rotctl=v4.x easycomm=3 move: LEFT SPEED" ,
473+ rotctl_commands = "\\ move 8 100\n {}" .format (EXIT_SEQUENCE ),
474+ expected_test_program_stdout_lines = [
475+ r"received: >VL9900<" ,
476+ r"received: >RESET<" ],
477+ allowed_test_program_return_codes = [0 ],
478+ expected_rotctl_stdout_lines = [
479+ r"Rotator command: \\move 8 100" ,
480+ "" ,
481+ r"Rotator command: \\pause 0.2\d*" ,
482+ "" ,
483+ r"Rotator command: \\reset 0" ,
484+ "" ,
485+ "Rotator command: q" ],
486+ allowed_rotctl_return_codes = [0 ],
487+ rotctl_extra_program_cli_args = [EASYCOMM_3_CLI_ARG ],
488+ allowed_rotctl_versions = ROTCTL_VERSION_4
489+ )
490+
491+ @staticmethod
492+ def _test_easycomm3_rotctl_v4_move_right ():
493+ # defect behaviour is reported in https://github.com/Hamlib/Hamlib/issues/1006
494+ return TestData (
495+ description = "rotctl=v4.x easycomm=3 move: RIGHT SPEED" ,
496+ rotctl_commands = "\\ move 16 100\n {}" .format (EXIT_SEQUENCE ),
497+ expected_test_program_stdout_lines = [
498+ r"received: >VR9900<" ,
499+ r"received: >RESET<" ],
500+ allowed_test_program_return_codes = [0 ],
501+ expected_rotctl_stdout_lines = [
502+ r"Rotator command: \\move 16 100" ,
503+ "" ,
504+ r"Rotator command: \\pause 0.2\d*" ,
505+ "" ,
506+ r"Rotator command: \\reset 0" ,
507+ "" ,
508+ "Rotator command: q" ],
509+ allowed_rotctl_return_codes = [0 ],
510+ rotctl_extra_program_cli_args = [EASYCOMM_3_CLI_ARG ],
511+ allowed_rotctl_versions = ROTCTL_VERSION_4
512+ )
513+
445514 @staticmethod
446515 def _test_easycomm3_set_velocityd ():
447516 return None # TODO
0 commit comments