jdesprez | cab3cb1 | 2017-06-06 19:22:33 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 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="Runs CTS as a suite"> |
| 17 | <!-- running config --> |
| 18 | <build_provider class="com.android.compatibility.common.tradefed.build.CompatibilityBuildProvider" /> |
jdesprez | f3ebf0e | 2018-01-22 17:29:18 -0800 | [diff] [blame^] | 19 | <test class="com.android.compatibility.common.tradefed.testtype.suite.CompatibilityTestSuite"> |
| 20 | <option name="run-suite-tag" value="cts" /> |
| 21 | </test> |
jdesprez | cab3cb1 | 2017-06-06 19:22:33 -0700 | [diff] [blame] | 22 | |
| 23 | <option name="compatibility:test-arg" value="com.android.tradefed.testtype.AndroidJUnitTest:rerun-from-file:true" /> |
| 24 | <option name="compatibility:test-arg" value="com.android.tradefed.testtype.AndroidJUnitTest:fallback-to-serial-rerun:false" /> |
| 25 | |
| 26 | <logger class="com.android.tradefed.log.FileLogger"> |
| 27 | <option name="log-level-display" value="WARN" /> |
| 28 | </logger> |
| 29 | <!-- setup configs --> |
| 30 | <include name="cts-preconditions" /> |
| 31 | <include name="cts-system-checkers" /> |
| 32 | <include name="cts-known-failures" /> |
Yifan Hong | 8b9eb85 | 2017-08-15 15:12:58 -0700 | [diff] [blame] | 33 | <include name="cts-exclude" /> |
jdesprez | cab3cb1 | 2017-06-06 19:22:33 -0700 | [diff] [blame] | 34 | |
| 35 | <option name="plan" value="cts-suite" /> |
| 36 | <option name="test-tag" value="cts-suite" /> |
| 37 | |
| 38 | <option name="enable-root" value="false" /> |
jdesprez | bf76d8d | 2017-06-08 14:46:24 -0700 | [diff] [blame] | 39 | <!-- retain 200MB of host log --> |
| 40 | <option name="max-log-size" value="200" /> |
| 41 | <!-- retain 200MB of logcat --> |
| 42 | <option name="max-tmp-logcat-file" value="209715200" /> |
jdesprez | cab3cb1 | 2017-06-06 19:22:33 -0700 | [diff] [blame] | 43 | |
Sam Lin | cfdb393 | 2017-08-25 18:45:01 -0700 | [diff] [blame] | 44 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
| 45 | <option name="run-command" value="settings put global package_verifier_enable 0" /> |
| 46 | <option name="teardown-command" value="settings put global package_verifier_enable 1"/> |
| 47 | </target_preparer> |
| 48 | |
jdesprez | cab3cb1 | 2017-06-06 19:22:33 -0700 | [diff] [blame] | 49 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.PropertyCheck"> |
| 50 | <option name="property-name" value="ro.build.type" /> |
| 51 | <option name="expected-value" value="user"/> <!-- Device should have user build --> |
| 52 | <option name="throw-error" value="false"/> <!-- Only print warning if not user build --> |
| 53 | </target_preparer> |
| 54 | |
| 55 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.PropertyCheck"> |
| 56 | <option name="property-name" value="ro.product.locale" /> |
| 57 | <option name="expected-value" value="en-US"/> <!-- Device locale should be US English --> |
| 58 | <option name="throw-error" value="false"/> <!-- Only print warning if not en-US --> |
| 59 | </target_preparer> |
| 60 | |
| 61 | <template-include name="reporters" default="basic-reporters" /> |
| 62 | |
jdesprez | bf76d8d | 2017-06-08 14:46:24 -0700 | [diff] [blame] | 63 | <!-- Include additional test metadata output. --> |
| 64 | <template-include name="metadata-reporters" default="empty" /> |
| 65 | |
jdesprez | c496825 | 2017-07-26 10:41:38 -0700 | [diff] [blame] | 66 | <result_reporter class="com.android.compatibility.common.tradefed.result.ConsoleReporter" /> |
jdesprez | cab3cb1 | 2017-06-06 19:22:33 -0700 | [diff] [blame] | 67 | <result_reporter class="com.android.compatibility.common.tradefed.result.ResultReporter" /> |
| 68 | <result_reporter class="com.android.tradefed.result.suite.SuiteResultReporter" /> |
| 69 | </configuration> |