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