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