soft3/radio/quinn/.github/workflows/rust-android-run-tests-on-emulator.sh

#!/bin/bash
set -e

adb wait-for-device

while  tr -d '\r')" ; do sleep 1; done

any_failures=0

for test in $(find target/$TARGET/debug/deps/ -type f -executable ! -name "*.so" -name "*-*"); do
    adb push "$test" /data/local/tmp/
    adb shell chmod +x /data/local/tmp/$(basename "$test")
    adb shell API_LEVEL=$API_LEVEL /data/local/tmp/$(basename "$test") || any_failures=1
done

exit $any_failures

Graph