monitoring: GUI-AUTOMATION-NOTES + AUTO_ANDROID/AUTO_GUI flags
Document minimal variant; Linux defaults to Android-only automation; macOS can enable both ecosystems later via flags.
This commit is contained in:
parent
cf349bfdb6
commit
07045ca388
6 changed files with 231 additions and 193 deletions
|
|
@ -8,12 +8,23 @@
|
|||
# Systems: STACK=goa | stage | auto
|
||||
# APK: published F-Droid or APK_PATH=… (from-source)
|
||||
#
|
||||
# See AUTOMATED-GUI-NOTES.md
|
||||
# See GUI-AUTOMATION-NOTES.md
|
||||
#
|
||||
set -euo pipefail
|
||||
ROOT=$(cd "$(dirname "$0")" && pwd)
|
||||
# shellcheck source=run-android-pay-smoke.sh
|
||||
# We re-use install/URI resolution by calling common pieces inline.
|
||||
|
||||
# Platform flags (GUI-AUTOMATION-NOTES.md). Linux → Android only.
|
||||
os=$(uname -s)
|
||||
case "${AUTO_PLATFORM:-auto}" in
|
||||
auto) case "$os" in Linux|Darwin) : "${AUTO_ANDROID:=1}"; : "${AUTO_GUI:=1}" ;; *) : "${AUTO_ANDROID:=0}"; : "${AUTO_GUI:=0}" ;; esac ;;
|
||||
linux|macos) : "${AUTO_ANDROID:=1}"; : "${AUTO_GUI:=1}" ;;
|
||||
*) : "${AUTO_ANDROID:=0}"; : "${AUTO_GUI:=0}" ;;
|
||||
esac
|
||||
[ "${AUTO_ANDROID}" = "1" ] || { echo "skipped: AUTO_ANDROID=${AUTO_ANDROID}"; exit 0; }
|
||||
if [ "${AUTO_GUI}" != "1" ]; then
|
||||
echo "AUTO_GUI=0 → deep-link smoke only"
|
||||
exec env AUTO_ANDROID=1 "$ROOT/run-android-pay-smoke.sh"
|
||||
fi
|
||||
|
||||
export OUT_DIR="${OUT_DIR:-$ROOT/out-gui}"
|
||||
export GUI_ROUNDS="${GUI_ROUNDS:-10}"
|
||||
|
|
@ -169,4 +180,4 @@ else
|
|||
fi
|
||||
echo "artifacts: $OUT_DIR/"
|
||||
ls -la "$OUT_DIR" | sed 's/^/ /'
|
||||
echo "Documented shortcuts → AUTOMATED-GUI-NOTES.md"
|
||||
echo "Documented shortcuts → GUI-AUTOMATION-NOTES.md"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue