xref: /aosp_15_r20/cts/tests/appsearch/AndroidTest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2019 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<configuration description="Config for CTS AppSearch test cases">
18    <option name="test-suite-tag" value="cts" />
19    <option name="config-descriptor:metadata" key="component" value="framework" />
20    <option name="config-descriptor:metadata" key="parameter" value="no_foldable_states" />
21    <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" />
22    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
23    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
24    <option name="config-descriptor:metadata" key="parameter" value="secondary_user_on_secondary_display" />
25    <option name="config-descriptor:metadata" key="parameter" value="run_on_sdk_sandbox" />
26    <option name="config-descriptor:metadata" key="parameter" value="run_on_work_profile" />
27
28    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
29        <option name="cleanup-apks" value="true" />
30        <option name="test-file-name" value="CtsAppSearchTestCases.apk" />
31        <option name="test-file-name" value="CtsAppSearchTestHelperA.apk" />
32        <option name="test-file-name" value="CtsAppSearchTestHelperB.apk" />
33    </target_preparer>
34
35    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
36        <option name="cleanup" value="true" />
37        <option name="push" value="CtsAppSearchIndexerTestAppAV1.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppAV1.apk" />
38        <option name="push" value="CtsAppSearchIndexerTestAppAV2.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppAV2.apk" />
39        <option name="push" value="CtsAppSearchIndexerTestAppAV3.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppAV3.apk" />
40        <option name="push" value="CtsAppSearchIndexerTestAppBV1.apk->/data/local/tmp/cts/appsearch/CtsAppSearchIndexerTestAppBV1.apk" />
41    </target_preparer>
42
43    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
44        <option name="package" value="com.android.cts.appsearch" />
45
46        <!-- Tests with these annotations should only be ran with their corresponding
47             configurations, e.g. Tests with the RequireRunOnWorkProfile annotation should be
48             ran with the run_on_work_profile configuration. Exclude these tests from running
49             with the normal configuration.
50             See go/bedstead-devicestate#androidtestxml
51        -->
52        <option name="exclude-annotation" value="com.android.bedstead.enterprise.annotations.RequireRunOnWorkProfile" />
53        <option name="exclude-annotation" value="com.android.bedstead.multiuser.annotations.RequireRunOnSecondaryUser" />
54    </test>
55
56    <object type="module_controller"
57            class="com.android.tradefed.testtype.suite.module.MainlineTestModuleController">
58        <option name="mainline-module-package-name" value="com.google.android.appsearch" />
59    </object>
60
61    <object type="module_controller"
62            class="com.android.tradefed.testtype.suite.module.Sdk33ModuleController" />
63</configuration>
64