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
Daniele Forsi IU5HKX
4b64ea3169
Update autogenerated tests for Amp object
2025-06-22 07:57:55 +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
Daniele Forsi IU5HKX
57b23e7efc
Add autogenerated test scripts for pytest
2025-06-22 07:38:20 +02:00
Daniele Forsi IU5HKX
464450384d
Add a Python script to autogenerate some tests for pytest
2025-06-22 07:33:32 +02:00
Daniele Forsi IU5HKX
f2aaed6e09
Add missing type of the 4th argument of macro AMPMETHOD4
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
bca1d80d20
Move/add %immutable in their files
...
Makes the other files less dependent on being included by
hamlib.swg and more self-contained.
Also drop the symbols that are ignored.
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
48c40dc326
Move includes in the files where they are used
...
Makes the other files less dependent on being included by
hamlib.swg and more self-contained.
Need to explicitly add %include for amplist.h, riglist.h,
rotlist.h to have the definitions picked up by SWIG even
if they are included by the main .swg file.
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
4b0fa60e95
Remove ignored symbol
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
df0d434b27
Remove more symbols from Hamlib module using regexes
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
aa5c232def
Rename and fix AMPMETHOD1VGET macro
...
Drop the V which means VFO and add missing parentheses.
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
8a191213e6
Add missing definitions for amplifiers
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
bf4daf1486
Enable pytest in github actions, also for feature/* branches
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
637ccebe02
Test returned datatypes
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
591f7cf5c8
Fix Rig.get_ant()
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
65ffc5426b
Remove undocumented unused method rig.chan_clear()
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
77c02b58bb
Add tests for the Rig class
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
c693afb040
Replace print() with assert
...
So changes in behavior can be detected.
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
f4dcd7d565
Add a pytest test copying all the contents of the old py3test.py
...
Python tests are enabled by default when building the Python bindings
if pytest is available at configuration time:
./configure --with-python-binding
or
./configure --with-python-binding --enable-pytest=check
To fail the configure step if the tests can't be enabled:
./configure --with-python-binding --enable-pytest
or
./configure --with-python-binding --enable-pytest=yes
To disable the tests:
./configure --with-python-binding --enable-pytest=no
To run the tests:
make -C bindings/ check
2025-06-15 23:10:07 +02:00
Daniele Forsi IU5HKX
9fe3ae7e7d
Remove the scripts pytest.py and py3test.py
...
They will be replaced by the official pytest tool.
Because of name clash it would be impossible to call the pytest
tool from the bindings directory.
2025-06-15 23:10:07 +02:00
George Baltz N3GB
07d0d91a44
Yet more cppcheck messages silenced.
2025-06-15 13:52:09 -04:00
George Baltz N3GB
49e65de203
Get rid of spurious messages from \dump_caps
...
rig_sprintf_func() outputs a RIG_DEBUG_ERR message for each
function that the rig does not support.
2025-06-14 19:17:23 -04:00
Nate Bargmann
bddd3ace00
Revert 17b404a6c7
...
These changes were unnecessary as the real bug is that the incorrect
function was being called in meade.c.
Closes GitHub issue #268 .
Fix testloc.c
2025-06-14 11:42:45 -05:00
George Baltz N3GB
df2bf0c634
Fix 0x26 command in simic705.c - off by 1 byte
...
Reduce usage of rig.h idioms - use Icom values.
Reduce/cleanup some debug output.
Add width set (1A 03)
2025-06-13 14:37:35 -04:00
George Baltz N3GB
93434b6523
Put k3.c back in the right order
...
And make one more func static
2025-06-09 05:26:07 -04:00
George Baltz N3GB
39a1a367e1
Get rid of a few more style infractions.
...
Update NEWS.
2025-06-08 03:42:33 -04:00
George Baltz N3GB
c3d21b477e
Add build directory search for includes to cppcheck.sh
...
Try to find the build location if you build out of tree.
Not a very thorough sesrch, just enough to find it on my system.
Needs local customization for the general case.
Also fix missing ", delete config statement with bad syntax.
2025-06-07 10:46:31 -04:00
George Baltz N3GB
32b57107f4
More static and const additions.
2025-06-07 10:46:31 -04:00
George Baltz N3GB
5087894d71
Check off a few more cppcheck carps.
2025-06-07 10:46:31 -04:00
Nate Bargmann
7b60cb586d
Merge GitHub PR #1751
2025-06-07 07:56:07 -05:00
Daniele Forsi IU5HKX
10180a6dc2
Fix sign of error return values
...
All RIG_E* constants should be negated when returned or compared.
Fixed with:
perl -pe 's/return RIG_E/return -RIG_E/' -i $(grep -lEr "return RIG_E" --include=*.{c,h})
perl -pe 's/= RIG_E/= -RIG_E/g' -i $(grep -lEr "= RIG_E" --include=*.{c,h})
2025-06-07 12:07:44 +02:00
Daniele Forsi IU5HKX
721b81d9be
Fix sign of return values Doxygen comments
...
All RIG_E* constants are negated when returned.
Fied with:
perl -pe 's/return RIG_E/return -RIG_E/' -i src/vent.c
perl -pe 's/retval RIG_E/retval -RIG_E/g' -i $(grep -lEr "retval RIG_E" --include=*.{c,h})
2025-06-07 10:54:34 +02:00
Daniele Forsi IU5HKX
72bde6e131
Fix sign of error return values
...
All RIG_E* constants should be negated when returned or compared.
Change the usages of RIG_IS_SOFT_ERRCODE() for consistency.
2025-06-07 10:54:34 +02:00
Daniele Forsi IU5HKX
ae9556462a
Fix debug messages shown even from disabled levels
...
Messages from ENTERFUNC and RETURNFUNC where stored in an internal buffer
even whe debug_level wasn't TRACE and were returned when calling rigerror().
2025-06-07 09:14:32 +02:00
Nate Bargmann
355d237ffe
Merge GitHub PR #1758
2025-06-06 21:18:35 -05:00
Nate Bargmann
778edf7757
Merge GitHub PR #1757
2025-06-06 21:11:36 -05:00