Elliott Hughes | 0072599 | 2019-11-15 15:07:00 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copy the tests across. |
Frank Feng | 49f0189 | 2020-10-12 23:06:31 +0000 | [diff] [blame] | 4 | test_dir=/data/local/tests/unrestricted/ziptool-tests |
| 5 | |
| 6 | # TODO(b/169618311): remove this "adb push" command. |
| 7 | adb push cli-tests/ "$test_dir" |
Elliott Hughes | 0072599 | 2019-11-15 15:07:00 -0800 | [diff] [blame] | 8 | |
| 9 | if tty -s; then |
| 10 | dash_t="-t" |
| 11 | else |
| 12 | dash_t="" |
| 13 | fi |
| 14 | |
Frank Feng | 49f0189 | 2020-10-12 23:06:31 +0000 | [diff] [blame] | 15 | exec adb shell "$dash_t" "${test_dir}"/cli-test "${test_dir}"/cli-tests/*.test |