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 JSR166 test cases"> 17 <option name="config-descriptor:metadata" key="component" value="libcore" /> 18 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> 19 <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/java.io.tmpdir" /> 20 <option name="run-command" value="mkdir -p /data/local/tmp/ctslibcore/user.home" /> 21 <option name="teardown-command" value="rm -rf /data/local/tmp/ctslibcore" /> 22 </target_preparer> 23 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> 24 <option name="cleanup-apks" value="true" /> 25 <!-- this has just the instrumentation which acts as the tests we want to run --> 26 <option name="test-file-name" value="CtsLibcoreJsr166TestCases.apk" /> 27 </target_preparer> 28 <test class="com.android.compatibility.testtype.LibcoreTest" > 29 <option name="package" value="android.libcore.cts.jsr166" /> 30 <option name="instrumentation-arg" key="listener" 31 value="com.android.cts.runner.CtsTestRunListener" /> 32 <option name="instrumentation-arg" key="filter" 33 value="com.android.cts.core.runner.ExpectationBasedFilter" /> 34 <option name="core-expectation" value="/knownfailures.txt" /> 35 <option name="core-expectation" value="/brokentests.txt" /> 36 <option name="core-expectation" value="/icebox.txt" /> 37 <option name="core-expectation" value="/taggedtests.txt" /> 38 <option name="runtime-hint" value="10m"/> 39 <!-- 20x default timeout of 600sec --> 40 <option name="shell-timeout" value="12000000"/> 41 </test> 42</configuration> 43