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