Runs inside a live Omarchy session (typically a VM installed by omarchy-iso-test) and verifies the desktop actually works: session health, application launches by window class, and shell surfaces via IPC — including typing into the launcher and launching the top hit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"
|
|
|
|
# The compositor reports at least one monitor
|
|
monitors=$(hyprctl -j monitors | jq 'length')
|
|
(( monitors >= 1 )) || fail "compositor reports a monitor"
|
|
pass "compositor reports a monitor"
|
|
|
|
# The Omarchy shell is running and responsive
|
|
wait_until "omarchy-shell responds to ping" 60 omarchy-shell shell ping
|
|
|
|
# Core shell plugins are loaded
|
|
plugins=$(omarchy-shell shell listPlugins)
|
|
for plugin in omarchy.bar omarchy.launcher omarchy.emojis omarchy.menu omarchy.notifications; do
|
|
[[ $plugins == *"$plugin"* ]] || fail "shell plugin is loaded: $plugin" "loaded plugins: $plugins"
|
|
pass "shell plugin is loaded: $plugin"
|
|
done
|
|
|
|
# The bar and background are actually on screen
|
|
wait_until "bar layer is on screen" 30 layer_present "omarchy-bar"
|
|
wait_until "background layer is on screen" 30 layer_present "omarchy-background"
|
|
|
|
# Audio stack is up
|
|
wait_until "pipewire is running" 30 wpctl status
|
|
|
|
# Root filesystem is btrfs as installed
|
|
[[ $(findmnt -no FSTYPE /) == "btrfs" ]] || fail "root filesystem is btrfs"
|
|
pass "root filesystem is btrfs"
|
|
|
|
# Omarchy reports its version
|
|
omarchy-version >/dev/null || fail "omarchy-version works"
|
|
pass "omarchy-version works"
|
|
|
|
# No failed units, system or user. OMARCHY_ACCEPTANCE_IGNORE_UNITS can hold a
|
|
# regex of units to overlook (useful on dev machines; a fresh VM should be clean).
|
|
failed_units() {
|
|
systemctl "$@" --failed --no-legend --plain | awk '{print $1}' |
|
|
grep -Ev "${OMARCHY_ACCEPTANCE_IGNORE_UNITS:-^$}" || true
|
|
}
|
|
|
|
failed_system=$(failed_units --system)
|
|
if [[ -n $failed_system ]]; then
|
|
fail "no failed system units" "failed units: $failed_system"
|
|
fi
|
|
pass "no failed system units"
|
|
|
|
failed_user=$(failed_units --user)
|
|
if [[ -n $failed_user ]]; then
|
|
fail "no failed user units" "failed units: $failed_user"
|
|
fi
|
|
pass "no failed user units"
|
|
|
|
screenshot "desktop"
|