Test managed lock fallback integration
This commit is contained in:
@@ -13,6 +13,7 @@ test_bin="$fixture/bin"
|
|||||||
settings="$config_home/panama/settings.json"
|
settings="$config_home/panama/settings.json"
|
||||||
generated="$state_home/panama/hyprlock.conf"
|
generated="$state_home/panama/hyprlock.conf"
|
||||||
hyprlock_log="$fixture/hyprlock.log"
|
hyprlock_log="$fixture/hyprlock.log"
|
||||||
|
theme_helper="$repo_dir/config/dot/quickshell/scripts/panama-theme-apps"
|
||||||
|
|
||||||
fail() {
|
fail() {
|
||||||
printf 'lock screen helper contract: %s\n' "$1" >&2
|
printf 'lock screen helper contract: %s\n' "$1" >&2
|
||||||
@@ -27,7 +28,12 @@ trap cleanup EXIT
|
|||||||
|
|
||||||
mkdir -p "$fixture_home/Pictures/Wallpapers" "$config_home/panama" \
|
mkdir -p "$fixture_home/Pictures/Wallpapers" "$config_home/panama" \
|
||||||
"$config_home/hypr" "$state_home" "$test_bin"
|
"$config_home/hypr" "$state_home" "$test_bin"
|
||||||
cp "$repo_dir/config/dot/hypr/hyprlock.conf" "$config_home/hypr/hyprlock.conf"
|
cp "$repo_dir/config/dot/hypr/hyprlock.conf.template" \
|
||||||
|
"$config_home/hypr/hyprlock.conf.template"
|
||||||
|
HOME="$fixture_home" XDG_CONFIG_HOME="$config_home" \
|
||||||
|
"$theme_helper" dark >/dev/null
|
||||||
|
[[ -s "$config_home/hypr/hyprlock.conf" ]] \
|
||||||
|
|| fail 'the themed fallback renderer did not create hyprlock.conf'
|
||||||
|
|
||||||
cat >"$test_bin/hyprctl" <<'EOF'
|
cat >"$test_bin/hyprctl" <<'EOF'
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
Reference in New Issue
Block a user