1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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<!-- This test config is placed here for use by atest to enable it to determine
17     which tests to run for core-tests.jar (only). It assumes that the majority
18     of tests for libcore are in the CtsLibcoreTestCases module and therefore
19     does not help for tests where that is not the case.
20
21     This file is effectively a copy of the real CtsLibcoreTestCases
22     AndroidTest.xml file and should track the content of that file.
23
24     TODO: b/114773808 to remove this copied config and execute core-tests.jar
25     directly.
26-->
27<configuration description="Config for Libcore test cases">
28    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
29        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/java.io.tmpdir" />
30        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/user.home" />
31        <option name="teardown-command" value="rm -rf /data/local/tmp/ctslibcore" />
32    </target_preparer>
33    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
34        <option name="cleanup-apks" value="true" />
35        <!-- this has just the instrumentation which acts as the tests we want to run -->
36        <option name="test-file-name" value="CtsLibcoreTestCases.apk" />
37    </target_preparer>
38    <test class="com.android.compatibility.testtype.LibcoreTest" >
39        <option name="package" value="android.libcore.cts" />
40        <option name="instrumentation-arg" key="filter"
41                value="com.android.cts.core.runner.ExpectationBasedFilter" />
42        <option name="core-expectation" value="/knownfailures.txt" />
43        <option name="runtime-hint" value="45m"/>
44        <!-- 20x default timeout of 600sec -->
45        <option name="shell-timeout" value="12000000"/>
46        <option name="hidden-api-checks" value="false"/>
47    </test>
48</configuration>
49