Files
noq/.github/workflows/rust-android-run-tests-on-emulator.sh
Max Inden 5e5cc93645 fix(.github/android): pass matrix.target and increase api to v26
When extracting the emulator script into a separate file, the `matrix.target`
substitution wasn't replaced with an environment variable.

Follow-up to https://github.com/quinn-rs/quinn/pull/1950.
2024-08-23 11:11:10 +00:00

15 lines
432 B
Bash
Executable File

#!/bin/bash
set -e
adb wait-for-device
while [[ -z "$(adb shell getprop sys.boot_completed | 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 /data/local/tmp/$(basename "$test") || any_failures=1
done
exit $any_failures