blob: f8294f466ff450ab292a4449233a7b1de3832796 [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 -->
24 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
25 <option name="test-file-name" value="NearbyMultiDevicesClientsSnippets.apk" />
26 <option name="check-min-sdk" value="true" />
27 </target_preparer>
28 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
29 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
30 <option name="run-command" value="wm dismiss-keyguard" />
31 </target_preparer>
32 <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer">
33 <!-- Any python dependencies can be specified and will be installed with pip -->
34 <option name="dep-module" value="mobly" />
35 <option name="dep-module" value="retry" />
36 </target_preparer>
Eric Lind7766892022-03-17 14:50:02 +000037 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
38 <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
39 <option name="screen-always-on" value="on" />
40 </target_preparer>
Eric Lina26582d2022-02-16 19:08:47 +000041 </device>
42 <device name="device2">
43 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
44 <option name="test-file-name" value="NearbyMultiDevicesClientsSnippets.apk" />
45 <option name="check-min-sdk" value="true" />
46 </target_preparer>
47 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
48 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
49 <option name="run-command" value="wm dismiss-keyguard" />
50 </target_preparer>
Eric Lind7766892022-03-17 14:50:02 +000051 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
52 <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
53 <option name="screen-always-on" value="on" />
54 </target_preparer>
Eric Lina26582d2022-02-16 19:08:47 +000055 </device>
56
57 <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest">
58 <!-- The mobly-par-file-name should match the module name -->
Eric Lin7968f052022-03-17 15:05:42 +000059 <option name="mobly-par-file-name" value="CtsNearbyMultiDevicesTestSuite" />
Eric Lina26582d2022-02-16 19:08:47 +000060 <!-- Timeout limit in milliseconds for all test cases of the python binary -->
61 <option name="mobly-test-timeout" value="60000" />
62 </test>
63</configuration>
64