• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Minimal script pushing and running a file on device!
4# Contemporary versions of ADB properly propagate exit codes so nothing more
5# is needed to let CTest report test success/failure.
6
7# TODO: consider clearing temporary files after testing, although that will
8# get in the way of debugging and will make code more complex... also,
9# Ruy's test files aren't huge and people running these probably have
10# bigger clutter issues in their /data/local/tmp anyway. Anyway, if we want
11# to do this, we could copy IREE's code.
12
13device_tmpdir=/data/local/tmp
14
15adb push "$1" "${device_tmpdir}"
16adb shell "${device_tmpdir}/$(basename "$1")"
17