| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/components.gni") |
| import("//src/media/audio/audio_core/package.gni") |
| import("//src/media/audio/hardware.gni") |
| |
| executable("audio-core-stress-tests-bin") { |
| sources = [ "loopback_stress_test.cc" ] |
| deps = [ |
| "//sdk/fidl/fuchsia.media:fuchsia.media_hlcpp", |
| "//sdk/lib/media/audio/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/media/audio/audio_core/testing/integration:hermetic_audio_test", |
| "//third_party/googletest:gmock", |
| ] |
| testonly = true |
| } |
| |
| fuchsia_test_component("audio-core-stress-tests-component") { |
| component_name = "audio-core-stress-tests" |
| manifest = "meta/audio-core-stress-tests.cml" |
| deps = [ ":audio-core-stress-tests-bin" ] |
| test_type = "system" |
| } |
| |
| # These tests have real-time constraints and must run on real hardware (emulators are too slow). |
| audio_core_test_package("audio-core-stress-tests") { |
| audio_core_manifest_shards = |
| [ "//src/media/audio/audio_core/meta/audio_core.shard.ultrasound.cml" ] |
| test_components = [ ":audio-core-stress-tests-component" ] |
| |
| # AudioCore emits ERRORs upon output pipeline underflows, which we don't treat as audio failures. |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| environments = hardware_envs |
| } |
| } |