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