We are hiring ! See our job offers.
Raw File
Tip revision: b4052e61857a54a5608e92494b6cdfa26bd22b22 authored by muncus@gmail.com on 21 January 2012, 19:34:49 UTC
test script fix for new dev tools
Tip revision: b4052e6

set -e #exit on error.

#AVDS="1.5 1.6 nexus"
AVDS="1.6 2.1 2.2 2.3.3 4.0"
PIDFILE=`mktemp -t androidtests.XXXXXXX`
EMULATOR_BIN=`which emulator`

for avd in $AVDS; do
    echo "starting avd: ${avd}"
    start-stop-daemon -p ${PIDFILE} -S --exec ${EMULATOR_BIN} -m -b -- \
      -avd ${avd} -sdcard ~/.android/avd/${avd}.avd/sdcard.img -no-boot-anim

    adb wait-for-device
    sleep 30
    echo "installing...."
    ant debug install >/dev/null
    cd tests && ant debug install >/dev/null
    cd ..
    adb shell am instrument -w org.nerdcircus.android.klaxon.tests/android.test.InstrumentationTestRunner

    #spin down the emulator.
    start-stop-daemon -K -p ${PIDFILE}
    rm ${PIDFILE}
    sleep 5
back to top