blob: 5298251b79f76a273a137e787a72755661991046 [file] [log] [blame]
Dan Shi7f2afd22017-03-17 10:21:28 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2017 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 Frameworks Services Tests.">
jdesprez421e8f62018-03-29 15:45:17 -070017 <option name="test-suite-tag" value="apct" />
18 <option name="test-suite-tag" value="apct-instrumentation" />
Jing Ji53ff2502021-11-23 20:58:45 -080019
20 <target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
21 <option name="cleanup" value="true" />
22 <option name="push-file" key="SimpleServiceTestApp3.apk"
23 value="/data/local/tmp/cts/content/SimpleServiceTestApp3.apk" />
Alex Buynytskyy5112cfe2023-03-01 09:56:23 -080024 <option name="push-file" key="broken_shortcut.xml"
25 value="/data/local/tmp/cts/content/broken_shortcut.xml" />
Jing Ji53ff2502021-11-23 20:58:45 -080026 </target_preparer>
27
Suprabh Shukla05929f52024-05-08 01:06:07 -070028 <target_preparer class="com.android.tradefed.targetprep.DeviceSetup">
29 <option name="force-skip-system-props" value="true" />
30 <option name="set-global-setting" key="verifier_engprod" value="1" />
31 <option name="set-global-setting" key="verifier_verify_adb_installs" value="0" />
32 <option name="restore-settings" value="true" />
33 </target_preparer>
34
jdesprez421e8f62018-03-29 15:45:17 -070035 <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
Suprabh Shukla021b57a2018-03-08 18:21:50 -080036 <option name="cleanup-apks" value="true" />
Suprabh Shukla77e22452018-05-22 18:02:37 -070037 <option name="install-arg" value="-t" />
Lee Shombertc429a482024-09-11 10:48:51 -070038 <option name="test-file-name" value="DisplayManagerTestApp.apk" />
Dan Shi7f2afd22017-03-17 10:21:28 -070039 <option name="test-file-name" value="FrameworksServicesTests.apk" />
Suprabh Shukla021b57a2018-03-08 18:21:50 -080040 <option name="test-file-name" value="SuspendTestApp.apk" />
Jing Jif45997c2021-03-26 00:50:09 -070041 <option name="test-file-name" value="SimpleServiceTestApp1.apk" />
42 <option name="test-file-name" value="SimpleServiceTestApp2.apk" />
43 <option name="test-file-name" value="SimpleServiceTestApp3.apk" />
Iván Budnik9244e022022-11-28 19:06:49 +000044 <option name="test-file-name" value="MediaButtonReceiverHolderTestHelperApp.apk" />
Dan Shi7f2afd22017-03-17 10:21:28 -070045 </target_preparer>
46
Jackal Guoa4a15f12021-11-16 13:44:59 +080047 <!-- Create place to store apks -->
48 <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
49 <option name="run-command" value="mkdir -p /data/local/tmp/servicestests" />
50 <option name="teardown-command" value="rm -rf /data/local/tmp/servicestests"/>
51 </target_preparer>
52
Dan Shi7f2afd22017-03-17 10:21:28 -070053 <option name="test-tag" value="FrameworksServicesTests" />
Dan Shi1fee3982017-03-22 22:30:53 -070054 <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
Dan Shi7f2afd22017-03-17 10:21:28 -070055 <option name="package" value="com.android.frameworks.servicestests" />
Brett Chabota26eda92018-07-23 13:08:30 -070056 <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
Nicolas Geoffrayb0284fb2018-04-06 14:03:18 +010057 <option name="hidden-api-checks" value="false"/>
Michael Wrighteedfcc82022-07-06 20:01:37 +010058 <option name="exclude-annotation" value="androidx.test.filters.FlakyTest" />
Dan Shi7f2afd22017-03-17 10:21:28 -070059 </test>
60</configuration>