mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
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
This commit is contained in:
@@ -36,6 +36,7 @@ cc_defaults {
|
|||||||
"-Werror",
|
"-Werror",
|
||||||
"-Wthread-safety",
|
"-Wthread-safety",
|
||||||
],
|
],
|
||||||
|
test_config_template: "VtsHalAudioTargetTestTemplate.xml",
|
||||||
test_suites: [
|
test_suites: [
|
||||||
"general-tests",
|
"general-tests",
|
||||||
"vts",
|
"vts",
|
||||||
@@ -71,7 +72,6 @@ cc_test {
|
|||||||
"VtsHalAudioCoreConfigTargetTest.cpp",
|
"VtsHalAudioCoreConfigTargetTest.cpp",
|
||||||
"VtsHalAudioCoreModuleTargetTest.cpp",
|
"VtsHalAudioCoreModuleTargetTest.cpp",
|
||||||
],
|
],
|
||||||
test_config: "VtsHalAudioCoreTargetTest.xml",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_test {
|
cc_test {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<configuration description="Runs VtsHalAudioCoreTargetTest.">
|
<configuration description="Runs {MODULE}.">
|
||||||
<option name="test-suite-tag" value="apct" />
|
<option name="test-suite-tag" value="apct" />
|
||||||
<option name="test-suite-tag" value="apct-native" />
|
<option name="test-suite-tag" value="apct-native" />
|
||||||
|
|
||||||
@@ -27,12 +27,12 @@
|
|||||||
|
|
||||||
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
|
||||||
<option name="cleanup" value="true" />
|
<option name="cleanup" value="true" />
|
||||||
<option name="push" value="VtsHalAudioCoreTargetTest->/data/local/tmp/VtsHalAudioCoreTargetTest" />
|
<option name="push" value="{MODULE}->/data/local/tmp/{MODULE}" />
|
||||||
</target_preparer>
|
</target_preparer>
|
||||||
|
|
||||||
<test class="com.android.tradefed.testtype.GTest" >
|
<test class="com.android.tradefed.testtype.GTest" >
|
||||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||||
<option name="module-name" value="VtsHalAudioCoreTargetTest" />
|
<option name="module-name" value="{MODULE}" />
|
||||||
<option name="native-test-timeout" value="10m" />
|
<option name="native-test-timeout" value="10m" />
|
||||||
</test>
|
</test>
|
||||||
</configuration>
|
</configuration>
|
||||||
Reference in New Issue
Block a user