mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-22 11:13:44 +00:00
5e5cc93645
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.
15 lines
432 B
Bash
Executable File
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
|