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-testrunner" 77 build_path="frameworks/base/test-runner" 78 package="com.android.frameworks.testrunner.tests" 79 coverage_target="android.test.runner" 80 continuous="true" /> 81 82<test name="frameworks-vpn" 83 build_path="frameworks/base/vpn/tests/vpntests" 84 package="com.android.frameworks.vpntests" 85 coverage_target="framework" 86 continuous="true" /> 87 88<test name="frameworks-support" 89 build_path="frameworks/support/tests" 90 package="android.support.tests" 91 continuous="true" /> 92 93<test name="core" 94 build_path="frameworks/base/tests/CoreTests" 95 package="android.core" 96 coverage_target="framework" 97 continuous="true" /> 98 99<test name="keystore-unit" 100 build_path="frameworks/base/keystore/tests" 101 package="android.security.tests" 102 coverage_target="framework" 103 continuous="true" /> 104 105<test name="imf" 106 build_path="frameworks/base/tests/ImfTest" 107 package="com.android.imftest.tests" 108 coverage_target="framework" 109 continuous="true" /> 110 111<test name="framework-permission" 112 build_path="frameworks/base/tests/permission" 113 package="com.android.framework.permission.tests" 114 runner="android.test.InstrumentationTestRunner" 115 coverage_target="framework" 116 continuous="true" /> 117 118<test name="android-common" 119 build_path="frameworks/base/common/tests" 120 package="com.android.common.tests" 121 coverage_target="framework" 122 continuous="true" /> 123 124<test name="ex-variablespeed" 125 build_path="frameworks/ex/variablespeed/tests" 126 package="com.android.ex.variablespeed.tests" 127 coverage_target="framework" 128 continuous="true" 129 description="Framework variable speed audio tests" /> 130 131<test-native name="libandroidfw" 132 build_path="frameworks/base/libs/androidfw/tests" 133 description="Framework libandroidfw unit tests." /> 134 135<test-native name="libinput" 136 build_path="frameworks/native/libs/input/tests" 137 description="Framework libinput unit tests." /> 138 139<test-native name="libinputservice" 140 build_path="frameworks/base/services/input/tests" 141 description="Framework libinputservice unit tests." /> 142 143<test name="volley" 144 build_path="frameworks/support/volley/tests" 145 package="com.android.volley.tests" 146 continuous="true" /> 147 148<!-- end of framework tests --> 149 150<!-- media framework tests --> 151<test name="media" 152 build_path="frameworks/base/media/tests/MediaFrameworkTest" 153 package="com.android.mediaframeworktest" 154 runner=".MediaFrameworkTestRunner" 155 coverage_target="framework" 156 continuous="true" /> 157 158<test name="mediaapitest" 159 build_path="frameworks/base/media/tests/MediaFrameworkTest" 160 package="com.android.mediaframeworktest" 161 class="com.android.mediaframeworktest.functional.MediaPlayerApiTest" 162 runner=".MediaFrameworkTestRunner" 163 coverage_target="framework" /> 164 165<test name="mediarecordertest" 166 build_path="frameworks/base/media/tests/MediaFrameworkTest" 167 package="com.android.mediaframeworktest" 168 class="com.android.mediaframeworktest.functional.MediaRecorderTest" 169 runner=".MediaFrameworkTestRunner" 170 coverage_target="framework" /> 171 172<test name="mediastresstest" 173 build_path="frameworks/base/media/tests/MediaFrameworkTest" 174 package="com.android.mediaframeworktest" 175 runner=".MediaRecorderStressTestRunner" 176 coverage_target="framework" /> 177 178<test name="mediamemorystress" 179 build_path="frameworks/base/media/tests/MediaFrameworkTest" 180 package="com.android.mediaframeworktest" 181 runner=".MediaFrameworkPerfTestRunner" 182 coverage_target="framework" /> 183 184<test name="mediaunit" 185 build_path="frameworks/base/media/tests/MediaFrameworkTest" 186 package="com.android.mediaframeworktest" 187 runner=".MediaFrameworkUnitTestRunner" 188 coverage_target="framework" /> 189 190<test name="mediaintegrationtest" 191 build_path="frameworks/base/media/tests/MediaFrameworkTest" 192 package="com.android.mediaframeworktest" 193 runner=".MediaFrameworkIntegrationTestRunner" 194 coverage_target="framework" /> 195 196<test-native name="camera-client-native" 197 build_path="frameworks/av/camera/tests/" 198 description="Camera client native tests." /> 199 200<test-native name="camera-hal2-native" 201 build_path="hardware/libhardware/tests/camera2" 202 description="Camera hal2 native tests." /> 203<!-- end of media framework tests --> 204 205<!-- targeted framework tests --> 206<test name="account" 207 build_path="frameworks/base/core/tests/coretests" 208 package="com.android.frameworks.coretests" 209 class="android.accounts.AccountManagerServiceTest" 210 coverage_target="framework" /> 211 212<test name="smoke" 213 build_path="frameworks/base/tests/SmokeTest" 214 package="com.android.smoketest.tests" 215 coverage_target="framework" 216 continuous="true" /> 217 218<test name="launchperf" 219 build_path="development/apps/launchperf" 220 package="com.android.launchperf" 221 runner=".SimpleActivityLaunchPerformance" 222 coverage_target="framework" /> 223 224<test name="contentprovideroperation" 225 build_path="frameworks/base/core/tests/coretests" 226 package="com.android.frameworks.coretests" 227 class="android.content.ContentProviderOperationTest" 228 coverage_target="framework" /> 229 230<!-- cts tests --> 231 232<test name="cts-permission" 233 build_path="cts/tests/tests/permission" 234 package="com.android.cts.permission" 235 runner="android.support.test.runner.AndroidJUnitRunner" 236 coverage_target="framework" 237 continuous="true" 238 suite="cts" /> 239 240<test name="cts-permission2" 241 build_path="cts/tests/tests/permission2" 242 package="com.android.cts.permission2" 243 runner="android.support.test.runner.AndroidJUnitRunner" 244 coverage_target="framework" 245 continuous="true" 246 suite="true" /> 247 248<test name="cts-process" 249 build_path="cts/tests/ProcessTest" 250 package="com.android.cts.process" 251 coverage_target="framework" 252 suite="cts" /> 253 254<test name="cts-security" 255 build_path="cts/tests/tests/security" 256 package="com.android.cts.security" 257 runner="android.support.test.runner.AndroidJUnitRunner" 258 suite="cts" /> 259 260<test name="cts-accounts" 261 build_path="cts/tests/tests/accounts" 262 package="android.accounts.cts" 263 runner="android.support.test.runner.AndroidJUnitRunner" 264 coverage_target="framework" 265 suite="cts" /> 266 267<test name="cts-app" 268 build_path="cts/tests/tests/app" 269 package="com.android.cts.app" 270 runner="android.support.test.runner.AndroidJUnitRunner" 271 coverage_target="framework" 272 suite="cts" /> 273 274<test name="cts-calllog" 275 build_path="cts/tests/tests/calllog" 276 package="com.android.cts.calllog" 277 runner="android.support.test.runner.AndroidJUnitRunner" 278 coverage_target="Phone" 279 suite="cts" /> 280 281<test name="cts-content" 282 build_path="cts/tests/tests/content" 283 package="com.android.cts.content" 284 runner="android.support.test.runner.AndroidJUnitRunner" 285 coverage_target="framework" 286 suite="cts" /> 287 288<test name="cts-database" 289 build_path="cts/tests/tests/database" 290 package="com.android.cts.database" 291 runner="android.support.test.runner.AndroidJUnitRunner" 292 coverage_target="framework" 293 suite="cts" /> 294 295<test name="cts-dreams" 296 build_path="cts/tests/tests/dreams" 297 package="com.android.cts.dreams" 298 runner="android.support.test.runner.AndroidJUnitRunner" 299 coverage_target="framework" 300 suite="cts" /> 301 302<test name="cts-gesture" 303 build_path="cts/tests/tests/gesture" 304 package="com.android.cts.gesture" 305 runner="android.support.test.runner.AndroidJUnitRunner" 306 coverage_target="framework" 307 suite="cts" /> 308 309<test name="cts-graphics" 310 build_path="cts/tests/tests/graphics" 311 package="com.android.cts.graphics" 312 runner="android.support.test.runner.AndroidJUnitRunner" 313 coverage_target="framework" 314 suite="cts" /> 315 316<test name="cts-hardware" 317 build_path="cts/tests/tests/hardware" 318 package="com.android.cts.hardware" 319 runner="android.support.test.runner.AndroidJUnitRunner" 320 coverage_target="framework" 321 continuous="true" 322 suite="cts" /> 323 324<test name="cts-location" 325 build_path="cts/tests/tests/location" 326 package="com.android.cts.location" 327 runner="android.support.test.runner.AndroidJUnitRunner" 328 coverage_target="framework" 329 suite="cts" /> 330 331<test name="cts-media" 332 build_path="cts/tests/tests/media" 333 package="com.android.cts.media" 334 runner="android.support.test.runner.AndroidJUnitRunner" 335 coverage_target="framework" 336 suite="cts" /> 337 338<test name="cts-net" 339 build_path="cts/tests/tests/net" 340 package="com.android.cts.net" 341 runner="android.support.test.runner.AndroidJUnitRunner" 342 coverage_target="framework" 343 suite="cts" /> 344 345<test name="cts-os" 346 build_path="cts/tests/tests/os" 347 package="com.android.cts.os" 348 runner="android.support.test.runner.AndroidJUnitRunner" 349 coverage_target="framework" 350 suite="cts" /> 351 352<test name="cts-provider" 353 build_path="cts/tests/tests/provider" 354 package="com.android.cts.provider" 355 runner="android.support.test.runner.AndroidJUnitRunner" 356 coverage_target="framework" 357 suite="cts" /> 358 359<test name="cts-text" 360 build_path="cts/tests/tests/text" 361 package="com.android.cts.text" 362 runner="android.support.test.runner.AndroidJUnitRunner" 363 coverage_target="framework" 364 suite="cts" /> 365 366<test name="cts-telecom" 367 build_path="cts/tests/tests/telecom" 368 package="com.android.cts.telecom" 369 runner="android.support.test.runner.AndroidJUnitRunner" 370 coverage_target="framework" 371 suite="cts" /> 372 373<test name="cts-telephony" 374 build_path="cts/tests/tests/telephony" 375 package="com.android.cts.telephony" 376 runner="android.support.test.runner.AndroidJUnitRunner" 377 coverage_target="framework" 378 suite="cts" /> 379 380<test name="cts-util" 381 build_path="cts/tests/tests/util" 382 package="com.android.cts.util" 383 runner="android.support.test.runner.AndroidJUnitRunner" 384 coverage_target="framework" 385 suite="cts" /> 386 387<test name="cts-view" 388 build_path="cts/tests/tests/view" 389 package="com.android.cts.view" 390 runner="android.support.test.runner.AndroidJUnitRunner" 391 coverage_target="framework" 392 suite="cts" /> 393 394<test name="cts-webkit" 395 build_path="cts/tests/tests/webkit" 396 package="com.android.cts.webkit" 397 runner="android.support.test.runner.AndroidJUnitRunner" 398 coverage_target="framework" 399 suite="cts" /> 400 401<test name="cts-widget" 402 build_path="cts/tests/tests/widget" 403 package="com.android.cts.widget" 404 runner="android.support.test.runner.AndroidJUnitRunner" 405 coverage_target="framework" 406 suite="cts" /> 407 408<!-- end of cts tests --> 409 410<!-- selected app tests --> 411<test name="apidemos" 412 build_path="development/samples/ApiDemos" 413 package="com.example.android.apis.tests" /> 414 415<test name="browser" 416 build_path="packages/apps/Browser" 417 package="com.android.browser.tests" 418 coverage_target="Browser" 419 continuous="true" /> 420 421<test name="calculator" 422 build_path="packages/apps/Calculator" 423 package="com.android.calculator2.tests" 424 coverage_target="Calculator" 425 continuous="true" /> 426 427<test name="calendar" 428 build_path="packages/apps/Calendar" 429 package="com.android.calendar.tests" 430 coverage_target="Calendar" 431 continuous="true" /> 432 433<test name="calprov" 434 build_path="packages/providers/CalendarProvider" 435 package="com.android.providers.calendar.tests" 436 coverage_target="CalendarProvider" 437 continuous="true" /> 438 439<test name="camera-functional" 440 build_path="packages/apps/Camera" 441 package="com.google.android.camera.tests" 442 runner="com.android.camera.CameraTestRunner" 443 coverage_target="Camera" 444 description="Camera functional test" 445 continuous="true" /> 446 447<test name="contactsprov" 448 build_path="packages/providers/ContactsProvider" 449 package="com.android.providers.contacts.tests" 450 coverage_target="ContactsProvider" 451 continuous="true" /> 452 453<test name="contacts" 454 build_path="packages/apps/Contacts" 455 package="com.android.contacts.tests" 456 runner="android.test.InstrumentationTestRunner" 457 coverage_target="Contacts" 458 description="Tests for the Contacts app." 459 continuous="true" /> 460 461<test name="contacts-launch" 462 build_path="packages/apps/Contacts" 463 package="com.android.contacts.tests" 464 runner="com.android.contacts.ContactsLaunchPerformance" 465 description="Launch performance for Contacts." /> 466 467<test name="dialer" 468 build_path="packages/apps/Dialer" 469 package="com.android.dialer.tests" 470 runner="android.test.InstrumentationTestRunner" 471 coverage_target="Dialer" 472 description="Tests for the Dialer app." 473 continuous="true" /> 474 475<test name="downloadprovider" 476 build_path="packages/providers/DownloadProvider/tests" 477 package="com.android.providers.downloads.tests" 478 coverage_target="DownloadProvider" 479 continuous="true" /> 480 481<test name="downloadprovider-permission" 482 build_path="packages/providers/DownloadProvider/tests/permission" 483 package="com.android.providers.downloads.permission.tests" 484 coverage_target="DownloadProvider" 485 continuous="true" /> 486 487<test name="email" 488 build_path="packages/apps/Email" 489 package="com.android.email.tests" 490 coverage_target="Email" 491 continuous="true" /> 492 493<test name="emailsmall" 494 build_path="packages/apps/Email" 495 package="com.android.email.tests" 496 class="com.android.email.SmallTests" 497 coverage_target="Email" /> 498 499<test name="exchange" 500 build_path="packages/apps/Exchange" 501 package="com.android.exchange.tests" 502 coverage_target="Exchange" 503 continuous="true" /> 504 505<test name="musicplayer" 506 build_path="packages/apps/Music" 507 package="com.android.music.tests" 508 runner=".MusicPlayerFunctionalTestRunner" 509 coverage_target="Music" /> 510 511<test name="mms" 512 build_path="packages/apps/Mms" 513 package="com.android.mms.tests" 514 coverage_target="Mms" /> 515 516<!-- Unit tests for the phone application. --> 517<test name="phone-unit" 518 build_path="packages/services/Telephony" 519 package="com.android.phone.tests" 520 continuous="true" 521 coverage_target="Phone" /> 522 523<test name="carrierconfig-unit" 524 build_path="packages/apps/CarrierConfig" 525 package="com.android.carrierconfig.tests" 526 continuous="true" 527 coverage_target="Phone" 528 description="Tests for default carrier config app" /> 529 530<test name="telecom-unit" 531 build_path="packages/services/Telecomm" 532 package="com.android.server.telecom.tests" 533 continuous="true" 534 coverage_target="Phone" /> 535 536<test name="quicksearchbox" 537 build_path="packages/apps/QuickSearchBox" 538 package="com.android.quicksearchbox.tests" 539 coverage_target="QuickSearchBox" /> 540 541<test name="systemui" 542 build_path="frameworks/base/packages/SystemUI" 543 package="com.android.systemui.tests" 544 coverage_target="SystemUI" 545 continuous="true" 546 description="SystemUI tests" /> 547 548<test name="documentsui" 549 build_path="frameworks/base/packages/DocumentsUI/tests" 550 package="com.android.documentsui.tests" 551 coverage_target="DocumentsUI" 552 continuous="true" 553 description="DocumentsUI tests" /> 554 555<!-- native tests --> 556 557<!-- Bionic C++ --> 558<test-native name="libstdcpp" 559 build_path="system/extras/tests/bionic/libstdc++" 560 description="Bionic libstdc++." 561 extra_build_args="BIONIC_TESTS=1" /> 562 563<test-native name="libskia" 564 build_path="external/skia/tests" 565 description="Skia tests." /> 566 567<!-- Google Test --> 568<test-native name="gtest" 569 build_path="external/gtest" 570 description="Google test." 571 extra_build_args="GTEST_TESTS=1" /> 572 573<!-- clatd --> 574<test-native name="clatd" 575 build_path="external/android-clat" 576 description="clatd unit tests." /> 577 578<!-- dhcpcd --> 579<test-native name="dhcpcd" 580 build_path="external/dhcpcd" 581 description="dhcpcd unit tests." /> 582 583<!-- Libjingle --> 584<test-native name="libjingle" 585 build_path="vendor/google/libraries/libjingle" 586 description="Libjingle." 587 full_make="true" 588 extra_build_args="LIBJINGLE_TESTS=1" /> 589 590<!-- host java tests --> 591<test-host name="cts-appsecurity" 592 build_path="cts/hostsidetests/appsecurity" 593 class="com.android.cts.appsecurity.AppSecurityTests" 594 jar_name="CtsAppSecurityTests.jar" 595 suite="cts" /> 596 597<test-host name="frameworks-core-host" 598 build_path="frameworks/base/core/tests/hosttests" 599 class="android.content.pm.PackageManagerHostTests" 600 jar_name="FrameworkCoreHostTests.jar" /> 601 602</test-definitions> 603