Elliott Hughes | 4241b89 | 2019-12-11 12:10:50 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copy the tests across. |
| 4 | adb shell rm -rf /data/local/tmp/bc-tests/ |
| 5 | adb shell mkdir /data/local/tmp/bc-tests/ |
Elliott Hughes | 0f52642 | 2021-08-10 17:30:32 -0700 | [diff] [blame] | 6 | adb shell mkdir /data/local/tmp/bc-tests/scripts/ |
Elliott Hughes | 4241b89 | 2019-12-11 12:10:50 -0800 | [diff] [blame] | 7 | adb push tests/ /data/local/tmp/bc-tests/ |
Elliott Hughes | 0f52642 | 2021-08-10 17:30:32 -0700 | [diff] [blame] | 8 | adb push scripts/functions.sh /data/local/tmp/bc-tests/scripts/ |
Elliott Hughes | 4241b89 | 2019-12-11 12:10:50 -0800 | [diff] [blame] | 9 | |
| 10 | if tty -s; then |
| 11 | dash_t="-t" |
| 12 | else |
| 13 | dash_t="" |
| 14 | fi |
| 15 | |
Haibo Huang | ed6d588 | 2020-05-06 23:17:07 -0700 | [diff] [blame] | 16 | exec adb shell $dash_t /data/local/tmp/bc-tests/tests/all.sh bc 0 1 0 0 bc |