Wykres commitów

12397 Commity (ad8707c74cea2bea661ffd1a187db36dc269e06c)

Autor SHA1 Wiadomość Data
Nate Bargmann ad8707c74c
Merge GitHub PR #1864 2025-08-22 15:21:04 -05:00
Daniele Forsi IU5HKX 6eb7c1d6dd Fix build failure on openSUSE Tumbleweed, Slowroll and Leap 16.0
Thanks to @dl8fcl Walter.
2025-08-22 22:02:01 +02:00
aa5sh b953141b0f Bug Fixes for FTX1
Needed to adjust one of the timeouts.  Was causing issues on Windows.  Also made some changes due to IF command response size being 30, it was erroring out.  And last band mapping  was a little different on this rig for 2m, 70cm, 4m and Air Band.
2025-08-21 22:54:31 -05:00
Daniele Forsi IU5HKX 0317e64dc8 Remove double call to rig_token_lookup() and rot_token_lookup()
The needed value is already in the variable.

Test case /to check that the changes don't break the code):
tests/rigctl --set-conf=rig_pathname=test,write_delay=1,timeout=2 --show-conf Q | grep --no-group-separator -A1 -E "(rig_pathname|^write_delay|^timeout):"
tests/rotctl --set-conf=rot_pathname=test,write_delay=1,timeout=2 --show-conf Q | grep --no-group-separator -A1 -E "(rot_pathname|^write_delay|^timeout):"

The output before and after this patch is:
rig_pathname: "Path name to the device file of the rig"
        Default: /dev/rig, Value: test
write_delay: "Delay in ms between each byte sent out"
        Default: 0, Value: 1
timeout: "Timeout in ms"
        Default: 0, Value: 2
Command 'Q' not found!
rot_pathname: "Path name to the device file of the rotator"
        Default: /dev/rotator, Value: test
write_delay: "Delay in ms between each byte sent out"
        Default: 0, Value: 1
timeout: "Timeout in ms"
        Default: 0, Value: 2
2025-08-20 23:07:48 +02:00
Nate Bargmann 32d064d60b
Merge GitHub PR #1860 2025-08-20 13:03:23 -05:00
Daniele Forsi IU5HKX 8847cbeafb Implement send_raw for the Perl bindings
Doesn't allow '\0' embedded in the strings to be sent or received.
Closes #1479.
2025-08-20 19:18:02 +02:00
Daniele Forsi IU5HKX cbefd0835f Do not show any debug trace messages unless requested with -vvvvv
This fixes the following commands that always printed debug messages
at the trace level:
 tests/ampctld -l >/dev/null
 tests/ampctl -h >/dev/null
 tests/rigctld -l >/dev/null
 tests/rigctltcp -l >/dev/null
 tests/rotctld -l >/dev/null
It doesn't affect other software which worked around this issue,
but changes all software to avoid regressions in future.

Test case (should print nothing in bash):
{
tests/ampctl -l -h
tests/ampctld -l -h
tests/rigctl -l -h
tests/rigctlcom -l -h
tests/rigctld -l -h
tests/rigctlsync -l -h
tests/rigctltcp -l -h
tests/rotctl -l -h
tests/rotctld -l -h
} >/dev/null
2025-08-20 17:03:32 +02:00
Daniele Forsi IU5HKX 5a001ab3aa Explicitely initialize static int verbose 2025-08-20 12:17:29 +02:00
Daniele Forsi IU5HKX ead67ec170 Replace magic number with define 2025-08-20 12:17:29 +02:00
Nate Bargmann d6165f7411
Merge GitHub PR #1859 2025-08-19 20:21:03 -05:00
Nate Bargmann db7219b731
Merge GitHub PR #1858 2025-08-19 20:05:20 -05:00
Nate Bargmann 285b44add6
Merge GitHub PR #1857 2025-08-19 19:50:45 -05:00
Nate Bargmann e2ced58a14
Merge GitHub PR #1855 2025-08-19 13:23:37 -05:00
Nate Bargmann c4aad6e0ec
Merge GitHub PR #1854 2025-08-19 13:18:47 -05:00
Nate Bargmann ab311ac97b
Merge GitHub PR #1852 2025-08-19 13:06:34 -05:00
Nate Bargmann cde3a59432
Merge GitHub PR #1851 2025-08-19 12:59:51 -05:00
Daniele Forsi IU5HKX 7a9e101b9d Add missing string form for RIG_FUNC_SLICE 2025-08-19 19:41:26 +02:00
Daniele Forsi IU5HKX a0fa2def82 Refactor to remove code duplication in rotctl*.c 2025-08-19 16:51:31 +02:00
Daniele Forsi IU5HKX 90ffcadfa5 Refactor to remove code duplication in ampctl*.c 2025-08-19 16:51:31 +02:00
Daniele Forsi IU5HKX 67038154db Refactor to remove code duplication in rigctl*.c 2025-08-19 16:51:31 +02:00
Daniele Forsi IU5HKX 7fce140970 Make help texts more similar 2025-08-19 16:51:19 +02:00
Nate Bargmann c15fecb865
Merge GitHub PR #1849 2025-08-19 08:16:22 -05:00
Daniele Forsi IU5HKX 6049d020a5 Fix compiler errors
Adds the needed const qualifier.

Fixes:
rigmatrix.c:699:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:706:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:728:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:762:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:771:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:805:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:814:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:848:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:857:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
rigmatrix.c:891:22: error: passing argument 1 of ‘rig_list_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
2025-08-19 10:36:25 +02:00
Daniele Forsi IU5HKX 7746d59438 Implement get_agc for flrig 2.0.06+
Test case:
run: flrig configured for the rig in use
run: tests/rigctl -m 4 get_level AGC
expected: should print an enum agc_level_e (an integer in range 0..10)

Part of issue #1376.
2025-08-19 09:08:28 +02:00
Nate Bargmann 3fa91c8771
Document fixing MinGW warnings and linker error
This commit has been left as documentation should these files be moved
to /doc or some such.  However, never of these files are built or
distributed.

----------------

From example.c the following warning was generated by MinGW:

  CC       example.o
example.c: In function ‘main’:
example.c:93:32: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘rmode_t’ {aka ‘long long unsigned int’} [-Wformat=]
   93 |     printf("Current mode = 0x%lX = %s, width = %ld\n", mode, rig_strrmode(mode),
      |                              ~~^                       ~~~~
      |                                |                       |
      |                                long unsigned int       rmode_t {aka long long unsigned int}
      |                              %llX

The 'l' was added as suggested to the format specifier but that resulted
in the following warning from Linux:

  CC       example.o
../../hamlib/tests/example.c:93:57: warning: format specifies type 'unsigned long long' but the argument has type 'rmode_t' (aka 'unsigned long') [-Wformat]
    printf("Current mode = 0x%llX = %s, width = %ld\n", mode, rig_strrmode(mode),
                             ~~~~                       ^~~~
                             %lX
  CC       rigctl-dumpcaps.o
1 warning generated.

So casting `mode` to `unsigned long long` quelled both warnings!

From testsecurity.c came this warning:

  CC       testsecurity-testsecurity.o
In file included from ../include/hamlib/rig.h:49,
                 from ../src/misc.h:26,
                 from testsecurity.c:29:
/usr/share/mingw-w64/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
   15 | #warning Please include winsock2.h before windows.h
      |  ^~~~~~~

Apparently winsock2.h being included through misc.h didn't work.

Finally, the Mingw linker gave the following error:

 CCLD     testsecurity.exe
/usr/bin/x86_64-w64-mingw32-ld: testsecurity-testsecurity.o: in function `main':
/home/nate/builds/hamlib-4.7~git/tests/testsecurity.c:97:(.text.startup+0x87): undefined reference to `AESStringCrypt'
/usr/bin/x86_64-w64-mingw32-ld: /home/nate/builds/hamlib-4.7~git/tests/testsecurity.c:116:(.text.startup+0x128): undefined reference to `AESStringDecrypt'
collect2: error: ld returned 1 exit status

Specifcally add the libsecurity.la file path as a specific library.
Even though the libhamlib.la seems to have the AESStringCrypt symbol
already.
2025-08-18 17:24:08 -05:00
Daniele Forsi IU5HKX 73a967e569
Remove the remaining files of the DejaGnu tests
The tests were disabled in commit cb1732fc2a.
2025-08-18 17:17:32 -05:00
Daniele Forsi IU5HKX 6e3b8b223d
Remove the perl/ subdirectory
It breaks "make dist", it was deprecated in favor of SWIG in
commit 59b81dfa18 and if only
the contained some Makefiles.
2025-08-18 17:17:32 -05:00
Daniele Forsi IU5HKX e3d1ed00b7
Split and sort the list of DIST_SUBDIRS 2025-08-18 17:17:32 -05:00
Daniele Forsi IU5HKX 8f0c94dc77
[simulators] Fix compiler warning
Adds the same code used in other simulators.

Fixes:
simft897.c:26:9: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
2025-08-18 17:17:32 -05:00
Daniele Forsi IU5HKX 1aafbb3f24
[simulators] Add missing files to check_PROGRAMS 2025-08-18 17:17:31 -05:00
Daniele Forsi IU5HKX 271129705a
[simulators] Split and sort the list of check_PROGRAMS 2025-08-18 17:17:31 -05:00
Daniele Forsi IU5HKX c91c3feac0
[tests] Make testnet.c build 2025-08-18 09:02:09 -05:00
Daniele Forsi IU5HKX edda52b40e
[tests] Fix search path for includes 2025-08-18 09:02:08 -05:00
Daniele Forsi IU5HKX dadd6e1495
[tests] Set return codes in case of success/failure of the tests 2025-08-18 09:02:08 -05:00
Daniele Forsi IU5HKX 014b34e674
[tests] Convert line endings from CR LF to LF 2025-08-18 09:02:08 -05:00
Daniele Forsi IU5HKX 8dc20bb270
[tests] Remove non-working duplicated code
It is almost an exact copy of testrigopen 1 line different and
without includes so it's not compiling.
2025-08-18 09:02:07 -05:00
Daniele Forsi IU5HKX 26412650a6
[tests] Add other existing test scripts
Adds: amptest.sh and testcaps.sh
Doesn't add cachetest.sh because it needs 2 instances of rigctld running.
2025-08-18 09:02:07 -05:00
Daniele Forsi IU5HKX d4eee93c85
[tests] Add missing files to EXTRA_DIST 2025-08-18 09:02:07 -05:00
Daniele Forsi IU5HKX 53e27d6e88
[tests] Split and sort the list of EXTRA_DIST files 2025-08-18 09:02:07 -05:00
Daniele Forsi IU5HKX 8805748e74
[simulators] Add missing files to EXTRA_DIST 2025-08-18 09:02:06 -05:00
Daniele Forsi IU5HKX 69a9f15e3e
[security] Add missing files to EXTRA_DIST 2025-08-18 09:02:06 -05:00
Daniele Forsi IU5HKX 250d661a2a
[rigs] Remove uneeded EXTRA_DIST files 2025-08-18 09:01:36 -05:00
Daniele Forsi IU5HKX 6a83b0d054
[doc] Split and sort the list of EXTRA_DIST files 2025-08-18 08:07:16 -05:00
Daniele Forsi IU5HKX 201b4544b7
Split and sort the list of EXTRA_DIST files 2025-08-18 08:07:16 -05:00
Daniele Forsi IU5HKX 897e59ef0e
Fix comment to be relevant to the parm 2025-08-18 08:03:44 -05:00
Daniele Forsi IU5HKX 3c7b3dafcf
Read the frequency just set and fix typos
Since ampctl is using the dummy driver, the status is reset at
every run and it can't read the value set during the previous run.
2025-08-18 07:47:14 -05:00
Daniele Forsi IU5HKX d4444d2247
Modifiy amptest.sh to run ampctl from the build directory 2025-08-18 07:47:13 -05:00
Daniele Forsi IU5HKX 3c214ed676
Make it easier to see what tests are missing
Sorts the list of tests.
2025-08-18 07:47:13 -05:00
Daniele Forsi IU5HKX d8b02a73e1
Add more files to tests/.gitignore 2025-08-18 07:47:13 -05:00
Daniele Forsi IU5HKX 3e43b513d6
Move list of ignored file to tests/ directory
Makes the tests/ directory more self-contained and the top-level
.gitgnore shorter.
2025-08-18 07:47:12 -05:00