File: android_test_run.bash

package info (click to toggle)
fastdds 3.1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 58,132 kB
  • sloc: cpp: 779,516; xml: 15,119; python: 4,356; sh: 190; makefile: 93; ansic: 12
file content (14 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

test_executable=$1
dest_dir=/data/local/tmp

echo $1
shift

adb shell test -e $dest_dir/$test_executable
if [[ $? != 0 ]]; then
    adb push $test_executable $dest_dir/$test_executable &> /dev/null
    adb shell chmod 755 $dest_dir/$test_executable &> /dev/null
fi
adb shell $dest_dir/$test_executable $@