File: android_test_run.bash

package info (click to toggle)
fastdds 3.3.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 60,540 kB
  • sloc: cpp: 793,735; xml: 15,283; python: 5,902; sh: 219; makefile: 95; 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 $@