• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<configuration description="Base test plan for running CTS test modules with VTS">
17
18    <option name="dynamic-sharding" value="true" />
19    <device_recovery class="com.android.tradefed.device.WaitDeviceRecovery" />
20    <build_provider class="com.android.compatibility.common.tradefed.build.CompatibilityBuildProvider">
21        <option name="url-suite-name-override" value="CTS" />
22    </build_provider>
23
24    <option name="compatibility:test-arg" value="com.android.tradefed.testtype.AndroidJUnitTest:rerun-from-file:true" />
25    <option name="compatibility:test-arg" value="com.android.tradefed.testtype.AndroidJUnitTest:fallback-to-serial-rerun:false" />
26    <option name="compatibility:test-arg" value="com.android.compatibility.testtype.LibcoreTest:rerun-from-file:true" />
27    <option name="compatibility:test-arg" value="com.android.compatibility.testtype.LibcoreTest:fallback-to-serial-rerun:false" />
28
29    <logger class="com.android.tradefed.log.FileLogger">
30        <option name="log-level-display" value="WARN" />
31    </logger>
32    <result_reporter class="com.android.compatibility.common.tradefed.result.ConsoleReporter" />
33    <result_reporter class="com.android.compatibility.common.tradefed.result.VtsResultReporter" />
34    <result_reporter class="com.android.tradefed.result.suite.SuiteResultReporter" />
35
36    <include name="cts-preconditions" />
37    <option name="dynamic-config-pusher:dynamic-resource-name" value="vts-tradefed" />
38    <include name="cts-system-checkers" />
39    <include name="cts-known-failures" />
40
41    <option name="test-tag" value="cts" />
42
43    <option name="enable-root" value="true" />
44    <!-- retain 200MB of host log -->
45    <option name="max-log-size" value="200" />
46    <!--  retain 200MB of logcat -->
47    <option name="max-tmp-logcat-file" value="209715200" />
48
49    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
50        <option name="run-command" value="settings put global package_verifier_enable 0" />
51        <option name="teardown-command" value="settings put global package_verifier_enable 1"/>
52    </target_preparer>
53
54    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.PropertyCheck">
55        <option name="property-name" value="ro.build.type" />
56        <option name="expected-value" value="user"/> <!-- Device should have user build -->
57        <option name="throw-error" value="false"/> <!-- Only print warning if not user build -->
58    </target_preparer>
59
60    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.PropertyCheck">
61        <option name="property-name" value="ro.product.locale" />
62        <option name="expected-value" value="en-US"/> <!-- Device locale should be US English -->
63        <option name="throw-error" value="false"/> <!-- Only print warning if not en-US -->
64    </target_preparer>
65    <template-include name="reporters" default="basic-reporters" />
66
67    <!-- Include additional test metadata output. -->
68    <template-include name="metadata-reporters" default="empty" />
69    <target_preparer class="com.android.tradefed.targetprep.VtsDeviceInfoCollector" />
70
71    <option name="compatibility:primary-abi-only" value="true" />
72
73</configuration>
74