blob: 24431a628edd1af2b4dbdfdbfa76375a549d9b99 [file] [log] [blame]
Baligh Uddin6a41dd42020-11-04 04:21:14 +00001<!-- 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 VAN3b813232022-02-16 12:15:14 +090024 <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 Uddin6a41dd42020-11-04 04:21:14 +000026 <option name="not-shardable" value="true" />
zhif4c16352024-05-08 20:52:00 +080027 <target_preparer class="com.android.compatibility.common.tradefed.targetprep.DynamicConfigPusher">
zhi93b3d292024-07-19 18:15:34 +080028 <option name="has-server-side-config" value="false" />
zhif4c16352024-05-08 20:52:00 +080029 <option name="target" value="device" />
30 <option name="config-filename" value="{MODULE}" />
31 <option name="version" value="1.0" />
32 </target_preparer>
Baligh Uddin6a41dd42020-11-04 04:21:14 +000033 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
34 <option name="cleanup-apks" value="true" />
35 <option name="test-file-name" value="{MODULE}.apk" />
Chalard Jean53017782022-11-24 17:13:44 +090036 <option name="test-file-name" value="CtsCarrierServicePackage.apk" />
Baligh Uddin6a41dd42020-11-04 04:21:14 +000037 </target_preparer>
Remi NGUYEN VAN89570ac2023-04-25 17:15:23 +090038 <target_preparer class="com.android.testutils.ConnectivityTestTargetPreparer">
Remi NGUYEN VAN9c358cd2021-10-04 19:50:32 +090039 </target_preparer>
Remi NGUYEN VANbbe9cae2022-02-25 18:04:41 +090040 <target_preparer class="com.android.testutils.DisableConfigSyncTargetPreparer">
41 </target_preparer>
Baligh Uddin6a41dd42020-11-04 04:21:14 +000042 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090043 <option name="package" value="{PACKAGE}" />
Baligh Uddin6a41dd42020-11-04 04:21:14 +000044 <option name="runtime-hint" value="9m4s" />
45 <option name="hidden-api-checks" value="false" />
46 <option name="isolated-storage" value="false" />
zhif4c16352024-05-08 20:52:00 +080047 <option name="instrumentation-arg" key="test-module-name" value="{MODULE}" />
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090048 <!-- Test filter that allows test APKs to select which tests they want to run by annotating
49 those tests with an annotation matching the name of the APK.
50
51 This allows us to maintain one AndroidTestTemplate.xml for all CtsNetTestCases*.apk,
Motomu Utsumic42f32f2024-06-12 19:15:26 +090052 and have CtsNetTestCases run all tests, but have CtsNetTestCasesMaxTargetSdk31 run only
53 tests that require target SDK 31.
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090054
55 This relies on the fact that if the class specified in include-annotation exists, then
56 the runner will only run the tests annotated with that annotation, but if it does not,
57 the runner will run all the tests. -->
58 <option name="include-annotation" value="com.android.testutils.filters.{MODULE}" />
Baligh Uddin6a41dd42020-11-04 04:21:14 +000059 </test>
Remi NGUYEN VANa848aae2022-04-28 10:30:22 +000060 <!-- When this test is run in a Mainline context (e.g. with `mts-tradefed`), only enable it if
61 one of the Mainline modules below is present on the device used for testing. -->
62 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
63 <!-- Tethering Module (internal version). -->
64 <option name="mainline-module-package-name" value="com.google.android.tethering" />
65 <!-- Tethering Module (AOSP version). -->
66 <option name="mainline-module-package-name" value="com.android.tethering" />
67 <!-- NetworkStack Module (internal version). Should always be installed with CaptivePortalLogin. -->
68 <option name="mainline-module-package-name" value="com.google.android.networkstack" />
69 <!-- NetworkStack Module (AOSP version). Should always be installed with CaptivePortalLogin. -->
70 <option name="mainline-module-package-name" value="com.android.networkstack" />
71 <!-- Resolver Module (internal version). -->
72 <option name="mainline-module-package-name" value="com.google.android.resolv" />
73 <!-- Resolver Module (AOSP version). -->
74 <option name="mainline-module-package-name" value="com.android.resolv" />
75 </object>
Baligh Uddin6a41dd42020-11-04 04:21:14 +000076</configuration>