Commit graph

20 commits

Author SHA1 Message Date
Daniele Forsi IU5HKX
8b9e271ce1 Add various get and set methods for rotators to the bindings
Adds has_get_func, has_get_level, has_get_parm, has_set_func,
has_set_level, has_set_parm.
Brings tests coverage of rot_settings.c to 100%.
2025-09-21 16:27:12 +02:00
Daniele Forsi IU5HKX
a9afa8d4d9 Handle --rot-file and --serial_speed in bindings tests
This allow to run the tests for a specific model, eg.
PYTHONPATH=bindings/:bindings/.libs bindings/python/test_rot.py --model 2
2025-09-09 20:36:58 +02:00
Daniele Forsi IU5HKX
3b79b13f6d Make the tests for set_conf() and get_conf() more meaningful 2025-08-11 23:41:39 +02:00
Daniele Forsi IU5HKX
6088445635 Allow to execute some tests with a simulator or with a real rotator
To execute the tests with the installed Hamlib use the same long arguments
as rotctl, eg:
 bindings/python/test_rot.py --model {MODEL_NUMBER} --rot-file /dev/ttyUSB0 --serial-speed {BAUD}

To execute the tests from the build tree, add the path to the libraries
that you built, eg. from the root of the build tree:
 PYTHONPATH=bindings/:bindings/.libs/ ...your command...
2025-07-27 12:53:23 +02:00
Daniele Forsi IU5HKX
66977a0f12 Explain unexpected results 2025-06-22 08:10:47 +02:00
Daniele Forsi IU5HKX
5d1baed7e5 Test setting and getting meaningful values 2025-06-22 08:02:15 +02:00
Daniele Forsi IU5HKX
5c58c99207 Implement Rot.get_ext_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
6fd6e94d3b Implement Rot.get_ext_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
e34026707c Implement Rot.get_ext_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
be1a558e0d Implement Rot.set_ext_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
f7710d96b0 Implement Rot.set_ext_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
20960b726e Implement Rot.set_ext_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
5d142de5cd Implement Rot.get_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
8093f05c65 Implement Rot.get_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
94774a63d9 Implement Rot.set_level() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
cfca827f5e Implement Rot.set_parm() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
bb79bbc278 Implement Rot.get_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
cc0dbc9efd Implement Rot.set_func() 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
5a5279492e Mark asserts that are currently failing 2025-06-22 07:57:58 +02:00
Daniele Forsi IU5HKX
a172b6001f Add tests for the Rot object 2025-06-22 07:57:58 +02:00