A port of CoreDesktop's configure to Pop!_OS 24.04 with COSMIC, in the shape of connector-macos: its own install.sh, update and configure, installed in ~/.local/share/federated-connector/connector. Every configure item is ported: the Core (email, calendars and contacts through GNOME Online Accounts and Evolution, as COSMIC has no accounts of its own; Superpanel; files over davfs2; Element; Tally; the email watcher), Tailscale, backups, AI agents in the sandbox and their sign-ins, languages with mise, AI servers, printers, network storage and the agent sandbox. Folders go in the COSMIC Files sidebar. Each item installs what it needs from apt, Flathub or the tool's own apt repository when you set it up. smoketest/run checks it in Ubuntu 24.04 containers with Docker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.4 KiB
Bash
25 lines
1.4 KiB
Bash
# shellcheck shell=bash
|
|
# Scenarios set what the runner and items read
|
|
# shellcheck disable=SC2034
|
|
DESCRIPTION="configure --help, --list, the menu, and an item's first question"
|
|
TIER=quick
|
|
|
|
scenario() {
|
|
local out err
|
|
check "--help" "$CONNECTOR/configure" --help
|
|
out="$("$CONNECTOR/configure" --list 2> "$HOME/err")"
|
|
err="$(cat "$HOME/err")"
|
|
check_eq "--list writes nothing on stderr" "" "$err"
|
|
for item in core tailscale backup agents languages ai-servers printers storage; do
|
|
check "--list has $item" grep -qE "^(done|to do) +$item " <<< "$out"
|
|
done
|
|
check_not "--list leaves out sign-ins for agents that aren't installed" grep -qE ' (claude|opencode|hermes) ' <<< "$out"
|
|
check_not "--list leaves out the sandbox item without WinBoat" grep -q ' sandbox ' <<< "$out"
|
|
check "the menu quits on q" bash -c "echo q | '$CONNECTOR/configure' | grep -q 'Federated Core on this computer'"
|
|
check_not "it doesn't warn that this isn't Pop!_OS" bash -c "echo q | '$CONNECTOR/configure' | grep -q 'made for Pop'"
|
|
check_eq "an unknown item exits 2" 2 "$("$CONNECTOR/configure" nonsense > /dev/null; echo $?)"
|
|
check "configure core gives up on a Superpanel it can't reach" \
|
|
bash -c "printf 'https://superpanel.smoke.invalid\n' | '$CONNECTOR/configure' core | grep -q \"Couldn't reach https://superpanel.smoke.invalid\""
|
|
check_not "it doesn't run as root" sudo "$CONNECTOR/configure" --list
|
|
}
|