mirror of
https://github.com/status-im/nim-chronos.git
synced 2026-08-27 13:01:12 +00:00
* ci(mobile): run test suite on Android and iOS * ci(mobile): authenticate Nim setup * ci(mobile): propagate test failures * test(android): skip host FD limit test * ci: restrict mobile workflow permissions * docs(ci): explain mobile test execution * docs(ci): trim mobile workflow comments * ci: use configured Nim for mobile tests * ci: show Nim version in mobile job names --------- Co-authored-by: Jacek Sieka <jacek@status.im>
13 lines
348 B
Bash
13 lines
348 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
binary="${1:?usage: run-android-tests.sh <test-binary>}"
|
|
remote_dir="/data/local/tmp/nim-chronos"
|
|
remote_binary="$remote_dir/$(basename "$binary")"
|
|
|
|
adb shell "mkdir -p '$remote_dir'"
|
|
adb push "$binary" "$remote_binary"
|
|
adb shell "chmod 755 '$remote_binary'"
|
|
adb shell "cd '$remote_dir' && '$remote_binary'"
|