1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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 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="CtsLibcoreTestCases.apk" /> 33 </target_preparer> 34 <test class="com.android.compatibility.testtype.LibcoreTest" > 35 <option name="package" value="android.libcore.cts" /> 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="virtual-device-core-expectation" value="/virtualdeviceknownfailures.txt" /> 40 <option name="runtime-hint" value="45m"/> 41 <!-- 20x default timeout of 600sec --> 42 <option name="shell-timeout" value="12000000"/> 43 <option name="hidden-api-checks" value="false"/> 44 <option name="device-listeners" value="org.conscrypt.ConscryptInstrumentationListener" /> 45 <option name="instrumentation-arg" key="conscrypt_sslsocket_implementation" value="engine" /> 46 </test> 47 <!-- Re-run a subset of tests using Conscrypt's file-descriptor based implementation to ensure 48 there are no regressions in this implementation before it is fully deprecated. 49 50 Expectations for these tests are the same as above, only timeout and SSLSocket 51 implementation are different. 52 --> 53 <test class="com.android.compatibility.testtype.LibcoreTest" > 54 <option name="package" value="android.libcore.cts" /> 55 <option name="include-filter" value="libcore.javax.net.ssl" /> 56 <option name="include-filter" value="com.android.org.conscrypt.javax.net.ssl" /> 57 <option name="include-filter" value="org.apache.harmony.tests.javax.net.ssl" /> 58 <option name="instrumentation-arg" key="filter" 59 value="com.android.cts.core.runner.ExpectationBasedFilter" /> 60 <option name="core-expectation" value="/knownfailures.txt" /> 61 <option name="virtual-device-core-expectation" value="/virtualdeviceknownfailures.txt" /> 62 <option name="runtime-hint" value="5m"/> 63 <option name="hidden-api-checks" value="false"/> 64 <option name="device-listeners" value="org.conscrypt.ConscryptInstrumentationListener" /> 65 <option name="instrumentation-arg" key="conscrypt_sslsocket_implementation" value="fd" /> 66 </test> 67 68 <object type="module_controller" class="com.android.tradefed.testtype.suite.module.TestFailureModuleController"> 69 <option name="screenshot-on-failure" value="false" /> 70 </object> 71</configuration> 72