blob: 5926cc1ff8654ed66ef3d27e3287063a51bb7873 [file] [log] [blame]
Eric Lina26582d2022-02-16 19:08:47 +00001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 http://www.apache.org/licenses/LICENSE-2.0
7 Unless required by applicable law or agreed to in writing, software
8 distributed under the License is distributed on an "AS IS" BASIS,
9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 See the License for the specific language governing permissions and
11 limitations under the License.
12-->
Eric Lin7968f052022-03-17 15:05:42 +000013<configuration description="Config for CTS Nearby Mainline multi devices end-to-end test suite">
Eric Lina26582d2022-02-16 19:08:47 +000014 <option name="test-suite-tag" value="cts" />
15 <option name="config-descriptor:metadata" key="component" value="wifi" />
16 <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
17 <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
18 <option name="config-descriptor:metadata" key="parameter" value="not_secondary_user" />
19
20 <device name="device1">
21 <!-- For coverage to work, the APK should not be uninstalled until after coverage is pulled.
22 So it's a lot easier to install APKs outside the python code.
23 -->
Eric Lineeddac92022-03-30 18:11:24 +080024 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" />
25 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
26 <option name="remount-system" value="true" />
27 <option name="push" value="NearbyMultiDevicesClientsSnippets.apk->/system/app/NearbyMultiDevicesClientsSnippets/NearbyMultiDevicesClientsSnippets.apk" />
28 <option name="push" value="NearbyFastPairSeekerDataProvider.apk->/system/app/NearbyFastPairSeekerDataProvider/NearbyFastPairSeekerDataProvider.apk" />
Eric Lina26582d2022-02-16 19:08:47 +000029 </target_preparer>
Eric Lineeddac92022-03-30 18:11:24 +080030 <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" />
Eric Lina26582d2022-02-16 19:08:47 +000031 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
32 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
33 <option name="run-command" value="wm dismiss-keyguard" />
34 </target_preparer>
35 <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer">
36 <!-- Any python dependencies can be specified and will be installed with pip -->
Julien Desprez6d28b972022-03-23 16:45:25 +000037 <!-- TODO(b/225958696): Import python dependencies -->
Eric Lina26582d2022-02-16 19:08:47 +000038 <option name="dep-module" value="mobly" />
39 <option name="dep-module" value="retry" />
40 </target_preparer>
Eric Lind7766892022-03-17 14:50:02 +000041 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
42 <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
43 <option name="screen-always-on" value="on" />
Eric Lineeddac92022-03-30 18:11:24 +080044 <!-- List permissions requested by the APK: aapt d permissions <PATH_TO_YOUR_APK> -->
45 <option
46 name="run-command"
47 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH" />
48 <option
49 name="run-command"
50 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADMIN" />
51 <option
52 name="run-command"
53 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADVERTISE" />
54 <option
55 name="run-command"
56 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_CONNECT" />
57 <option
58 name="run-command"
59 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_PRIVILEGED" />
60 <option
61 name="run-command"
62 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_SCAN" />
63 <option
64 name="run-command"
65 value="pm grant android.nearby.multidevices android.permission.INTERNET" />
66 <option
67 name="run-command"
68 value="pm grant android.nearby.multidevices android.permission.GET_ACCOUNTS" />
69 <option
70 name="run-command"
71 value="pm grant android.nearby.multidevices android.permission.WRITE_SECURE_SETTINGS" />
72 <option
73 name="run-command"
74 value="pm grant android.nearby.multidevices android.permission.REORDER_TASKS" />
Eric Lind7766892022-03-17 14:50:02 +000075 </target_preparer>
Eric Lina26582d2022-02-16 19:08:47 +000076 </device>
77 <device name="device2">
Eric Lineeddac92022-03-30 18:11:24 +080078 <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer" />
79 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
80 <option name="remount-system" value="true" />
81 <option name="push" value="NearbyMultiDevicesClientsSnippets.apk->/system/app/NearbyMultiDevicesClientsSnippets/NearbyMultiDevicesClientsSnippets.apk" />
82 <option name="push" value="NearbyFastPairSeekerDataProvider.apk->/system/app/NearbyFastPairSeekerDataProvider/NearbyFastPairSeekerDataProvider.apk" />
Eric Lina26582d2022-02-16 19:08:47 +000083 </target_preparer>
Eric Lineeddac92022-03-30 18:11:24 +080084 <target_preparer class="com.android.tradefed.targetprep.RebootTargetPreparer" />
Eric Lina26582d2022-02-16 19:08:47 +000085 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
86 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
87 <option name="run-command" value="wm dismiss-keyguard" />
88 </target_preparer>
Eric Lind7766892022-03-17 14:50:02 +000089 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
90 <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
91 <option name="screen-always-on" value="on" />
Eric Lineeddac92022-03-30 18:11:24 +080092 <!-- List permissions requested by the APK: aapt d permissions <PATH_TO_YOUR_APK> -->
93 <option
94 name="run-command"
95 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH" />
96 <option
97 name="run-command"
98 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADMIN" />
99 <option
100 name="run-command"
101 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_ADVERTISE" />
102 <option
103 name="run-command"
104 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_CONNECT" />
105 <option
106 name="run-command"
107 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_PRIVILEGED" />
108 <option
109 name="run-command"
110 value="pm grant android.nearby.multidevices android.permission.BLUETOOTH_SCAN" />
111 <option
112 name="run-command"
113 value="pm grant android.nearby.multidevices android.permission.INTERNET" />
114 <option
115 name="run-command"
116 value="pm grant android.nearby.multidevices android.permission.GET_ACCOUNTS" />
117 <option
118 name="run-command"
119 value="pm grant android.nearby.multidevices android.permission.WRITE_SECURE_SETTINGS" />
120 <option
121 name="run-command"
122 value="pm grant android.nearby.multidevices android.permission.REORDER_TASKS" />
Eric Lind7766892022-03-17 14:50:02 +0000123 </target_preparer>
Eric Lina26582d2022-02-16 19:08:47 +0000124 </device>
125
126 <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest">
127 <!-- The mobly-par-file-name should match the module name -->
Eric Lin7968f052022-03-17 15:05:42 +0000128 <option name="mobly-par-file-name" value="CtsNearbyMultiDevicesTestSuite" />
Eric Lina26582d2022-02-16 19:08:47 +0000129 <!-- Timeout limit in milliseconds for all test cases of the python binary -->
130 <option name="mobly-test-timeout" value="60000" />
131 </test>
132</configuration>
133