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<!-- system-wide tests --> 33<test name="framework" 34 build_path="frameworks/base/tests/FrameworkTest" 35 package="com.android.frameworktest.tests" 36 class="com.android.frameworktest.AllTests" 37 coverage_target="framework" 38 continuous="true" /> 39 40<test name="android" 41 build_path="frameworks/base/tests/AndroidTests" 42 package="com.android.unit_tests" 43 class="com.android.unit_tests.AndroidTests" 44 coverage_target="framework" 45 continuous="true" /> 46 47<test name="account" 48 build_path="frameworks/base/tests/AndroidTests" 49 package="com.android.unit_tests" 50 class="com.android.unit_tests.accounts.AccountManagerServiceTest" 51 coverage_target="framework" /> 52 53<test name="smoke" 54 build_path="frameworks/base/tests/SmokeTest" 55 package="com.android.smoketest.tests" 56 coverage_target="framework" 57 continuous="true" /> 58 59<test name="core" 60 build_path="frameworks/base/tests/CoreTests" 61 package="android.core" 62 class="android.core.CoreTests" 63 coverage_target="framework" 64 continuous="true" /> 65 66<test name="libcore" 67 build_path="frameworks/base/tests/CoreTests" 68 package="android.core" 69 class="android.core.JavaTests" 70 coverage_target="framework" /> 71 72<test name="apidemos" 73 build_path="development/samples/ApiDemos" 74 package="com.example.android.apis.tests" 75 coverage_target="ApiDemos" /> 76 77<test name="launchperf" 78 build_path="development/apps/launchperf" 79 package="com.android.launchperf" 80 runner=".SimpleActivityLaunchPerformance" 81 coverage_target="framework" /> 82 83<!-- targeted framework tests --> 84<test name="heap" 85 build_path="frameworks/base/tests/AndroidTests" 86 package="com.android.unit_tests" 87 class="com.android.unit_tests.HeapTest" 88 coverage_target="framework" /> 89 90<test name="activity" 91 build_path="frameworks/base/tests/AndroidTests" 92 package="com.android.unit_tests" 93 class="com.android.unit_tests.activity.ActivityTests" 94 coverage_target="framework" /> 95 96<test name="keystore-unit" 97 build_path="frameworks/base/keystore/tests" 98 package="android.security.tests" 99 runner=".KeyStoreTestRunner" 100 coverage_target="framework" 101 continuous="true" /> 102 103<test name="vpntests" 104 build_path="frameworks/base/tests/AndroidTests" 105 package="com.android.unit_tests" 106 class="com.android.unit_tests.VpnTest" 107 coverage_target="framework" 108 continuous="true" /> 109 110<!-- obsolete? 111<test name="deadlock" 112 build_path="frameworks/base/tests/Deadlock" 113 package="com.android.deadlock.tests" 114 coverage_target="framework" /> 115 --> 116 117 118<test name="contentprovideroperation" 119 build_path="frameworks/base/tests/FrameworkTest" 120 package="com.android.frameworktest.tests" 121 class="android.content.ContentProviderOperationTest" 122 coverage_target="framework" /> 123 124<test name="tablemerger" 125 build_path="frameworks/base/tests/FrameworkTest" 126 package="com.android.frameworktest.tests" 127 class="android.content.AbstractTableMergerTest" 128 coverage_target="framework" /> 129 130<test name="imf" 131 build_path="frameworks/base/tests/ImfTest" 132 package="com.android.imftest.tests" 133 coverage_target="framework" 134 continuous="true" /> 135 136<test name="framework-permission" 137 build_path="frameworks/base/tests/permission" 138 package="com.android.framework.permission.tests" 139 runner="android.test.InstrumentationTestRunner" 140 coverage_target="framework" 141 continuous="true" /> 142 143<!-- cts tests --> 144 145<test name="cts-permission" 146 build_path="cts/tests/tests/permission" 147 package="com.android.cts.permission" 148 runner="android.test.InstrumentationTestRunner" 149 coverage_target="framework" 150 continuous="true" 151 cts="true" /> 152 153<test name="cts-permission2" 154 build_path="cts/tests/tests/permission2" 155 package="com.android.cts.permission2" 156 runner="android.test.InstrumentationTestRunner" 157 coverage_target="framework" 158 continuous="true" 159 cts="true" /> 160 161<test name="cts-process" 162 build_path="cts/tests/tests/process" 163 package="com.android.cts.process" 164 coverage_target="framework" 165 cts="true" /> 166 167<test name="cts-api-signature" 168 build_path="cts/tests/SignatureTest" 169 package="android.tests.sigtest" 170 runner=".InstrumentationRunner" 171 cts="true" /> 172 173<test name="cts-api-signature-func" 174 build_path="cts/tests/SignatureTest" 175 package="android.tests.sigtest.tests" 176 cts="true" /> 177 178<test name="cts-apidemos" 179 build_path="cts/tests/ApiDemosReferenceTest" 180 package="android.apidemos.cts" 181 coverage_target="ApiDemos" 182 cts="true" /> 183 184<test name="cts-app" 185 build_path="cts/tests/tests/app" 186 package="com.android.cts.app" 187 runner="android.test.InstrumentationCtsTestRunner" 188 coverage_target="framework" 189 cts="true" /> 190 191<test name="cts-content" 192 build_path="cts/tests/tests/content" 193 package="com.android.cts.content" 194 runner="android.test.InstrumentationCtsTestRunner" 195 coverage_target="framework" 196 cts="true" /> 197 198<test name="cts-database" 199 build_path="cts/tests/tests/database" 200 package="com.android.cts.database" 201 runner="android.test.InstrumentationCtsTestRunner" 202 coverage_target="framework" 203 cts="true" /> 204 205<test name="cts-gesture" 206 build_path="cts/tests/tests/gesture" 207 package="com.android.cts.gesture" 208 runner="android.test.InstrumentationTestRunner" 209 coverage_target="framework" 210 cts="true" /> 211 212<test name="cts-graphics" 213 build_path="cts/tests/tests/graphics" 214 package="com.android.cts.graphics" 215 runner="android.test.InstrumentationCtsTestRunner" 216 coverage_target="framework" 217 cts="true" /> 218 219<test name="cts-hardware" 220 build_path="cts/tests/tests/hardware" 221 package="com.android.cts.hardware" 222 runner="android.test.InstrumentationCtsTestRunner" 223 coverage_target="framework" 224 cts="true" /> 225 226<test name="cts-location" 227 build_path="cts/tests/tests/location" 228 package="com.android.cts.location" 229 runner="android.test.InstrumentationCtsTestRunner" 230 coverage_target="framework" 231 cts="true" /> 232 233<test name="cts-media" 234 build_path="cts/tests/tests/media" 235 package="com.android.cts.media" 236 runner="android.test.InstrumentationCtsTestRunner" 237 coverage_target="framework" 238 cts="true" /> 239 240<test name="cts-net" 241 build_path="cts/tests/tests/net" 242 package="com.android.cts.net" 243 runner="android.test.InstrumentationCtsTestRunner" 244 coverage_target="framework" 245 cts="true" /> 246 247<test name="cts-os" 248 build_path="cts/tests/tests/os" 249 package="com.android.cts.os" 250 runner="android.test.InstrumentationCtsTestRunner" 251 coverage_target="framework" 252 cts="true" /> 253 254<test name="cts-perf1" 255 build_path="cts/tests/tests/performance" 256 package="com.android.cts.performance" 257 runner="android.test.InstrumentationCtsTestRunner" 258 cts="true" /> 259 260<test name="cts-perf2" 261 build_path="cts/tests/tests/performance2" 262 package="com.android.cts.performance2" 263 runner="android.test.InstrumentationCtsTestRunner" 264 cts="true" /> 265 266<test name="cts-perf3" 267 build_path="cts/tests/tests/performance3" 268 package="com.android.cts.performance3" 269 runner="android.test.InstrumentationCtsTestRunner" 270 cts="true" /> 271 272<test name="cts-perf4" 273 build_path="cts/tests/tests/performance4" 274 package="com.android.cts.performance4" 275 runner="android.test.InstrumentationCtsTestRunner" 276 cts="true" /> 277 278<test name="cts-perf5" 279 build_path="cts/tests/tests/performance5" 280 package="com.android.cts.performance5" 281 runner="android.test.InstrumentationCtsTestRunner" 282 cts="true" /> 283 284<test name="cts-provider" 285 build_path="cts/tests/tests/provider" 286 package="com.android.cts.provider" 287 runner="android.test.InstrumentationCtsTestRunner" 288 coverage_target="framework" 289 cts="true" /> 290 291<test name="cts-text" 292 build_path="cts/tests/tests/text" 293 package="com.android.cts.text" 294 runner="android.test.InstrumentationCtsTestRunner" 295 coverage_target="framework" 296 cts="true" /> 297 298<test name="cts-telephony" 299 build_path="cts/tests/tests/telephony" 300 package="com.android.cts.telephony" 301 runner="android.test.InstrumentationCtsTestRunner" 302 coverage_target="framework" 303 cts="true" /> 304 305<test name="cts-util" 306 build_path="cts/tests/tests/util" 307 package="com.android.cts.util" 308 runner="android.test.InstrumentationCtsTestRunner" 309 coverage_target="framework" 310 cts="true" /> 311 312<test name="cts-view" 313 build_path="cts/tests/tests/view" 314 package="com.android.cts.view" 315 runner="android.test.InstrumentationCtsTestRunner" 316 coverage_target="framework" 317 cts="true" /> 318 319<test name="cts-webkit" 320 build_path="cts/tests/tests/webkit" 321 package="com.android.cts.webkit" 322 runner="android.test.InstrumentationCtsTestRunner" 323 coverage_target="framework" 324 cts="true" /> 325 326<test name="cts-widget" 327 build_path="cts/tests/tests/widget" 328 package="com.android.cts.widget" 329 runner="android.test.InstrumentationCtsTestRunner" 330 coverage_target="framework" 331 cts="true" /> 332 333<!-- end of cts tests --> 334 335<!-- selected app tests --> 336<test name="browser" 337 build_path="packages/apps/Browser" 338 package="com.android.browser" 339 runner=".BrowserTestRunner" 340 coverage_target="Browser" /> 341 342<test name="browserfunc" 343 build_path="packages/apps/Browser" 344 package="com.android.browser" 345 runner=".BrowserFunctionalTestRunner" 346 coverage_target="Browser" /> 347 348<test name="calendar" 349 build_path="packages/apps/Calendar/tests" 350 package="com.android.calendar.tests" 351 coverage_target="Calendar" 352 continuous="true" /> 353 354<test name="calprov" 355 build_path="packages/providers/CalendarProvider/tests" 356 package="com.android.providers.calendar.tests" 357 coverage_target="CalendarProvider" /> 358 359<test name="camerastress" 360 build_path="packages/apps/Camera" 361 package="com.android.camera.tests" 362 class="com.android.camera.StressTests" 363 coverage_target="Camera" /> 364 365<test name="cameralatency" 366 build_path="packages/apps/Camera" 367 package="com.android.camera.tests" 368 class="com.android.camera.stress.CameraLatency" 369 coverage_target="Camera" /> 370 371<test name="camera" 372 build_path="packages/apps/Camera" 373 package="com.android.camera.tests" 374 class="com.android.camera.UnitTests" 375 continuous="true" 376 coverage_target="Camera" /> 377 378<test name="contactsprov" 379 build_path="packages/providers/ContactsProvider/tests" 380 package="com.android.providers.contacts.tests" 381 coverage_target="ContactsProvider" 382 continuous="true" /> 383 384<test name="contacts" 385 build_path="packages/apps/Contacts" 386 package="com.android.contacts.tests" 387 runner="android.test.InstrumentationTestRunner" 388 coverage_target="Contacts" 389 description="Tests for the Contacts app." 390 continuous="true" /> 391 392<test name="contacts-launch" 393 build_path="packages/apps/Contacts" 394 package="com.android.contacts.tests" 395 runner="com.android.contacts.ContactsLaunchPerformance" 396 description="Launch performance for Contacts." /> 397 398<test name="gcontactsprov" 399 build_path="packages/providers/GoogleContactsProvider/tests" 400 package="com.android.providers.contactstests" 401 coverage_target="GoogleContactsProvider" /> 402 403<test name="downloadprovider-permission" 404 build_path="packages/providers/DownloadProvider/tests/permission" 405 package="com.android.providers.downloads.permission.tests" 406 coverage_target="DownloadProvider" 407 continuous="true" /> 408 409<test name="email" 410 build_path="packages/apps/Email" 411 package="com.android.email.tests" 412 coverage_target="Email" 413 continuous="true" /> 414 415<test name="emailsmall" 416 build_path="packages/apps/Email" 417 package="com.android.email.tests" 418 class="com.android.email.SmallTests" 419 coverage_target="Email" /> 420 421<test name="globalsearch" 422 build_path="packages/apps/GlobalSearch" 423 package="com.android.globalsearch.tests" 424 coverage_target="GlobalSearch" 425 continuous="true" /> 426 427<test name="globalsearch-permission" 428 build_path="packages/apps/GlobalSearch" 429 package="com.android.globalsearch.permission.tests" 430 coverage_target="GlobalSearch" 431 continuous="true" /> 432 433<test name="improvider-permission" 434 build_path="packages/providers/ImProvider/tests/permission" 435 package="com.android.providers.im.permission.tests" 436 coverage_target="ImProvider" 437 continuous="true" /> 438 439<test name="media" 440 build_path="frameworks/base/media/tests/MediaFrameworkTest" 441 package="com.android.mediaframeworktest" 442 runner=".MediaFrameworkTestRunner" 443 coverage_target="framework" 444 continuous="true" /> 445 446<test name="mediaapitest" 447 build_path="frameworks/base/media/tests/MediaFrameworkTest" 448 package="com.android.mediaframeworktest" 449 class="com.android.mediaframeworktest.functional.MediaPlayerApiTest" 450 runner=".MediaFrameworkTestRunner" 451 coverage_target="framework" /> 452 453<test name="mediarecordertest" 454 build_path="frameworks/base/media/tests/MediaFrameworkTest" 455 package="com.android.mediaframeworktest" 456 class="com.android.mediaframeworktest.functional.MediaRecorderTest" 457 runner=".MediaFrameworkTestRunner" 458 coverage_target="framework" /> 459 460<test name="mediastresstest" 461 build_path="frameworks/base/media/tests/MediaFrameworkTest" 462 package="com.android.mediaframeworktest" 463 runner=".MediaRecorderStressTestRunner" 464 coverage_target="framework" /> 465 466<test name="mediamemorystress" 467 build_path="frameworks/base/media/tests/MediaFrameworkTest" 468 package="com.android.mediaframeworktest" 469 runner=".MediaFrameworkPerfTestRunner" 470 coverage_target="framework" /> 471 472<test name="mediaunit" 473 build_path="frameworks/base/media/tests/MediaFrameworkTest" 474 package="com.android.mediaframeworktest" 475 runner=".MediaFrameworkUnitTestRunner" 476 coverage_target="framework" /> 477 478<test name="musicplayer" 479 build_path="packages/apps/Music" 480 package="com.android.music.tests" 481 runner=".MusicPlayerFunctionalTestRunner" 482 coverage_target="Music" /> 483 484<!-- obsolete? 485<test name="mediaprov" 486 build_path="tests/MediaProvider" 487 package="com.android.mediaprovidertests" 488 runner=".MediaProviderTestsInstrumentation" 489 coverage_target="MediaProvider" /> 490 --> 491 492<test name="mms" 493 build_path="packages/apps/Mms" 494 package="com.android.mms.tests" 495 coverage_target="Mms" /> 496 497<test name="mmslaunch" 498 build_path="packages/apps/Mms" 499 package="com.android.mms.tests" 500 runner="com.android.mms.SmsLaunchPerformance" 501 coverage_target="Mms" /> 502 503<test name="telephony-unit" 504 build_path="frameworks/base/telephony/tests/TelephonyTest" 505 package="com.android.telephonytest" 506 runner=".TelephonyUnitTestRunner" 507 coverage_target="framework" /> 508 509<!-- obsolete? 510<test name="ringtone" 511 build_path="tests/RingtoneSettings" 512 package="com.android.ringtonesettingstests" 513 runner=".RingtoneSettingsInstrumentationTestRunner" 514 coverage_target="Settings" /> 515--> 516 517<!-- native tests --> 518 519<!-- Bionic C++ --> 520<test-native name="libstdcpp" 521 build_path="system/extras/tests/bionic/libstdc++" 522 description="Bionic libstdc++." 523 extra_build_args="BIONIC_TESTS=1" /> 524 525<test-native name="libskia" 526 build_path="external/skia/tests" 527 description="Skia tests." /> 528 529<!-- Android STL tests --> 530<test-native name="astl" 531 build_path="external/astl/tests" 532 description="Android STL." 533 extra_build_args="ASTL_TESTS=1" /> 534 535<!-- pending patch 820 536<test-native name="gtest" 537 build_path="external/gtest" 538 description="Google test." 539 extra_build_args="GTEST_TESTS=1" /> 540--> 541 542<!-- host java tests --> 543<test-host name="cts-appsecurity" 544 build_path="cts/tests/appsecurity-tests" 545 class="com.android.cts.appsecurity.AppSecurityTests" 546 jar_name="CtsAppSecurityTests.jar" 547 cts="true" /> 548 549</test-definitions> 550