Commit graph

11 commits

Author SHA1 Message Date
Mikael Nousiainen
e48fcc3035 Attempt to fix CodeQL issues and distcheck Python tests 2026-02-20 19:02:20 +02:00
Daniele Forsi IU5HKX
54bd989e72 Add various get and set methods for amplifiers to the bindings
Adds get_ext_level, has_get_level, has_set_level, set_ext_level,
set_level.
Brings function coverage of amplifier.c above 90%.
2025-09-21 16:27:12 +02:00
Daniele Forsi IU5HKX
911169d794 Handle --amp-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_amp.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
0df9d1767e Allow to execute some tests with a simulator or with a real amplifier
To execute the tests with the installed Hamlib use the same long arguments
as ampctl, eg:
 bindings/python/test_amp.py --model {MODEL_NUMBER} --amp-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:57:35 +02:00
Daniele Forsi IU5HKX
ce6e4a8e57 Make test_amp.py more similar to the others 2025-07-19 17:22:25 +02:00
Daniele Forsi IU5HKX
74914f0db8 Remove duplicated tests 2025-07-19 17:15:53 +02:00
Daniele Forsi IU5HKX
f7d38f92ca Implement Amp.get_level 2025-06-22 07:38:23 +02:00
Daniele Forsi IU5HKX
4e415f412b Implement Amp.get_freq 2025-06-22 07:38:23 +02:00
Daniele Forsi IU5HKX
02f7b96163 Implement Amp.get_powerstat 2025-06-22 07:38:23 +02:00
Daniele Forsi IU5HKX
98fdcf130f Add tests for the Amp object 2025-06-22 07:38:23 +02:00