summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-09-10 07:50:08 +0800
committertranch <tranch.xiao@gmail.com>2026-09-10 07:50:08 +0800
commita2fb7a7f2c9f91569568cfda674968487d52497f (patch)
tree58ac4c219bcdcdff8dc52f81e91d6c38bbef7b05 /tests
parent61db44fb679bb3d2606cca0dcadac309edff0475 (diff)
downloadAeroCore-OS-a2fb7a7f2c9f91569568cfda674968487d52497f.tar.gz
AeroCore-OS-a2fb7a7f2c9f91569568cfda674968487d52497f.zip
Add mirrored Decky ujust setup
Provide an explicit setup-decky-mirror recipe that keeps upstream setup-decky intact while routing Decky Loader installer scripts through AeroCore's Decky mirror. Add a focused shell test to catch accidental fallbacks to the GitHub installer URL.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-decky-mirror-ujust.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/test-decky-mirror-ujust.sh b/tests/test-decky-mirror-ujust.sh
new file mode 100755
index 0000000..bb15f26
--- /dev/null
+++ b/tests/test-decky-mirror-ujust.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+project_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+recipe="${project_root}/system_files/usr/share/ublue-os/just/92-aerocore-decky-mirror.just"
+
+if [[ ! -f "${recipe}" ]]; then
+ echo "Missing Decky mirror ujust recipe: ${recipe}" >&2
+ exit 1
+fi
+
+if ! rg -q '^setup-decky-mirror ACTION=""' "${recipe}"; then
+ echo "Decky mirror recipe must expose ujust setup-decky-mirror" >&2
+ exit 1
+fi
+
+if ! rg -q 'decky\.mirror\.aerocore\.com\.cn' "${recipe}"; then
+ echo "Decky mirror recipe must default to the AeroCore Decky mirror host" >&2
+ exit 1
+fi
+
+if rg -q 'https://github\.com/SteamDeckHomebrew/decky-installer' "${recipe}"; then
+ echo "Decky mirror recipe must not install from GitHub" >&2
+ exit 1
+fi
+
+for script_name in install_release.sh install_prerelease.sh uninstall.sh; do
+ if ! rg -q "\\$\\{DECKY_INSTALLER_BASE\\}/${script_name}" "${recipe}"; then
+ echo "Decky mirror recipe does not route ${script_name} through the mirror base" >&2
+ exit 1
+ fi
+done