• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="Config for CTS AppSearch test cases">
17    <option name="test-suite-tag" value="cts" />
18    <option name="config-descriptor:metadata" key="component" value="framework" />
19    <option name="config-descriptor:metadata" key="parameter" value="no_foldable_states" />
20    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
21    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
23    <option name="config-descriptor:metadata" key="parameter"
24        value="secondary_user_on_secondary_display" />
25    <option name="config-descriptor:metadata" key="parameter" value="run_on_sdk_sandbox" />
26
27    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
28        <option name="cleanup-apks" value="true" />
29        <option name="test-file-name" value="CtsAppSearchTestCases.apk" />
30        <option name="test-file-name" value="CtsAppSearchTestHelperA.apk" />
31        <option name="test-file-name" value="CtsAppSearchTestHelperB.apk" />
32    </target_preparer>
33
34    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
35        <option name="cleanup" value="true" />
36        <option name="push"
37            value="CtsAppSearchIndexerTestAppAV1.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppAV1.apk" />
38        <option name="push"
39            value="CtsAppSearchIndexerTestAppAV2.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppAV2.apk" />
40        <option name="push"
41            value="CtsAppSearchIndexerTestAppAV3.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppAV3.apk" />
42        <option name="push"
43            value="CtsAppSearchIndexerTestAppBV1.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppBV1.apk" />
44        <option name="push"
45            value="CtsAppSearchIndexerTestAppADynamicSchema.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppADynamicSchema.apk" />
46        <option name="push"
47            value="CtsAppSearchIndexerTestAppBDynamicSchema.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppBDynamicSchema.apk" />
48        <option name="push"
49            value="CtsAppSearchIndexerTestAppADynamicSchemaFewerTypes.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppADynamicSchemaFewerTypes.apk" />
50        <option name="push"
51            value="CtsAppSearchIndexerTestAppADynamicSchemaMultipleRootSchemas.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppADynamicSchemaMultipleRootSchemas.apk" />
52    </target_preparer>
53
54    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
55        <option name="package" value="com.android.cts.appsearch" />
56
57        <!-- Tests with these annotations should only be ran with their corresponding
58             configurations, e.g. Tests with the RequireRunOnWorkProfile annotation should be
59             ran with the run_on_work_profile configuration. Exclude these tests from running
60             with the normal configuration.
61             See go/bedstead-devicestate#androidtestxml
62        -->
63        <option name="exclude-annotation"
64            value="com.android.bedstead.enterprise.annotations.RequireRunOnWorkProfile" />
65        <option name="exclude-annotation"
66            value="com.android.bedstead.multiuser.annotations.RequireRunOnSecondaryUser" />
67    </test>
68
69    <object type="module_controller"
70        class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
71        <option name="mainline-module-package-name" value="com.google.android.appsearch" />
72    </object>
73
74    <object type="module_controller"
75        class="com.android.tradefed.testtype.suite.module.Sdk33ModuleController" />
76</configuration>
77