blob: f2f2565ac0f38f226d4ad7c93a01642705baf19a (
plain)
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
27
28
29
30
31
32
|
#!/bin/sh
HOST_OUTPUT="$(pwd)/output"
DEVICE_OUTPUT="/data/local/tmp/result.txt"
export RESULT_FILE
TIMEOUT=300
usage() {
echo "Usage: $0" 1>&2
exit 1
}
if [ $# -gt 0 ]; then
usage
fi
# shellcheck disable=SC1091
. ../../lib/sh-test-lib
. ../../lib/android-test-lib
# Test run.
create_out_dir "${HOST_OUTPUT}"
initialize_adb
wait_boot_completed "${TIMEOUT}"
adb_push "./device-script.sh" "/data/local/tmp/"
info_msg "About to run bionic-libc-tests on device ${ANDROID_SERIAL}"
adb shell /data/local/tmp/device-script.sh 2>&1 \
| tee "${HOST_OUTPUT}"/device-run.log
adb_pull "${DEVICE_OUTPUT}" "${HOST_OUTPUT}"
|