Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 1 | <!-- Copyright (C) 2015 The Android Open Source Project |
| 2 | |
| 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 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | --> |
| 15 | <configuration description="Test config for {MODULE}"> |
| 16 | <option name="test-suite-tag" value="cts" /> |
| 17 | <option name="config-descriptor:metadata" key="component" value="networking" /> |
| 18 | <option name="config-descriptor:metadata" key="token" value="SIM_CARD" /> |
| 19 | <option name="config-descriptor:metadata" key="parameter" value="instant_app" /> |
| 20 | <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> |
| 21 | <option name="config-descriptor:metadata" key="parameter" value="secondary_user" /> |
Yabin Huang | 1ebe54b | 2024-11-07 01:34:27 +0000 | [diff] [blame] | 22 | <option name="config-descriptor:metadata" key="parameter" value="secondary_user_on_secondary_display" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 23 | |
| 24 | <option name="config-descriptor:metadata" key="mainline-param" value="CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex" /> |
Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 25 | <option name="config-descriptor:metadata" key="mainline-param" value="CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk" /> |
| 26 | <option name="config-descriptor:metadata" key="mainline-param" value="com.google.android.tethering.apex" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 27 | <option name="not-shardable" value="true" /> |
zhi | f4c1635 | 2024-05-08 20:52:00 +0800 | [diff] [blame] | 28 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusher"> |
zhi | 93b3d29 | 2024-07-19 18:15:34 +0800 | [diff] [blame] | 29 | <option name="has-server-side-config" value="false" /> |
zhi | f4c1635 | 2024-05-08 20:52:00 +0800 | [diff] [blame] | 30 | <option name="target" value="device" /> |
| 31 | <option name="config-filename" value="{MODULE}" /> |
| 32 | <option name="version" value="1.0" /> |
| 33 | </target_preparer> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 34 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 35 | <option name="cleanup-apks" value="true" /> |
| 36 | <option name="test-file-name" value="{MODULE}.apk" /> |
Chalard Jean | 5301778 | 2022-11-24 17:13:44 +0900 | [diff] [blame] | 37 | <option name="test-file-name" value="CtsCarrierServicePackage.apk" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 38 | </target_preparer> |
Remi NGUYEN VAN | 89570ac | 2023-04-25 17:15:23 +0900 | [diff] [blame] | 39 | <target_preparer class="com.android.testutils.ConnectivityTestTargetPreparer"> |
Remi NGUYEN VAN | 9c358cd | 2021-10-04 19:50:32 +0900 | [diff] [blame] | 40 | </target_preparer> |
Remi NGUYEN VAN | bbe9cae | 2022-02-25 18:04:41 +0900 | [diff] [blame] | 41 | <target_preparer class="com.android.testutils.DisableConfigSyncTargetPreparer"> |
| 42 | </target_preparer> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 43 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
Lorenzo Colitti | 9e61b82 | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 44 | <option name="package" value="{PACKAGE}" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 45 | <option name="runtime-hint" value="9m4s" /> |
| 46 | <option name="hidden-api-checks" value="false" /> |
| 47 | <option name="isolated-storage" value="false" /> |
zhi | f4c1635 | 2024-05-08 20:52:00 +0800 | [diff] [blame] | 48 | <option name="instrumentation-arg" key="test-module-name" value="{MODULE}" /> |
Lorenzo Colitti | 9e61b82 | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 49 | <!-- Test filter that allows test APKs to select which tests they want to run by annotating |
| 50 | those tests with an annotation matching the name of the APK. |
| 51 | |
| 52 | This allows us to maintain one AndroidTestTemplate.xml for all CtsNetTestCases*.apk, |
Motomu Utsumi | c42f32f | 2024-06-12 19:15:26 +0900 | [diff] [blame] | 53 | and have CtsNetTestCases run all tests, but have CtsNetTestCasesMaxTargetSdk31 run only |
| 54 | tests that require target SDK 31. |
Lorenzo Colitti | 9e61b82 | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 55 | |
| 56 | This relies on the fact that if the class specified in include-annotation exists, then |
| 57 | the runner will only run the tests annotated with that annotation, but if it does not, |
| 58 | the runner will run all the tests. --> |
| 59 | <option name="include-annotation" value="com.android.testutils.filters.{MODULE}" /> |
Remi NGUYEN VAN | 43730b3 | 2024-10-09 16:24:44 +0900 | [diff] [blame] | 60 | <option name="device-listeners" value="com.android.testutils.ConnectivityDiagnosticsCollector" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 61 | </test> |
Remi NGUYEN VAN | 43730b3 | 2024-10-09 16:24:44 +0900 | [diff] [blame] | 62 | <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector"> |
| 63 | <!-- Pattern matching the fileKey used by ConnectivityDiagnosticsCollector when calling addFileMetric --> |
Remi NGUYEN VAN | 27fb206 | 2024-11-18 00:57:58 +0000 | [diff] [blame] | 64 | <option name="pull-pattern-keys" value="com.android.testutils.ConnectivityDiagnosticsCollector.*"/> |
Remi NGUYEN VAN | 43730b3 | 2024-10-09 16:24:44 +0900 | [diff] [blame] | 65 | <option name="collect-on-run-ended-only" value="true" /> |
| 66 | </metrics_collector> |
Remi NGUYEN VAN | a848aae | 2022-04-28 10:30:22 +0000 | [diff] [blame] | 67 | <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if |
| 68 | one of the Mainline modules below is present on the device used for testing. --> |
| 69 | <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> |
| 70 | <!-- Tethering Module (internal version). --> |
| 71 | <option name="mainline-module-package-name" value="com.google.android.tethering" /> |
| 72 | <!-- Tethering Module (AOSP version). --> |
| 73 | <option name="mainline-module-package-name" value="com.android.tethering" /> |
| 74 | <!-- NetworkStack Module (internal version). Should always be installed with CaptivePortalLogin. --> |
| 75 | <option name="mainline-module-package-name" value="com.google.android.networkstack" /> |
| 76 | <!-- NetworkStack Module (AOSP version). Should always be installed with CaptivePortalLogin. --> |
| 77 | <option name="mainline-module-package-name" value="com.android.networkstack" /> |
| 78 | <!-- Resolver Module (internal version). --> |
| 79 | <option name="mainline-module-package-name" value="com.google.android.resolv" /> |
| 80 | <!-- Resolver Module (AOSP version). --> |
| 81 | <option name="mainline-module-package-name" value="com.android.resolv" /> |
| 82 | </object> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 83 | </configuration> |