1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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 all the tests in MTS">
17
18    <include name="everything" />
19    <option name="plan" value="mts" />
20    <option name="test-tag" value="mts" />
21
22    <include name="mts-preconditions" />
23    <include name="mts-exclude" />
24
25    <option name="enable-root" value="true" />
26
27    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
28        <option name="run-command" value="settings put global package_verifier_enable 0" />
29        <option name="teardown-command" value="settings put global package_verifier_enable 1"/>
30    </target_preparer>
31
32    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.BusinessLogicPreparer">
33        <option name="business-logic-url" value="https://androidpartner.googleapis.com/v1/xtsBusinessLogic/suites/gts:select" />
34        <option name="business-logic-api-key" value="AIzaSyCZNccVFX50XFhVUbh_vEUxG0C8z8As6wk" />
35        <option name="business-logic-api-scope" value="https://www.googleapis.com/auth/androidPartner" />
36    </target_preparer>
37
38    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.PropertyCheck">
39        <option name="property-name" value="ro.build.type" />
40        <option name="expected-value" value="user"/> <!-- Device should have user build -->
41        <option name="throw-error" value="false"/> <!-- Only print warning if not user build -->
42    </target_preparer>
43
44    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.PropertyCheck">
45        <option name="property-name" value="ro.product.locale" />
46        <option name="expected-value" value="en-US"/> <!-- Device locale should be US English -->
47        <option name="throw-error" value="false"/> <!-- Only print warning if not en-US -->
48    </target_preparer>
49
50    <template-include name="reporters" default="basic-reporters" />
51
52    <!-- Advertise the test suite to media cts. -->
53    <!-- TODO:delete after mts-all.xml is ready. -->
54    <option name="compatibility:module-arg" value="CtsMediaTestCases:instrumentation-arg:mts-media:=true" />
55</configuration>
56
57