~vanvugt/mir/disable-libinput-pointer-acceleration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# WARNING: This script is slow. See: doc/avoid_deploy-and-test.md

if [ ! -d build-android-arm ] ; then
    echo "Built tree not found in $(pwd)/build-android-arm"
    exit 1
fi

# Unpack umockdev requirements
( cd build-android-arm ;
  apt-get download umockdev:armhf libumockdev0:armhf ;
  dpkg -x umockdev_*armhf*.deb . ;
  dpkg -x libumockdev0_*armhf*.deb .
)

rundir=/home/phablet/mir/testing
adb push build-android-arm/bin $rundir/bin
adb push build-android-arm/lib $rundir/lib
adb push build-android-arm/usr $rundir/usr

libpath=$rundir/usr/lib/arm-linux-gnueabihf/:$rundir/lib
run_with_env="LD_LIBRARY_PATH=$libpath $rundir/usr/bin/umockdev-run $rundir/bin/"

adb shell "${run_with_env}mir_unit_tests"
adb shell "${run_with_env}mir_integration_tests"
adb shell "${run_with_env}mir_acceptance_tests"