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

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

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

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