blob: 10170bfd7689e8d03ab03f73cfcad09fa30cbf42 [file] [log] [blame]
Elliott Hughes4241b892019-12-11 12:10:50 -08001#!/bin/bash
2
3# Copy the tests across.
4adb shell rm -rf /data/local/tmp/bc-tests/
5adb shell mkdir /data/local/tmp/bc-tests/
Elliott Hughes0f526422021-08-10 17:30:32 -07006adb shell mkdir /data/local/tmp/bc-tests/scripts/
Elliott Hughes4241b892019-12-11 12:10:50 -08007adb push tests/ /data/local/tmp/bc-tests/
Elliott Hughes0f526422021-08-10 17:30:32 -07008adb push scripts/functions.sh /data/local/tmp/bc-tests/scripts/
Elliott Hughes4241b892019-12-11 12:10:50 -08009
10if tty -s; then
11 dash_t="-t"
12else
13 dash_t=""
14fi
15
Haibo Huanged6d5882020-05-06 23:17:07 -070016exec adb shell $dash_t /data/local/tmp/bc-tests/tests/all.sh bc 0 1 0 0 bc