`radio` lists each radio plugged into USB: its serial ports, the sound card that came with it (the same USB device, or behind the radio's own hub), and its model and Hamlib model number. Icoms are recognised by their USB serial number. `radio detect --probe` asks the others with the CAT ID; command or Icom's CI-V transceiver ID, at the usual baud rates, on ports no other program has open; `radio probe PORT` asks one port. It drops DTR and RTS as soon as a port opens. The radios it knows are in radios.conf. update.sh links ~/.local/bin/radio to the clone, unless a different radio is already there, and adds you to uucp, which owns serial ports on Arch. hampackremove removes the link, and takes you out of uucp only if HamPack put you in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HamPack's smoketest
End-to-end tests of HamPack on a real Arch + GNOME virtual machine with
CoreDesktop installed: sibling add, update and hampackremove, with real
pacman, AUR, Flatpak and source builds. The bats tests in tests/ check the
logic with fake commands; these check what fakes can't.
They run with CoreDesktop's smoketest, from the coredesktop-dev sibling
project, with HamPack's working copy beside CoreDesktop's (in ~/Projects):
coredesktop-dev smoketest list --with HamPack
coredesktop-dev smoketest run --with HamPack # the quick (pr) scenarios, CoreDesktop's too
coredesktop-dev smoketest run --with HamPack HamPack/30 # just this one
coredesktop-dev smoketest run --with HamPack --tier all # everything, including fresh installs
Each working copy's HEAD is tested, so commit first. The first run builds
the installed+HamPack image, CoreDesktop's installed image after sibling add HamPack at the commit this branch started from. That takes an hour or two,
building the source apps; later runs reuse it. See coredesktop-dev's README for
what the smoketest needs and how its images work.
Files
| File | What it is |
|---|---|
project.conf |
HamPack's name, parent (CoreDesktop) and URL, for the driver |
setup |
Runs in each VM first: sets HAMPACK_SKIP_WINDOWS_APPS, since no one is there to click through the Windows installers |
health |
Runs in the VM; checks every package, Flatpak and app HamPack installs, at its version, with its libraries and desktop file |
lib.sh |
Helpers for the scenarios, on top of CoreDesktop's smoketest/lib/scenario.sh |
scenarios/NN-name.sh |
One scenario each |
Scenarios are written like CoreDesktop's (see its smoketest/README.md), with
HamPack named where it matters: upstream_commit HamPack MESSAGE SCRIPT
releases a new HamPack commit, and health HamPack checks HamPack alone.
Not covered
The Windows applications (VARA, Winlink Express), anything that needs a radio, and whether the apps work beyond starting: check those by hand.