1<?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
20The following test types are supported:
21 - On device Java instrumentation tests are defined by <test> tags.
22 - native ones (C/C++) are defined by <test-native> tags.
23 - host java tests are defined by <test-host> tags.
24
25See test_defs.xsd for more information.
26-->
27
28<test-definitions xmlns="http://schemas.android.com/testrunner/test_defs/1.0"
29    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
30    xsi:schemaLocation="http://schemas.android.com/testrunner/test_defs/1.0 test_defs.xsd">
31
32<!-- frameworks tests -->
33<test name="frameworks-core"
34    build_path="frameworks/base/core/tests/coretests"
35    package="com.android.frameworks.coretests"
36    runner="android.support.test.runner.AndroidJUnitRunner"
37    coverage_target="framework"
38    continuous="true" />
39
40<test name="frameworks-net"
41    build_path="frameworks/base/tests/net"
42    package="com.android.frameworks.tests.net"
43    runner="android.support.test.runner.AndroidJUnitRunner"
44    coverage_target="framework"
45    continuous = "true" />
46
47<!-- will not run in the continuous test as it needs both Wifi & 3G -->
48<test name="frameworks-connectivity"
49    build_path="frameworks/base/core/tests/ConnectivityManagerTest/"
50    package="com.android.connectivitymanagertest"
51    runner=".ConnectivityManagerUnitTestRunner"
52    coverage_target="framework" />
53
54<test name="frameworks-graphics"
55    build_path="frameworks/base/graphics/tests/graphicstests"
56    package="com.android.frameworks.graphicstests"
57    coverage_target="framework"
58    continuous="true" />
59
60<test name="frameworks-location"
61    build_path="frameworks/base/location/tests/locationtests"
62    package="com.android.frameworks.locationtests"
63    runner="android.support.test.runner.AndroidJUnitRunner"
64    coverage_target="framework"
65    continuous="true" />
66
67<test name="frameworks-sax"
68    build_path="frameworks/base/sax/tests/saxtests"
69    package="com.android.frameworks.saxtests"
70    coverage_target="framework"
71    continuous="true" />
72
73<test name="frameworks-services"
74    build_path="frameworks/base/services/tests/servicestests"
75    package="com.android.frameworks.servicestests"
76    runner="android.support.test.runner.AndroidJUnitRunner"
77    coverage_target="framework"
78    continuous="true" />
79
80<test name="frameworks-telephony"
81    build_path="frameworks/opt/telephony/tests/telephonytests"
82    package="com.android.frameworks.telephonytests"
83    runner="android.support.test.runner.AndroidJUnitRunner"
84    coverage_target="framework"
85    continuous="true" />
86
87<test name="frameworks-util"
88    build_path="frameworks/base/core/tests/utiltests"
89    package="com.android.frameworks.utiltests"
90    runner="android.support.test.runner.AndroidJUnitRunner"
91    continuous="true" />
92
93<test name="frameworks-wifi"
94    build_path="frameworks/opt/net/wifi/tests/wifitests"
95    package="com.android.server.wifi.test"
96    runner="android.support.test.runner.AndroidJUnitRunner"
97    coverage_target="framework"
98    continuous="true" />
99
100<test name="frameworks-testrunner"
101    build_path="frameworks/base/test-runner"
102    package="com.android.frameworks.testrunner.tests"
103    coverage_target="android.test.runner"
104    continuous="true" />
105
106<test name="frameworks-vpn"
107    build_path="frameworks/base/vpn/tests/vpntests"
108    package="com.android.frameworks.vpntests"
109    coverage_target="framework"
110    continuous="true" />
111
112<test name="frameworks-support"
113    build_path="frameworks/support/tests"
114    package="android.support.tests"
115    continuous="true" />
116
117<test name="core"
118    build_path="frameworks/base/tests/CoreTests"
119    package="android.core"
120    coverage_target="framework"
121    continuous="true" />
122
123<test name="keystore-unit"
124    build_path="frameworks/base/keystore/tests"
125    package="android.security.tests"
126    coverage_target="framework"
127    continuous="true" />
128
129<test name="imf"
130    build_path="frameworks/base/tests/ImfTest"
131    package="com.android.imftest.tests"
132    coverage_target="framework"
133    continuous="true" />
134
135<test name="framework-permission"
136    build_path="frameworks/base/tests/permission"
137    package="com.android.framework.permission.tests"
138    runner="android.test.InstrumentationTestRunner"
139    coverage_target="framework"
140    continuous="true" />
141
142<test name="android-common"
143    build_path="frameworks/base/common/tests"
144    package="com.android.common.tests"
145    coverage_target="framework"
146    continuous="true" />
147
148<test name="android-common-ex"
149    build_path="frameworks/ex/common/tests"
150    package="com.android.common.tests"
151    coverage_target="framework"
152    continuous="true" />
153
154<test name="ex-variablespeed"
155    build_path="frameworks/ex/variablespeed/tests"
156    package="com.android.ex.variablespeed.tests"
157    coverage_target="framework"
158    continuous="true"
159    description="Framework variable speed audio tests" />
160
161<test-native name="libandroidfw"
162    build_path="frameworks/base/libs/androidfw/tests"
163    description="Framework libandroidfw unit tests." />
164
165<test-native name="libinput"
166    build_path="frameworks/native/libs/input/tests"
167    description="Framework libinput unit tests." />
168
169<test-native name="libinputservice"
170    build_path="frameworks/base/services/input/tests"
171    description="Framework libinputservice unit tests." />
172
173<test name="volley"
174    build_path="frameworks/support/volley/tests"
175    package="com.android.volley.tests"
176    continuous="true" />
177
178<test name="networksecurityconfig"
179    build_path="frameworks/base/tests/NetworkSecurityConfigTest"
180    package="android.security.net.config"
181    coverage_target="framework"
182    description="Android network security config tests." />
183
184<!--  end of framework tests -->
185
186<!-- media framework tests -->
187<test name="media"
188    build_path="frameworks/base/media/tests/MediaFrameworkTest"
189    package="com.android.mediaframeworktest"
190    runner=".MediaFrameworkTestRunner"
191    coverage_target="framework"
192    continuous="true" />
193
194<test name="mediaapitest"
195    build_path="frameworks/base/media/tests/MediaFrameworkTest"
196    package="com.android.mediaframeworktest"
197    class="com.android.mediaframeworktest.functional.MediaPlayerApiTest"
198    runner=".MediaFrameworkTestRunner"
199    coverage_target="framework" />
200
201<test name="mediarecordertest"
202    build_path="frameworks/base/media/tests/MediaFrameworkTest"
203    package="com.android.mediaframeworktest"
204    class="com.android.mediaframeworktest.functional.MediaRecorderTest"
205    runner=".MediaFrameworkTestRunner"
206    coverage_target="framework" />
207
208<test name="mediastresstest"
209    build_path="frameworks/base/media/tests/MediaFrameworkTest"
210    package="com.android.mediaframeworktest"
211    runner=".MediaRecorderStressTestRunner"
212    coverage_target="framework" />
213
214<test name="mediamemorystress"
215    build_path="frameworks/base/media/tests/MediaFrameworkTest"
216    package="com.android.mediaframeworktest"
217    runner=".MediaFrameworkPerfTestRunner"
218    coverage_target="framework" />
219
220<test name="mediaunit"
221    build_path="frameworks/base/media/tests/MediaFrameworkTest"
222    package="com.android.mediaframeworktest"
223    runner=".MediaFrameworkUnitTestRunner"
224    coverage_target="framework" />
225
226<test name="mediaintegrationtest"
227    build_path="frameworks/base/media/tests/MediaFrameworkTest"
228    package="com.android.mediaframeworktest"
229    runner=".MediaFrameworkIntegrationTestRunner"
230    coverage_target="framework" />
231
232<test-native name="camera-client-native"
233    build_path="frameworks/av/camera/tests/"
234    description="Camera client native tests." />
235
236<test-native name="camera-hal2-native"
237    build_path="hardware/libhardware/tests/camera2"
238    description="Camera hal2 native tests." />
239<!--  end of media framework tests -->
240
241<!--  targeted framework tests -->
242<test name="account"
243    build_path="frameworks/base/core/tests/coretests"
244    package="com.android.frameworks.coretests"
245    class="android.accounts.AccountManagerServiceTest"
246    coverage_target="framework" />
247
248<test name="smoke"
249    build_path="frameworks/base/tests/SmokeTest"
250    package="com.android.smoketest.tests"
251    coverage_target="framework"
252    continuous="true" />
253
254<test name="launchperf"
255    build_path="development/apps/launchperf"
256    package="com.android.launchperf"
257    runner=".SimpleActivityLaunchPerformance"
258    coverage_target="framework" />
259
260<test name="contentprovideroperation"
261    build_path="frameworks/base/core/tests/coretests"
262    package="com.android.frameworks.coretests"
263    class="android.content.ContentProviderOperationTest"
264    coverage_target="framework" />
265
266<!--  selected app tests -->
267<test name="apidemos"
268    build_path="development/samples/ApiDemos"
269    package="com.example.android.apis.tests" />
270
271<test name="bluetooth"
272    build_path="packages/apps/Bluetooth/tests/unit"
273    package="com.android.bluetooth.tests"
274    runner="android.support.test.runner.AndroidJUnitRunner"
275    continuous="true" />
276
277<test name="calculator"
278    build_path="packages/apps/Calculator"
279    package="com.android.calculator2.tests"
280    coverage_target="Calculator"
281    continuous="true" />
282
283<test name="calendar"
284    build_path="packages/apps/Calendar"
285    package="com.android.calendar.tests"
286    coverage_target="Calendar"
287    continuous="true" />
288
289<test name="calprov"
290    build_path="packages/providers/CalendarProvider"
291    package="com.android.providers.calendar.tests"
292    coverage_target="CalendarProvider"
293    continuous="true" />
294
295<test name="camera-functional"
296    build_path="packages/apps/Camera"
297    package="com.google.android.camera.tests"
298    runner="com.android.camera.CameraTestRunner"
299    coverage_target="Camera"
300    description="Camera functional test"
301    continuous="true" />
302
303<test name="contactsprov"
304    build_path="packages/providers/ContactsProvider"
305    package="com.android.providers.contacts.tests"
306    coverage_target="ContactsProvider"
307    continuous="true" />
308
309<test name="contacts"
310    build_path="packages/apps/Contacts"
311    package="com.android.contacts.tests"
312    runner="android.test.InstrumentationTestRunner"
313    coverage_target="Contacts"
314    description="Tests for the Contacts app."
315    continuous="true" />
316
317<test name="contacts-launch"
318    build_path="packages/apps/Contacts"
319    package="com.android.contacts.tests"
320    runner="com.android.contacts.ContactsLaunchPerformance"
321    description="Launch performance for Contacts." />
322
323<test name="dialer"
324    build_path="packages/apps/Dialer"
325    package="com.android.dialer.tests"
326    runner="android.test.InstrumentationTestRunner"
327    coverage_target="Dialer"
328    description="Tests for the Dialer app."
329    continuous="true" />
330
331<test name="managed-provisioning"
332    build_path="packages/apps/ManagedProvisioning/tests"
333    package="com.android.managedprovisioning.tests"
334    runner="com.android.managedprovisioning.TestInstrumentationRunner"
335    coverage_target="ManagedProvisioning"
336    description="Tests for the ManagedProvisioning app."
337    continuous="true" />
338
339<test name="downloadprovider"
340    build_path="packages/providers/DownloadProvider/tests"
341    package="com.android.providers.downloads.tests"
342    coverage_target="DownloadProvider"
343    continuous="true" />
344
345<test name="downloadprovider-permission"
346    build_path="packages/providers/DownloadProvider/tests/permission"
347    package="com.android.providers.downloads.permission.tests"
348    coverage_target="DownloadProvider"
349    continuous="true" />
350
351<test name="email"
352    build_path="packages/apps/Email"
353    package="com.android.email.tests"
354    coverage_target="Email"
355    continuous="true" />
356
357<test name="emailsmall"
358    build_path="packages/apps/Email"
359    package="com.android.email.tests"
360    class="com.android.email.SmallTests"
361    coverage_target="Email" />
362
363<test name="exchange"
364    build_path="packages/apps/Exchange"
365    package="com.android.exchange.tests"
366    coverage_target="Exchange"
367    continuous="true" />
368
369<test name="musicplayer"
370    build_path="packages/apps/Music"
371    package="com.android.music.tests"
372    runner=".MusicPlayerFunctionalTestRunner"
373    coverage_target="Music" />
374
375<test name="mms"
376    build_path="packages/apps/Mms"
377    package="com.android.mms.tests"
378    coverage_target="Mms" />
379
380<!-- Unit tests for the phone application. -->
381<test name="phone-unit"
382    build_path="packages/services/Telephony"
383    package="com.android.phone.tests"
384    continuous="true"
385    coverage_target="Phone" />
386
387<test name="carrierconfig-unit"
388    build_path="packages/apps/CarrierConfig"
389    package="com.android.carrierconfig.tests"
390    continuous="true"
391    coverage_target="Phone"
392    description="Tests for default carrier config app" />
393
394<test name="telecom-unit"
395    build_path="packages/services/Telecomm"
396    package="com.android.server.telecom.tests"
397    continuous="true"
398    coverage_target="Phone" />
399
400<test name="quicksearchbox"
401    build_path="packages/apps/QuickSearchBox"
402    package="com.android.quicksearchbox.tests"
403    coverage_target="QuickSearchBox" />
404
405<test name="systemui"
406    build_path="frameworks/base/packages/SystemUI/tests"
407    package="com.android.systemui.tests"
408    coverage_target="SystemUI"
409    runner="android.testing.TestableInstrumentation"
410    continuous="true"
411    description="SystemUI tests" />
412
413<test name="systemui-jank"
414    build_path="platform_testing/tests/jank/UbSystemUiJankTests"
415    package="android.platform.systemui.tests.jank"
416    runner="android.support.test.runner.AndroidJUnitRunner "
417    continuous="true"
418    description="SystemUI jank tests" />
419
420<test name="systemui-notification"
421    build_path="frameworks/base/services/tests/uiservicestests"
422    package="com.android.frameworks.tests.uiservices"
423    runner="android.testing.TestableInstrumentation"
424    continuous="true"
425    description="SystemUI Services tests" />
426
427<test name="systemui-functional-notification"
428    build_path="platform_testing/tests/functional/notificationtests"
429    package="com.android.notification.functional"
430    runner="android.support.test.runner.AndroidJUnitRunner"
431    continuous="true"
432    description="SystemUI functional notification tests" />
433
434<test name="apptransition-perf"
435    build_path="platform_testing/tests/perf/PerfTransitionTest"
436    package="com.android.apptransition.tests"
437    runner="android.support.test.runner.AndroidJUnitRunner"
438    continuous="true"
439    description="App transition latency and other latency tests" />
440
441<test name="documentsui"
442    build_path="frameworks/base/packages/DocumentsUI/tests"
443    package="com.android.documentsui.tests"
444    coverage_target="DocumentsUI"
445    continuous="true"
446    description="DocumentsUI tests" />
447
448<!--  native tests  -->
449
450<!-- Bionic C++ -->
451<test-native name="libstdcpp"
452    build_path="system/extras/tests/bionic/libstdc++"
453    description="Bionic libstdc++."
454    extra_build_args="BIONIC_TESTS=1" />
455
456<test-native name="libskia"
457    build_path="external/skia/tests"
458    description="Skia tests." />
459
460<!-- Google Test -->
461<test-native name="gtest"
462    build_path="external/gtest"
463    description="Google test."
464    extra_build_args="GTEST_TESTS=1" />
465
466<!-- clatd -->
467<test-native name="clatd"
468    build_path="external/android-clat"
469    description="clatd unit tests." />
470
471<!-- Libjingle -->
472<test-native name="libjingle"
473    build_path="vendor/google/libraries/libjingle"
474    description="Libjingle."
475    full_make="true"
476    extra_build_args="LIBJINGLE_TESTS=1" />
477
478<!-- host java tests -->
479<test-host name="frameworks-core-host"
480    build_path="frameworks/base/core/tests/hosttests"
481    class="android.content.pm.PackageManagerHostTests"
482    jar_name="FrameworkCoreHostTests.jar" />
483
484</test-definitions>
485