1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<configuration description="Config for CTS Libcore OkHttp test cases">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="libcore" />
19    <option name="config-descriptor:metadata" key="parameter" value="multi_abi" />
20    <!-- Test is eligible to run on Android Multiuser users other than SYSTEM.
21         See source.android.com/devices/tech/admin/multi-user#user_types -->
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
23    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
24    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
25        <!-- This CTS test module requires wifi, ensure wifi is on -->
26        <option name="run-command" value="settings put global wifi_on 1" />
27        <option name="run-command" value="svc wifi enable" />
28        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/java.io.tmpdir" />
29        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/user.home" />
30        <option name="teardown-command" value="rm -rf /data/local/tmp/ctslibcore" />
31    </target_preparer>
32    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
33        <option name="cleanup-apks" value="true" />
34        <!-- this has just the instrumentation which acts as the tests we want to run -->
35        <option name="test-file-name" value="CtsLibcoreOkHttpTestCases.apk" />
36    </target_preparer>
37    <test class="com.android.compatibility.testtype.LibcoreTest" >
38        <option name="package" value="android.libcore.cts.okhttp" />
39        <option name="instrumentation-arg" key="filter"
40                value="com.android.cts.core.runner.ExpectationBasedFilter" />
41        <option name="core-expectation" value="/knownfailures.txt" />
42        <option name="runtime-hint" value="15m"/>
43        <!-- 20x default timeout of 600sec -->
44        <option name="shell-timeout" value="12000000"/>
45        <option name="hidden-api-checks" value="false"/>
46    </test>
47
48    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.TestFailureModuleController">
49        <option name="screenshot-on-failure" value="false" />
50    </object>
51
52    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
53        <option name="mainline-module-package-name" value="com.google.android.conscrypt" />
54    </object>
55</configuration>
56