android-test: SMOKE_STRICT hard-fail on ANR / missing withdraw core
Matrix gates set SMOKE_STRICT=1 so stable-self and published cannot pass on install-only when System UI ANRs or wallet-core never sees the URI.
This commit is contained in:
parent
a05307f620
commit
2a2e478725
2 changed files with 16 additions and 1 deletions
|
|
@ -184,14 +184,26 @@ fi
|
||||||
grep -iE 'taler-wallet|prepareBank|preparePay|confirm|error|Error|success' "$OUT_DIR/logcat.txt" \
|
grep -iE 'taler-wallet|prepareBank|preparePay|confirm|error|Error|success' "$OUT_DIR/logcat.txt" \
|
||||||
| tail -80 >"$OUT_DIR/logcat-taler.txt" || true
|
| tail -80 >"$OUT_DIR/logcat-taler.txt" || true
|
||||||
|
|
||||||
|
# SMOKE_STRICT=1 (matrix gate default): ANR or missing wallet-core withdraw = hard fail
|
||||||
|
: "${SMOKE_STRICT:=0}"
|
||||||
|
rc=0
|
||||||
echo
|
echo
|
||||||
echo "=== summary ==="
|
echo "=== summary ==="
|
||||||
echo "package installed: $PKG"
|
echo "package installed: $PKG"
|
||||||
echo "withdraw intent delivered: $WURI"
|
echo "withdraw intent delivered: $WURI"
|
||||||
|
if grep -qiE "isn't responding|isn.t responding|System UI isn" "$OUT_DIR/01-ui.xml" 2>/dev/null \
|
||||||
|
|| grep -qiE "isn't responding|not responding" "$OUT_DIR/logcat.txt" 2>/dev/null; then
|
||||||
|
echo "FAIL: System UI / app ANR (host too small or emulator hung)"
|
||||||
|
rc=10
|
||||||
|
fi
|
||||||
if grep -q 'prepareBankIntegratedWithdrawal' "$OUT_DIR/logcat.txt" 2>/dev/null; then
|
if grep -q 'prepareBankIntegratedWithdrawal' "$OUT_DIR/logcat.txt" 2>/dev/null; then
|
||||||
echo "wallet-core: prepareBankIntegratedWithdrawal seen (wallet accepted withdraw URI)"
|
echo "wallet-core: prepareBankIntegratedWithdrawal seen (wallet accepted withdraw URI)"
|
||||||
else
|
else
|
||||||
echo "wallet-core: prepareBankIntegratedWithdrawal NOT seen (UI may still show onboarding/ANR on small RAM)"
|
echo "wallet-core: prepareBankIntegratedWithdrawal NOT seen (UI may still show onboarding/ANR on small RAM)"
|
||||||
|
if [ "$SMOKE_STRICT" = "1" ]; then
|
||||||
|
echo "FAIL: SMOKE_STRICT=1 requires prepareBankIntegratedWithdrawal in logcat"
|
||||||
|
rc=11
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -n "$PAY_URI" ]; then
|
if [ -n "$PAY_URI" ]; then
|
||||||
if grep -qiE 'preparePay|confirmPay|pay-template|preparePurchase' "$OUT_DIR/logcat.txt" 2>/dev/null; then
|
if grep -qiE 'preparePay|confirmPay|pay-template|preparePurchase' "$OUT_DIR/logcat.txt" 2>/dev/null; then
|
||||||
|
|
@ -204,4 +216,5 @@ echo "artifacts: $OUT_DIR/"
|
||||||
ls -la "$OUT_DIR" | sed 's/^/ /'
|
ls -la "$OUT_DIR" | sed 's/^/ /'
|
||||||
echo
|
echo
|
||||||
echo "NOTE: Full unattended UI payment needs a responsive device/emulator (≥6–8 GiB host RAM recommended)."
|
echo "NOTE: Full unattended UI payment needs a responsive device/emulator (≥6–8 GiB host RAM recommended)."
|
||||||
echo "This smoke proves: published APK install + deep-link into wallet-core on stack=$STACK."
|
echo "This smoke proves: APK install + deep-link delivery on stack=$STACK (strict=$SMOKE_STRICT rc=$rc)."
|
||||||
|
exit "$rc"
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ run_published() {
|
||||||
OUT_DIR="$out" \
|
OUT_DIR="$out" \
|
||||||
SERIAL="$SERIAL" \
|
SERIAL="$SERIAL" \
|
||||||
AUTO_START_EMULATOR=0 \
|
AUTO_START_EMULATOR=0 \
|
||||||
|
SMOKE_STRICT="${SMOKE_STRICT:-1}" \
|
||||||
"$smoke"
|
"$smoke"
|
||||||
local rc=$?
|
local rc=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
@ -110,6 +111,7 @@ run_selfbuild() {
|
||||||
ANDROID_SERIAL="$SERIAL" \
|
ANDROID_SERIAL="$SERIAL" \
|
||||||
AUTO_START_EMULATOR=0 \
|
AUTO_START_EMULATOR=0 \
|
||||||
PKG=net.taler.wallet.fdroid.debug \
|
PKG=net.taler.wallet.fdroid.debug \
|
||||||
|
SMOKE_STRICT="${SMOKE_STRICT:-1}" \
|
||||||
"$ROOT/run-android-build-and-smoke.sh"
|
"$ROOT/run-android-build-and-smoke.sh"
|
||||||
local rc=$?
|
local rc=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue