diff options
Diffstat (limited to 'run-bc-tests-on-android.sh')
-rwxr-xr-x | run-bc-tests-on-android.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/run-bc-tests-on-android.sh b/run-bc-tests-on-android.sh new file mode 100755 index 00000000..d957a7e8 --- /dev/null +++ b/run-bc-tests-on-android.sh @@ -0,0 +1,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 |