How can I run load tests on another machine without a Rust compiler?

I know that the compiler can work directly on arm-linux-androideabi, but the Android emulator (I mean the ARM emulation on x86 / amd64) is slow, so I do not want to use cargoit rustcin the emulator, I only want to run tests on it.

I want to cross-compile tests on my PC ( cargo test --target=arm-linux-androideabi --no-run?), And then download and run them on an emulator, hoping to catch errors like this .

How to start cargo testwithout starting cargo test? Is it as simple as running all the binaries that were built with cargo test --no-run?

+4
source share
1

, cargo test, - (#[test] fn tests/), - doc.

, . , 0.

Doc . Doc rustdoc , ARM doc. , cargo test --doc, HOST โ‰  TARGET .

, : , doc- .


Rust 1.19 ( 2 ) , script ARM.

#!/bin/sh
set -e
adb push "$1" "/sdcard/somewhere/$1"
adb shell "chmod 755 /sdcard/somewhere/$1 && /sdcard/somewhere/$1" 
# ^ note: may need to change this line, see https://stackoverflow.com/q/9379400

.cargo/config:

[target.arm-linux-androideabi]
runner = ["/path/to/your/run/script.sh"]

cargo test --target=arm-linux-androideabi โ„ข.


GitHub Travis CI, trust. , ARMv7 Linux CI ( , Android).

+4

Source: https://habr.com/ru/post/1680878/


All Articles