Debian Codegraph @

src/util/test-android.sh

raw symbols SCIP
1 #!/bin/bash
2 #
3 # This script allows running the ECL test suite on android. USB
4 # debugging via adb needs to be enabled in order for this to work.
5 # Simply execute this file from the ECL toplevel directory.
6 #
7 # The script works by pushing the generated binary in `ecl-android/`
8 # to a temporary directory on the device together with the
9 # `test-android-target.sh` script which sets up paths and starts ECL
10 # on the phone.
11 #
12
13 adb start-server
14
15 export TMPDIR=/data/local/tmp/
16
17 adb push ecl-android/ ${TMPDIR}
18 adb push src/tests/ ${TMPDIR}/ecl-android/
19 adb push src/util/test-android-target.sh ${TMPDIR}/ecl-android/
20 adb shell "sh ${TMPDIR}/ecl-android/test-android-target.sh"