Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(install): run the Android guard test as Step 0x2 of scripts/test.sh

Martin Vogel1fc70c2024ed
diff --git a/scripts/test.sh b/scripts/test.sh
index 992aea837..baf41a935 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -278,6 +278,9 @@ bash "$ROOT/tests/test_language_count_contract.sh"
echo "=== Step 0x: packaging version-metadata contract ==="
bash "$ROOT/tests/test_version_metadata_contract.sh"
+echo "=== Step 0x2: installer Android/Termux guard contract (#1202) ==="
+bash "$ROOT/tests/test_install_android_guard.sh"
+
# Step 0y: the Windows leg must not decide its verdict from an exit status that
# the ssh/msys2_shell chain can mangle — a channel that turns 0 into 1 can turn
# 1 into 0, and that direction reports a RED Windows leg as green. Runs
diff --git a/tests/test_install_android_guard.sh b/tests/test_install_android_guard.sh
index 6b3a383a2..59503fc7d 100755
--- a/tests/test_install_android_guard.sh
+++ b/tests/test_install_android_guard.sh
@@ -7,6 +7,7 @@ trap 'rm -rf "$WORK"' EXIT
mkdir -p "$WORK/bin" "$WORK/home"
cat >"$WORK/bin/uname" <<'EOF'
+#!/usr/bin/env bash
case "$1" in
-s) printf '%s\n' Linux ;;
-m) printf '%s\n' aarch64 ;;
@@ -15,6 +16,7 @@ case "$1" in
esac
EOF
cat >"$WORK/bin/curl" <<'EOF'
+#!/usr/bin/env bash
printf 'curl must not run for Android/Termux\n' >&2
exit 99
EOF