blob: d2fb04aced250cb541b1d46504930077800b449f [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" />
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 VAN9c358cd2021-10-04 19:50:32 +090031 <target_preparer class="com.android.testutils.ConnectivityCheckTargetPreparer">
32 </target_preparer>
Remi NGUYEN VANbbe9cae2022-02-25 18:04:41 +090033 <target_preparer class="com.android.testutils.DisableConfigSyncTargetPreparer">
34 </target_preparer>
Baligh Uddin6a41dd42020-11-04 04:21:14 +000035 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
Lorenzo Colittiec895ea2022-05-28 00:20:06 +090036 <option name="package" value="{PACKAGE}" />
Baligh Uddin6a41dd42020-11-04 04:21:14 +000037 <option name="runtime-hint" value="9m4s" />
38 <option name="hidden-api-checks" value="false" />
39 <option name="isolated-storage" value="false" />
Lorenzo Colittiec895ea2022-05-28 00:20:06 +090040 <!-- 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 Uddin6a41dd42020-11-04 04:21:14 +000051 </test>
Remi NGUYEN VANc81a3e32022-04-28 10:30:22 +000052 <!-- 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 Uddin6a41dd42020-11-04 04:21:14 +000068</configuration>