aboutsummaryrefslogtreecommitdiff
path: root/run-bc-tests-on-android.sh
blob: d957a7e8aba32d767424972b8d9f5c08f1f10281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Copy the tests across.
adb shell rm -rf /data/local/tmp/bc-tests/
adb shell mkdir /data/local/tmp/bc-tests/
adb push tests/ /data/local/tmp/bc-tests/
adb push functions.sh /data/local/tmp/bc-tests/

if tty -s; then
  dash_t="-t"
else
  dash_t=""
fi

exec adb shell $dash_t /data/local/tmp/bc-tests/tests/all.sh bc 0 1 0 1 bc