blob: dd56db168b07fc4d217437a62fb0373e13c1f738 [file] [log] [blame]
The Android Open Source Project52d4c302009-03-03 19:29:09 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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
17<!--
18This file contains standard test definitions for the Android platform
19
Niko Catania2e990b92009-04-02 16:52:26 -070020Java tests are defined by <test> tags and native ones (C/C++) are defined by
21<test-native> tags.
The Android Open Source Project52d4c302009-03-03 19:29:09 -080022
Niko Catania2e990b92009-04-02 16:52:26 -070023JAVA/application tests:
24=======================
25 The java <test> element has the following attributes
The Android Open Source Project52d4c302009-03-03 19:29:09 -080026
Niko Catania2e990b92009-04-02 16:52:26 -070027 name package [class runner build_path coverage_target continuous description]
The Android Open Source Project52d4c302009-03-03 19:29:09 -080028
Niko Catania2e990b92009-04-02 16:52:26 -070029 Where:
30 name: Self-descriptive name used to uniquely identify the test
31 build_path: File system path, relative to Android build root, to this
32 package's Android.mk file. If omitted, build/sync step for this test will
33 be skipped.
34 package: Android application package that contains the tests
35 class: Optional. Fully qualified Java test class to run.
36 runner: Fully qualified InstrumentationTestRunner to execute. If omitted,
37 will default to android.test.InstrumentationTestRunner.
38 coverage_target: Build name of Android package this test targets - these
39 targets are defined in the coverage_targets.xml file. Used as basis for
40 code coverage metrics. If omitted, code coverage will not be supported for
41 this test.
42 continuous: Optional boolean. Default is false. Set to true if tests are known
43 to be reliable, and should be included in a continuous test system. false if
44 they are under development.
The Android Open Source Project52d4c302009-03-03 19:29:09 -080045
Niko Catania2e990b92009-04-02 16:52:26 -070046 description: Optional string. Default is empty. Short description (typically
47 less than 60 characters) about this test.
48
49 These attributes map to the following commands:
50 (if class is defined)
51 adb shell am instrument -w <package>/<runner>
52 (else)
53 adb shell am instrument -w -e class <class> <package>/<runner>
54
55Native tests:
56=============
57 The <test-native> element has the following attributes
58
59 name build_path [continuous description]
60
61 Where:
62 name: Self-descriptive name used to uniquely identify the test
63 build_path: File system path, relative to Android build root, to this
64 package's Android.mk file. By convention the name of a test starts with
65 'test_'.
66 continuous: Optional boolean. Default is false. Set to true if tests are known
67 to be reliable, and should be included in a continuous test system.
68 false if they are under development.
69 description: Optional string. Default is empty. Short description (typically
70 less than 60 characters) about this test.
Niko Cataniaa6dc2ab2009-04-03 14:12:46 -070071 extra_make_args: Optional string. Default is empty. Some test module require
72 extra make arguments to build. This string is append to the make command.
Niko Catania2e990b92009-04-02 16:52:26 -070073
74 These attributes map to the following commands:
Niko Cataniaa6dc2ab2009-04-03 14:12:46 -070075 make <build_path>/Android.mk <extra_make_args>
Niko Catania2e990b92009-04-02 16:52:26 -070076 adb sync
77 for test_prog in <tests built>; do
78 adb shell "/system/bin/${test_prog} >/dev/null 2>&1;echo \$?"
79 adb shell "rm /system/bin/${test_prog}"
80 done
The Android Open Source Project52d4c302009-03-03 19:29:09 -080081-->
82
83<test-definitions version="1">
84
85<!-- system-wide tests -->
86<test name="framework"
87 build_path="frameworks/base/tests/FrameworkTest"
88 package="com.android.frameworktest.tests"
89 class="com.android.frameworktest.AllTests"
90 coverage_target="framework"
91 continuous="true" />
92
93<test name="android"
94 build_path="frameworks/base/tests/AndroidTests"
95 package="com.android.unit_tests"
96 class="com.android.unit_tests.AndroidTests"
97 coverage_target="framework"
98 continuous="true" />
99
100<test name="smoke"
101 build_path="frameworks/base/tests/SmokeTest"
102 package="com.android.smoketest.tests"
103 coverage_target="framework"
104 continuous="true" />
105
106<test name="core"
107 build_path="frameworks/base/tests/CoreTests"
108 package="android.core"
109 class="android.core.CoreTests"
110 coverage_target="framework"
111 continuous="true" />
112
113<test name="libcore"
114 build_path="frameworks/base/tests/CoreTests"
115 package="android.core"
116 class="android.core.JavaTests"
117 coverage_target="framework" />
118
119<test name="apidemos"
120 build_path="development/samples/ApiDemos"
121 package="com.example.android.apis.tests"
122 coverage_target="ApiDemos"
123 continuous="true" />
124
The Android Open Source Project6ffae012009-03-18 17:39:43 -0700125<test name="launchperf"
126 build_path="development/apps/launchperf"
127 package="com.android.launchperf"
128 class="com.android.launchperf.SimpleActivityLaunchPerformance"
129 coverage_target="framework" />
130
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800131<!-- targeted framework tests -->
132<test name="heap"
133 build_path="frameworks/base/tests/AndroidTests"
134 package="com.android.unit_tests"
135 class="com.android.unit_tests.HeapTest"
136 coverage_target="framework" />
137
138<test name="activity"
139 build_path="frameworks/base/tests/AndroidTests"
140 package="com.android.unit_tests"
141 class="com.android.unit_tests.activity.ActivityTests"
142 coverage_target="framework" />
143
144<!-- obsolete?
145<test name="deadlock"
146 build_path="frameworks/base/tests/Deadlock"
147 package="com.android.deadlock.tests"
148 coverage_target="framework" />
149 -->
150
151
152<test name="tablemerger"
153 build_path="frameworks/base/tests/FrameworkTest"
154 package="com.android.frameworktest.tests"
155 class="android.content.AbstractTableMergerTest"
156 coverage_target="framework" />
157
The Android Open Source Project6ffae012009-03-18 17:39:43 -0700158<test name="imf"
159 build_path="frameworks/base/tests/ImfTest"
160 package="com.android.imftest.tests"
161 coverage_target="framework"
162 continuous="true" />
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800163
164<!-- selected app tests -->
165<test name="browser"
166 build_path="packages/apps/Browser"
167 package="com.android.browser"
168 runner=".BrowserTestRunner"
169 coverage_target="Browser" />
170
171<test name="browserfunc"
172 build_path="packages/apps/Browser"
173 package="com.android.browser"
174 runner=".BrowserFunctionalTestRunner"
175 coverage_target="Browser" />
176
177<test name="calendar"
178 build_path="packages/apps/Calendar/tests"
179 package="com.android.calendar.tests"
180 coverage_target="Calendar"
181 continuous="true" />
182
183<test name="calprov"
184 build_path="packages/providers/CalendarProvider/tests"
185 package="com.android.providers.calendar.tests"
186 coverage_target="CalendarProvider"
187 continuous="true" />
188
189<test name="camera"
190 build_path="packages/apps/Camera/tests"
191 package="com.android.cameratests"
192 runner="CameraInstrumentationTestRunner"
193 coverage_target="Camera" />
194
195<test name="contactsprov"
196 build_path="packages/providers/GoogleContactsProvider/tests"
197 package="com.android.providers.contactstests"
198 coverage_target="ContactsProvider" />
199
200<test name="email"
201 build_path="packages/apps/Email"
202 package="com.android.email.tests"
203 coverage_target="Email"
204 continuous="true" />
205
206<test name="emailsmall"
207 build_path="packages/apps/Email"
208 package="com.android.email.tests"
209 class="com.android.email.SmallTests"
210 coverage_target="Email" />
211
212<test name="media"
213 build_path="frameworks/base/media/tests/MediaFrameworkTest"
214 package="com.android.mediaframeworktest"
215 runner=".MediaFrameworkTestRunner"
216 coverage_target="framework"
217 continuous="true" />
The Android Open Source Project6ffae012009-03-18 17:39:43 -0700218
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800219<test name="mediaunit"
220 build_path="frameworks/base/media/tests/MediaFrameworkTest"
221 package="com.android.mediaframeworktest"
222 runner=".MediaFrameworkUnitTestRunner"
223 coverage_target="framework" />
Brett Chabot2d85c0e2009-03-31 15:19:13 -0700224
225<test name="musicplayer"
226 build_path="packages/apps/Music"
227 package="com.android.music.tests"
228 runner=".MusicPlayerFunctionalTestRunner"
Yu Shan Emily Lau6ae4dd42009-04-09 13:55:20 -0700229 coverage_target="Music" />
Brett Chabot2d85c0e2009-03-31 15:19:13 -0700230
231<!-- obsolete?
232<test name="mediaprov"
233 build_path="tests/MediaProvider"
234 package="com.android.mediaprovidertests"
235 runner=".MediaProviderTestsInstrumentation"
236 coverage_target="MediaProvider" />
237 -->
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800238
239<test name="mms"
240 build_path="packages/apps/Mms"
241 package="com.android.mms.tests"
242 runner="com.android.mms.ui.MMSInstrumentationTestRunner"
243 coverage_target="Mms" />
244
245<test name="mmslaunch"
246 build_path="packages/apps/Mms"
247 package="com.android.mms.tests"
248 runner="com.android.mms.SmsLaunchPerformance"
249 coverage_target="Mms" />
250
Brett Chabot2d85c0e2009-03-31 15:19:13 -0700251
252<!-- obsolete?
253<test name="ringtone"
254 build_path="tests/RingtoneSettings"
255 package="com.android.ringtonesettingstests"
256 runner=".RingtoneSettingsInstrumentationTestRunner"
257 coverage_target="Settings" />
258-->
259
Niko Catania2e990b92009-04-02 16:52:26 -0700260<!-- native tests -->
261<test-native name="libstdcpp"
262 build_path="system/extras/tests/bionic/libstdc++"
Niko Cataniaa6dc2ab2009-04-03 14:12:46 -0700263 description="Bionic libstdc++."
264 extra_make_args="BIONIC_TESTS=1" />
Niko Catania2e990b92009-04-02 16:52:26 -0700265
266
The Android Open Source Project52d4c302009-03-03 19:29:09 -0800267</test-definitions>