blob: 6a0fc3092408b783aa0ada8992fa5c3159f19d62 [file] [log] [blame]
#!/bin/bash
# Wrapper script that runs the exopackage installer test on all connected
# devices
set -x
set -e
set -o pipefail
cd `dirname $0`
cd `git rev-parse --show-cdup`
RESULT=""
EXIT_CODE="0"
DEVICES=`adb devices | sed -rne '2,$s/^([^[:space:]]+).*/\1/p'`
for DEV in $DEVICES ; do
RESULT="$RESULT$DEV"
if ANDROID_SERIAL=$DEV ./scripts/exopackage_test_single.sh ; then
RESULT="$RESULT SUCCESS^"
else
RESULT="$RESULT FAILURE^"
EXIT_CODE=1
fi
done
set +x
echo
echo $RESULT | tr ^ '\n'
exit $EXIT_CODE