blob: 9453647a94c41e6e8786e34e408269ba026c1c6b [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" />
Eric Lin4acf05b2022-03-18 08:33:57 +000026 <option name="test-file-name" value="NearbyFastPairSeekerDataProvider.apk" />
Eric Lina26582d2022-02-16 19:08:47 +000027 <option name="check-min-sdk" value="true" />
28 </target_preparer>
29 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
30 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
31 <option name="run-command" value="wm dismiss-keyguard" />
32 </target_preparer>
33 <target_preparer class="com.android.tradefed.targetprep.PythonVirtualenvPreparer">
34 <!-- Any python dependencies can be specified and will be installed with pip -->
35 <option name="dep-module" value="mobly" />
36 <option name="dep-module" value="retry" />
37 </target_preparer>
Eric Lind7766892022-03-17 14:50:02 +000038 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
39 <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
40 <option name="screen-always-on" value="on" />
41 </target_preparer>
Eric Lina26582d2022-02-16 19:08:47 +000042 </device>
43 <device name="device2">
44 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
45 <option name="test-file-name" value="NearbyMultiDevicesClientsSnippets.apk" />
Eric Lin4acf05b2022-03-18 08:33:57 +000046 <option name="test-file-name" value="NearbyFastPairSeekerDataProvider.apk" />
Eric Lina26582d2022-02-16 19:08:47 +000047 <option name="check-min-sdk" value="true" />
48 </target_preparer>
49 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
50 <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
51 <option name="run-command" value="wm dismiss-keyguard" />
52 </target_preparer>
Eric Lind7766892022-03-17 14:50:02 +000053 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
54 <option name="force-skip-system-props" value="true" /> <!-- avoid restarting device -->
55 <option name="screen-always-on" value="on" />
56 </target_preparer>
Eric Lina26582d2022-02-16 19:08:47 +000057 </device>
58
59 <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest">
60 <!-- The mobly-par-file-name should match the module name -->
Eric Lin7968f052022-03-17 15:05:42 +000061 <option name="mobly-par-file-name" value="CtsNearbyMultiDevicesTestSuite" />
Eric Lina26582d2022-02-16 19:08:47 +000062 <!-- Timeout limit in milliseconds for all test cases of the python binary -->
63 <option name="mobly-test-timeout" value="60000" />
64 </test>
65</configuration>
66