Add xara, a VARA-compatible modem, alongside VARA under Wine
- compile.conf: build xara 0.1.3 with cargo, without the "registered" feature; stage-install xara, xara-monitor, man pages, the user service (pointed at ~/.local/bin) and the CM108/AIOC PTT udev rule; copy the config template to ~/.config/xara/xara.conf if it's not there. The service isn't enabled: it needs a callsign, and shares port 8300 with VARA - packages.conf: alsa-lib and libpulse; rust only when there's no cargo yet, since it conflicts with rustup - hampackremove: stop and disable the xara service, keep the user's settings and say where they are - README: how to set up xara and use it with Pat - tests for the xara build, the rust/cargo check and removal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6e100ba7d2
commit
cdba8b45e7
@@ -96,3 +96,22 @@ setup() {
|
||||
[[ "$output" == *"errors in: Installing Flatpak applications"* ]]
|
||||
grep -qx "uv tool install not1mm" "$STUB_LOG"
|
||||
}
|
||||
|
||||
@test "rust is installed for xara only when there's no cargo" {
|
||||
stub cargo 'exit 0'
|
||||
run bash "$REPO/update.sh"
|
||||
[ ! -e "$FAKE_PACMAN_DB/rust" ]
|
||||
|
||||
# A PATH with everything but cargo
|
||||
local nocargo="$BATS_TEST_TMPDIR/nocargo" dir f
|
||||
mkdir -p "$nocargo"
|
||||
rm "$STUB_DIR/cargo"
|
||||
for dir in /usr/local/bin /usr/bin; do
|
||||
for f in "$dir"/*; do
|
||||
[ "$(basename "$f")" = cargo ] || ln -sf "$f" "$nocargo/" 2> /dev/null
|
||||
done
|
||||
done
|
||||
PATH="$STUB_DIR:$nocargo" run bash "$REPO/update.sh"
|
||||
[ -e "$FAKE_PACMAN_DB/rust" ]
|
||||
grep -qx rust "$HAMPACK_STATE/installed-packages"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user