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" /> |
| 22 | |
| 23 | <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] | 24 | <option name="config-descriptor:metadata" key="mainline-param" value="CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk" /> |
| 25 | <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] | 26 | <option name="not-shardable" value="true" /> |
| 27 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
| 28 | <option name="cleanup-apks" value="true" /> |
| 29 | <option name="test-file-name" value="{MODULE}.apk" /> |
| 30 | </target_preparer> |
Remi NGUYEN VAN | 9c358cd | 2021-10-04 19:50:32 +0900 | [diff] [blame] | 31 | <target_preparer class="com.android.testutils.ConnectivityCheckTargetPreparer"> |
| 32 | </target_preparer> |
Remi NGUYEN VAN | bbe9cae | 2022-02-25 18:04:41 +0900 | [diff] [blame] | 33 | <target_preparer class="com.android.testutils.DisableConfigSyncTargetPreparer"> |
| 34 | </target_preparer> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 35 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
Lorenzo Colitti | ec895ea | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 36 | <option name="package" value="{PACKAGE}" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 37 | <option name="runtime-hint" value="9m4s" /> |
| 38 | <option name="hidden-api-checks" value="false" /> |
| 39 | <option name="isolated-storage" value="false" /> |
Lorenzo Colitti | ec895ea | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 40 | <!-- Test filter that allows test APKs to select which tests they want to run by annotating |
| 41 | those tests with an annotation matching the name of the APK. |
| 42 | |
| 43 | This allows us to maintain one AndroidTestTemplate.xml for all CtsNetTestCases*.apk, |
| 44 | and have CtsNetTestCases and CtsNetTestCasesLatestSdk run all tests, but have |
| 45 | CtsNetTestCasesMaxTargetSdk31 run only tests that require target SDK 31. |
| 46 | |
| 47 | This relies on the fact that if the class specified in include-annotation exists, then |
| 48 | the runner will only run the tests annotated with that annotation, but if it does not, |
| 49 | the runner will run all the tests. --> |
| 50 | <option name="include-annotation" value="com.android.testutils.filters.{MODULE}" /> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 51 | </test> |
Remi NGUYEN VAN | c81a3e3 | 2022-04-28 10:30:22 +0000 | [diff] [blame] | 52 | <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if |
| 53 | one of the Mainline modules below is present on the device used for testing. --> |
| 54 | <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController"> |
| 55 | <!-- Tethering Module (internal version). --> |
| 56 | <option name="mainline-module-package-name" value="com.google.android.tethering" /> |
| 57 | <!-- Tethering Module (AOSP version). --> |
| 58 | <option name="mainline-module-package-name" value="com.android.tethering" /> |
| 59 | <!-- NetworkStack Module (internal version). Should always be installed with CaptivePortalLogin. --> |
| 60 | <option name="mainline-module-package-name" value="com.google.android.networkstack" /> |
| 61 | <!-- NetworkStack Module (AOSP version). Should always be installed with CaptivePortalLogin. --> |
| 62 | <option name="mainline-module-package-name" value="com.android.networkstack" /> |
| 63 | <!-- Resolver Module (internal version). --> |
| 64 | <option name="mainline-module-package-name" value="com.google.android.resolv" /> |
| 65 | <!-- Resolver Module (AOSP version). --> |
| 66 | <option name="mainline-module-package-name" value="com.android.resolv" /> |
| 67 | </object> |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 68 | </configuration> |