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        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/java.io.tmpdir" />
26        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/user.home" />
27        <option name="teardown-command" value="rm -rf /data/local/tmp/ctslibcore" />
28    </target_preparer>
29    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
30        <option name="cleanup-apks" value="true" />
31        <!-- this has just the instrumentation which acts as the tests we want to run -->
32        <option name="test-file-name" value="CtsLibcoreOkHttpTestCases.apk" />
33    </target_preparer>
34    <test class="com.android.compatibility.testtype.LibcoreTest" >
35        <option name="package" value="android.libcore.cts.okhttp" />
36        <option name="instrumentation-arg" key="filter"
37                value="com.android.cts.core.runner.ExpectationBasedFilter" />
38        <option name="core-expectation" value="/knownfailures.txt" />
39        <option name="runtime-hint" value="15m"/>
40        <!-- 20x default timeout of 600sec -->
41        <option name="shell-timeout" value="12000000"/>
42        <option name="hidden-api-checks" value="false"/>
43    </test>
44
45    <object type="module_controller" class="com.android.tradefed.testtype.suite.module.TestFailureModuleController">
46        <option name="screenshot-on-failure" value="false" />
47    </object>
48</configuration>
49