Files
nim-chronos/.github/scripts/run-android-tests.sh
richΛrdandJacek Sieka ebb64680fe ci(mobile): run test suite on Android and iOS (#695)
* 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>
2026-08-13 08:55:36 +00:00

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'"