xref: /aosp_15_r20/libcore/AndroidTest-core-tests.xml (revision 89a6322812dc8573315e60046e7959c50dad91d4)
1*89a63228SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*89a63228SAndroid Build Coastguard Worker<!-- Copyright (C) 2018 The Android Open Source Project
3*89a63228SAndroid Build Coastguard Worker
4*89a63228SAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
5*89a63228SAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
6*89a63228SAndroid Build Coastguard Worker     You may obtain a copy of the License at
7*89a63228SAndroid Build Coastguard Worker
8*89a63228SAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
9*89a63228SAndroid Build Coastguard Worker
10*89a63228SAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
11*89a63228SAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
12*89a63228SAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*89a63228SAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
14*89a63228SAndroid Build Coastguard Worker     limitations under the License.
15*89a63228SAndroid Build Coastguard Worker-->
16*89a63228SAndroid Build Coastguard Worker<!-- This test config is placed here for use by atest to enable it to determine
17*89a63228SAndroid Build Coastguard Worker     which tests to run for core-tests.jar (only). It assumes that the majority
18*89a63228SAndroid Build Coastguard Worker     of tests for libcore are in the CtsLibcoreTestCases module and therefore
19*89a63228SAndroid Build Coastguard Worker     does not help for tests where that is not the case.
20*89a63228SAndroid Build Coastguard Worker
21*89a63228SAndroid Build Coastguard Worker     This file is effectively a copy of the real CtsLibcoreTestCases
22*89a63228SAndroid Build Coastguard Worker     AndroidTest.xml file and should track the content of that file.
23*89a63228SAndroid Build Coastguard Worker
24*89a63228SAndroid Build Coastguard Worker     TODO: b/114773808 to remove this copied config and execute core-tests.jar
25*89a63228SAndroid Build Coastguard Worker     directly.
26*89a63228SAndroid Build Coastguard Worker-->
27*89a63228SAndroid Build Coastguard Worker<configuration description="Config for Libcore test cases">
28*89a63228SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
29*89a63228SAndroid Build Coastguard Worker        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/java.io.tmpdir" />
30*89a63228SAndroid Build Coastguard Worker        <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/user.home" />
31*89a63228SAndroid Build Coastguard Worker        <option name="teardown-command" value="rm -rf /data/local/tmp/ctslibcore" />
32*89a63228SAndroid Build Coastguard Worker    </target_preparer>
33*89a63228SAndroid Build Coastguard Worker    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
34*89a63228SAndroid Build Coastguard Worker        <option name="cleanup-apks" value="true" />
35*89a63228SAndroid Build Coastguard Worker        <!-- this has just the instrumentation which acts as the tests we want to run -->
36*89a63228SAndroid Build Coastguard Worker        <option name="test-file-name" value="CtsLibcoreTestCases.apk" />
37*89a63228SAndroid Build Coastguard Worker    </target_preparer>
38*89a63228SAndroid Build Coastguard Worker    <test class="com.android.compatibility.testtype.LibcoreTest" >
39*89a63228SAndroid Build Coastguard Worker        <option name="package" value="android.libcore.cts" />
40*89a63228SAndroid Build Coastguard Worker        <option name="instrumentation-arg" key="filter"
41*89a63228SAndroid Build Coastguard Worker                value="com.android.cts.core.runner.ExpectationBasedFilter" />
42*89a63228SAndroid Build Coastguard Worker        <option name="core-expectation" value="/knownfailures.txt" />
43*89a63228SAndroid Build Coastguard Worker        <option name="runtime-hint" value="45m"/>
44*89a63228SAndroid Build Coastguard Worker        <!-- 20x default timeout of 600sec -->
45*89a63228SAndroid Build Coastguard Worker        <option name="shell-timeout" value="12000000"/>
46*89a63228SAndroid Build Coastguard Worker        <option name="hidden-api-checks" value="false"/>
47*89a63228SAndroid Build Coastguard Worker    </test>
48*89a63228SAndroid Build Coastguard Worker</configuration>
49