blob: c23d6873824312fa138007083cf6140b93dbea9f [file] [log] [blame]
Cheney Ni1f3312c2021-04-23 11:40:53 +08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<configuration description="Runs VtsHalBluetoothV1_0TargetTest.">
17 <option name="test-suite-tag" value="apct" />
18 <option name="test-suite-tag" value="apct-native" />
19
20 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
21 </target_preparer>
Cheney Ni1f3312c2021-04-23 11:40:53 +080022
Karthik Ramakrishnan94a3a172022-02-07 17:37:39 -080023 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
24 <option name="run-command" value="settings put global ble_scan_always_enabled 0" />
William Escande29120122022-12-21 18:20:54 -080025 <option name="run-command" value="cmd bluetooth_manager disable" />
26 <option name="run-command" value="cmd bluetooth_manager wait-for-state:STATE_OFF" />
27 <option name="teardown-command" value="cmd bluetooth_manager enable" />
28 <option name="teardown-command" value="cmd bluetooth_manager wait-for-state:STATE_ON" />
Karthik Ramakrishnan94a3a172022-02-07 17:37:39 -080029 <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
Cheney Ni1f3312c2021-04-23 11:40:53 +080030 </target_preparer>
31
Igor Tolkov8c32f712023-08-16 15:24:25 +080032 <target_preparer class="com.android.tradefed.targetprep.StopServicesSetup">
33 </target_preparer>
34
Cheney Ni1f3312c2021-04-23 11:40:53 +080035 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
36 <option name="cleanup" value="true" />
37 <option name="push" value="VtsHalBluetoothV1_0TargetTest->/data/local/tmp/VtsHalBluetoothV1_0TargetTest" />
38 </target_preparer>
39
40 <test class="com.android.tradefed.testtype.GTest" >
41 <option name="native-test-device-path" value="/data/local/tmp" />
42 <option name="module-name" value="VtsHalBluetoothV1_0TargetTest" />
43 </test>
44</configuration>