Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 1 | <?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 Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 13 | <configuration description="Config for CTS Nearby Mainline multi devices end-to-end test suite"> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 14 | <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 Lin | 4acf05b | 2022-03-18 08:33:57 +0000 | [diff] [blame] | 26 | <option name="test-file-name" value="NearbyFastPairSeekerDataProvider.apk" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 27 | <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 Lin | d776689 | 2022-03-17 14:50:02 +0000 | [diff] [blame] | 38 | <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 Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 42 | </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 Lin | 4acf05b | 2022-03-18 08:33:57 +0000 | [diff] [blame] | 46 | <option name="test-file-name" value="NearbyFastPairSeekerDataProvider.apk" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 47 | <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 Lin | d776689 | 2022-03-17 14:50:02 +0000 | [diff] [blame] | 53 | <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 Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 57 | </device> |
| 58 | |
| 59 | <test class="com.android.tradefed.testtype.mobly.MoblyBinaryHostTest"> |
| 60 | <!-- The mobly-par-file-name should match the module name --> |
Eric Lin | 7968f05 | 2022-03-17 15:05:42 +0000 | [diff] [blame] | 61 | <option name="mobly-par-file-name" value="CtsNearbyMultiDevicesTestSuite" /> |
Eric Lin | a26582d | 2022-02-16 19:08:47 +0000 | [diff] [blame] | 62 | <!-- 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 | |