2
# WARNING: This script is slow. See: doc/avoid_deploy-and-test.md
4
if [ ! -d build-android-arm ] ; then
5
echo "Built tree not found in $(pwd)/build-android-arm"
9
# Unpack umockdev requirements
10
( cd build-android-arm ;
11
apt-get download umockdev:armhf libumockdev0:armhf ;
12
dpkg -x umockdev_*armhf*.deb . ;
13
dpkg -x libumockdev0_*armhf*.deb .
16
rundir=/home/phablet/mir/testing
17
adb push build-android-arm/bin $rundir/bin
18
adb push build-android-arm/lib $rundir/lib
19
adb push build-android-arm/usr $rundir/usr
21
libpath=$rundir/usr/lib/arm-linux-gnueabihf/:$rundir/lib
22
run_with_env="LD_LIBRARY_PATH=$libpath $rundir/usr/bin/umockdev-run $rundir/bin/"
24
adb shell "${run_with_env}mir_unit_tests"
25
adb shell "${run_with_env}mir_integration_tests"
26
adb shell "${run_with_env}mir_acceptance_tests"