mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
Support playback test for cras_stream. It does not support `cargo build --features=chromeos` to enable the libcras support due to the sys_util dependency of libcras. The output result is like: == audio_streams_conformance_test -P cras --iterations 100 Playback Source: CRAS Channels: 2 Format: S16LE Sample rate: 48000 frames/s Buffer size: 240 frames Iterations: 100 Cold start latency: 239.692005ms Records count: 100 [Step] min: 4.68 ms, max: 65.29 ms, average: 5.61 ms, standard deviation: 6.03 ms. [Linear Regression] rate: 47576.23 frames/s, standard error: 284.42 BUG=b:238038707 TEST=emerge-${BOARD} audio_streams_conformance_test TEST=audio_streams_conformance_test -P cras Change-Id: I2547df7b15cd36adb5452ab09d2a38e417b04dbf Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3864013 Tested-by: Judy Hsiao <judyhsiao@google.com> Commit-Queue: Judy Hsiao <judyhsiao@google.com> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Auto-Submit: Judy Hsiao <judyhsiao@google.com>
29 lines
705 B
TOML
29 lines
705 B
TOML
[package]
|
|
name = "audio_streams_conformance_test"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "audio_streams_conformance_test"
|
|
path = "src/main.rs"
|
|
|
|
[features]
|
|
audio_cras = ["dep:libcras"]
|
|
chromeos = ["audio_cras"]
|
|
|
|
[dependencies]
|
|
argh = "*"
|
|
audio_streams = "*"
|
|
cfg-if = "1.0.0"
|
|
cros_async = { path = "../../cros_async" } # provided by ebuild
|
|
num = "*"
|
|
libcras = { version = "*", optional = true }
|
|
remain = "0.2"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "*"
|
|
thiserror = "1.0.20"
|
|
|
|
[patch.crates-io]
|
|
audio_streams = { path = "../../common/audio_streams"} # ignored by ebuild
|
|
libcras = { path = "../../libcras_stub" } # ignored by ebuild
|