xref: /aosp_15_r20/cts/tests/appfunctions/AndroidTest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2024 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 AppFunction CTS tests.">
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="not_instant_app"/>
20    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi"/>
21    <option name="config-descriptor:metadata" key="parameter" value="secondary_user"/>
22    <option name="config-descriptor:metadata" key="parameter" value="secondary_user_on_secondary_display"/>
23    <option name="config-descriptor:metadata" key="parameter" value="run_on_sdk_sandbox" />
24    <option name="config-descriptor:metadata" key="parameter" value="multiuser" />
25
26    <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
27        <option name="force-skip-system-props" value="true" />
28        <option name="set-global-setting" key="verifier_engprod" value="1" />
29        <option name="set-global-setting" key="verifier_verify_adb_installs" value="0" />
30        <option name="restore-settings" value="true" />
31    </target_preparer>
32    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
33        <option name="cleanup-apks" value="true" />
34        <option name="test-file-name" value="CtsAppFunctionTestCases.apk" />
35        <option name="test-file-name" value="CtsAppFunctionsTestHelper.apk" />
36        <option name="test-file-name" value="CtsAppFunctionsSidecarTestHelper.apk" />
37    </target_preparer>
38    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
39        <option name="cleanup" value="true" />
40        <option name="push"
41            value="CtsAppSearchIndexerTestAppAV1.apk->/data/local/tmp/cts/appfunctions/CtsAppSearchIndexerTestAppAV1.apk" />
42        <option name="push"
43            value="CtsAppSearchIndexerTestAppAV2.apk->/data/local/tmp/cts/appfunctions/CtsAppSearchIndexerTestAppAV2.apk" />
44        <option name="push"
45            value="CtsAppSearchIndexerTestAppAV3.apk->/data/local/tmp/cts/appfunctions/CtsAppSearchIndexerTestAppAV3.apk" />
46        <option name="push"
47            value="CtsAppSearchIndexerTestAppBV1.apk->/data/local/tmp/cts/appfunctions/CtsAppSearchIndexerTestAppBV1.apk" />
48    </target_preparer>
49
50    <test class="com.android.tradefed.testtype.AndroidJUnitTest">
51        <option name="package" value="android.app.appfunctions.cts"/>
52        <!-- Tests with these annotations should only be ran with their corresponding
53             configurations, e.g. Tests with the RequireRunOnWorkProfile annotation should be
54             ran with the run_on_work_profile configuration. Exclude these tests from running
55             with the normal configuration.
56             See go/bedstead-devicestate#androidtestxml
57        -->
58        <option name="exclude-annotation" value="com.android.bedstead.enterprise.annotations.RequireRunOnWorkProfile" />
59        <option name="exclude-annotation" value="com.android.bedstead.multiuser.annotations.RequireRunOnSecondaryUser" />
60    </test>
61
62</configuration>