From b80de7bcd7c5138d483e60c1fe5b3073a989c3af Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Wed, 27 Dec 2023 14:13:31 -0800 Subject: [PATCH] audio: Add test configs for effects VTS tests The main purpose of the config is to shut down the framework audioserver while the VTS test is running. This is achieved by setting 'vts.native_server.on' to '1'. Without this, restarts of the effects HAL process which are a normal part of tests affect the audioserver and may lead to failures of framework tests that run interleaved with these VTS tests. Bug: 264712385 Test: atest --test-mapping hardware/interfaces/audio/aidl/vts Change-Id: I2515cb62e46ef8e93cbddb2c0219f4523d2ecda5 --- audio/aidl/vts/Android.bp | 2 +- ...CoreTargetTest.xml => VtsHalAudioTargetTestTemplate.xml} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename audio/aidl/vts/{VtsHalAudioCoreTargetTest.xml => VtsHalAudioTargetTestTemplate.xml} (86%) diff --git a/audio/aidl/vts/Android.bp b/audio/aidl/vts/Android.bp index 9b0e233261..85319ec1b0 100644 --- a/audio/aidl/vts/Android.bp +++ b/audio/aidl/vts/Android.bp @@ -36,6 +36,7 @@ cc_defaults { "-Werror", "-Wthread-safety", ], + test_config_template: "VtsHalAudioTargetTestTemplate.xml", test_suites: [ "general-tests", "vts", @@ -71,7 +72,6 @@ cc_test { "VtsHalAudioCoreConfigTargetTest.cpp", "VtsHalAudioCoreModuleTargetTest.cpp", ], - test_config: "VtsHalAudioCoreTargetTest.xml", } cc_test { diff --git a/audio/aidl/vts/VtsHalAudioCoreTargetTest.xml b/audio/aidl/vts/VtsHalAudioTargetTestTemplate.xml similarity index 86% rename from audio/aidl/vts/VtsHalAudioCoreTargetTest.xml rename to audio/aidl/vts/VtsHalAudioTargetTestTemplate.xml index 9d3adc1d0f..c92e8520af 100644 --- a/audio/aidl/vts/VtsHalAudioCoreTargetTest.xml +++ b/audio/aidl/vts/VtsHalAudioTargetTestTemplate.xml @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - +