ohos-test-runner

Crates.ioohos-test-runner
lib.rsohos-test-runner
version
sourcesrc
created_at2025-03-10 15:02:30.38768+00
updated_at2025-03-10 15:02:30.38768+00
descriptionSupport running cargo test / run / bench on OpenHarmony devices.
homepage
repository
max_upload_size
id1586819
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Jonathan Schwender (jschwe)

documentation

README

OpenHarmony test runner

A simple target runner to support running executables from cargo test, cargo bench and cargo run on a connected (Open-)HarmonyOS device.

Example

After installing ohos-test-runner, configure your project to use the custom target runner, for the relevant target triple, e.g.

# Install ohos-test-runner
cargo install --locked ohos-test-runner
# Setup ohos-test-runner as the target runner for e.g. aarch64 OpenHarmony.
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_OHOS_RUNNER=ohos-test-runner
# Run cargo test (more environment variables might be needed, depending on your project)
cargo test --target aarch64-unknown-linux-ohos

The example assumes that you already have a working build environment to cross-compile your project for OpenHarmony.

License

Licensed under the Apache-2.0 license.

Commit count: 0

cargo fmt