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