summaryrefslogtreecommitdiff
path: root/automated/android/busybox/busybox.sh
blob: b36600aa73bda45646b6ec0197a3444e5b8007d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e
# Busybox smoke tests.

OUTPUT="$(pwd)/output"

# shellcheck disable=SC1091
. ../../lib/sh-test-lib
# shellcheck disable=SC1091
. ../../lib/android-test-lib

initialize_adb
wait_boot_completed "300"
create_out_dir "${OUTPUT}"

adb_push "./device-script.sh" "/data/local/tmp/bin/"

adb shell '/data/local/tmp/bin/device-script.sh 2>&1' \
                          | tee "${OUTPUT}/device-stdout.log"

adb_pull "/data/local/tmp/busybox/result.txt" "${OUTPUT}/"