xref: /aosp_15_r20/external/bc/run-bc-tests-on-android.sh (revision 5a6e848804d15c18a0125914844ee4eb0bda4fcf)
1*5a6e8488SAndroid Build Coastguard Worker#!/bin/bash
2*5a6e8488SAndroid Build Coastguard Worker
3*5a6e8488SAndroid Build Coastguard Worker# Copy the tests across.
4*5a6e8488SAndroid Build Coastguard Workeradb shell rm -rf /data/local/tmp/bc-tests/
5*5a6e8488SAndroid Build Coastguard Workeradb shell mkdir /data/local/tmp/bc-tests/
6*5a6e8488SAndroid Build Coastguard Workeradb shell mkdir /data/local/tmp/bc-tests/scripts/
7*5a6e8488SAndroid Build Coastguard Workeradb push tests/ /data/local/tmp/bc-tests/
8*5a6e8488SAndroid Build Coastguard Workeradb push scripts/functions.sh /data/local/tmp/bc-tests/scripts/
9*5a6e8488SAndroid Build Coastguard Worker
10*5a6e8488SAndroid Build Coastguard Workerif tty -s; then
11*5a6e8488SAndroid Build Coastguard Worker  dash_t="-t"
12*5a6e8488SAndroid Build Coastguard Workerelse
13*5a6e8488SAndroid Build Coastguard Worker  dash_t=""
14*5a6e8488SAndroid Build Coastguard Workerfi
15*5a6e8488SAndroid Build Coastguard Worker
16*5a6e8488SAndroid Build Coastguard Workerexec adb shell $dash_t /data/local/tmp/bc-tests/tests/all.sh -n bc 0 1 0 0 0 bc
17