Skip to content

Commit 1fc70c2

Browse files
committed
test(install): run the Android guard test as Step 0x2 of scripts/test.sh
scripts/test.sh lists every shell contract test explicitly and does not glob tests/, so an unlisted test never ran on any leg. Register tests/test_install_android_guard.sh as Step 0x2, right after Step 0x, in the same two-line shape as its neighbours. Give the two PATH stubs (uname, curl) the same shebang every other stub under tests/ uses, so they are proper executables on every leg instead of relying on the shell fallback for files without one. Refs DeusData#1202 Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 17415f6 commit 1fc70c2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎scripts/test.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ bash "$ROOT/tests/test_language_count_contract.sh"
278278
echo "=== Step 0x: packaging version-metadata contract ==="
279279
bash "$ROOT/tests/test_version_metadata_contract.sh"
280280

281+
echo "=== Step 0x2: installer Android/Termux guard contract (#1202) ==="
282+
bash "$ROOT/tests/test_install_android_guard.sh"
283+
281284
# Step 0y: the Windows leg must not decide its verdict from an exit status that
282285
# the ssh/msys2_shell chain can mangle — a channel that turns 0 into 1 can turn
283286
# 1 into 0, and that direction reports a RED Windows leg as green. Runs

‎tests/test_install_android_guard.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ trap 'rm -rf "$WORK"' EXIT
77

88
mkdir -p "$WORK/bin" "$WORK/home"
99
cat >"$WORK/bin/uname" <<'EOF'
10+
#!/usr/bin/env bash
1011
case "$1" in
1112
-s) printf '%s\n' Linux ;;
1213
-m) printf '%s\n' aarch64 ;;
@@ -15,6 +16,7 @@ case "$1" in
1516
esac
1617
EOF
1718
cat >"$WORK/bin/curl" <<'EOF'
19+
#!/usr/bin/env bash
1820
printf 'curl must not run for Android/Termux\n' >&2
1921
exit 99
2022
EOF

0 commit comments

Comments
 (0)