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<test name="frameworks-net" 40 build_path="frameworks/base/tests/net" 41 package="com.android.frameworks.tests.net" 42 runner="android.support.test.runner.AndroidJUnitRunner" 43 coverage_target="framework" 44 continuous = "true" /> 45 46<!-- will not run in the continuous test as it needs both Wifi & 3G --> 47<test name="frameworks-connectivity" 48 build_path="frameworks/base/core/tests/ConnectivityManagerTest/" 49 package="com.android.connectivitymanagertest" 50 runner=".ConnectivityManagerUnitTestRunner" 51 coverage_target="framework" /> 52 53<test name="frameworks-graphics" 54 build_path="frameworks/base/graphics/tests/graphicstests" 55 package="com.android.frameworks.graphicstests" 56 coverage_target="framework" 57 continuous="true" /> 58 59<test name="frameworks-location" 60 build_path="frameworks/base/location/tests/locationtests" 61 package="com.android.frameworks.locationtests" 62 coverage_target="framework" 63 continuous="true" /> 64 65<test name="frameworks-sax" 66 build_path="frameworks/base/sax/tests/saxtests" 67 package="com.android.frameworks.saxtests" 68 coverage_target="framework" 69 continuous="true" /> 70 71<test name="frameworks-services" 72 build_path="frameworks/base/services/tests/servicestests" 73 package="com.android.frameworks.servicestests" 74 runner="android.support.test.runner.AndroidJUnitRunner" 75 coverage_target="framework" 76 continuous="true" /> 77 78<test name="frameworks-telephony" 79 build_path="frameworks/opt/telephony/tests/telephonytests" 80 package="com.android.frameworks.telephonytests" 81 runner="android.support.test.runner.AndroidJUnitRunner" 82 coverage_target="framework" 83 continuous="true" /> 84 85<test name="frameworks-util" 86 build_path="frameworks/base/core/tests/utiltests" 87 package="com.android.frameworks.utiltests" 88 runner="android.support.test.runner.AndroidJUnitRunner" 89 continuous="true" /> 90 91<test name="frameworks-wifi" 92 build_path="frameworks/opt/net/wifi/tests/wifitests" 93 package="com.android.server.wifi.test" 94 runner="android.support.test.runner.AndroidJUnitRunner" 95 coverage_target="framework" 96 continuous="true" /> 97 98<test name="frameworks-testrunner" 99 build_path="frameworks/base/test-runner" 100 package="com.android.frameworks.testrunner.tests" 101 coverage_target="android.test.runner" 102 continuous="true" /> 103 104<test name="frameworks-vpn" 105 build_path="frameworks/base/vpn/tests/vpntests" 106 package="com.android.frameworks.vpntests" 107 coverage_target="framework" 108 continuous="true" /> 109 110<test name="frameworks-support" 111 build_path="frameworks/support/tests" 112 package="android.support.tests" 113 continuous="true" /> 114 115<test name="core" 116 build_path="frameworks/base/tests/CoreTests" 117 package="android.core" 118 coverage_target="framework" 119 continuous="true" /> 120 121<test name="keystore-unit" 122 build_path="frameworks/base/keystore/tests" 123 package="android.security.tests" 124 coverage_target="framework" 125 continuous="true" /> 126 127<test name="imf" 128 build_path="frameworks/base/tests/ImfTest" 129 package="com.android.imftest.tests" 130 coverage_target="framework" 131 continuous="true" /> 132 133<test name="framework-permission" 134 build_path="frameworks/base/tests/permission" 135 package="com.android.framework.permission.tests" 136 runner="android.test.InstrumentationTestRunner" 137 coverage_target="framework" 138 continuous="true" /> 139 140<test name="android-common" 141 build_path="frameworks/base/common/tests" 142 package="com.android.common.tests" 143 coverage_target="framework" 144 continuous="true" /> 145 146<test name="android-common-ex" 147 build_path="frameworks/ex/common/tests" 148 package="com.android.common.tests" 149 coverage_target="framework" 150 continuous="true" /> 151 152<test name="ex-variablespeed" 153 build_path="frameworks/ex/variablespeed/tests" 154 package="com.android.ex.variablespeed.tests" 155 coverage_target="framework" 156 continuous="true" 157 description="Framework variable speed audio tests" /> 158 159<test-native name="libandroidfw" 160 build_path="frameworks/base/libs/androidfw/tests" 161 description="Framework libandroidfw unit tests." /> 162 163<test-native name="libinput" 164 build_path="frameworks/native/libs/input/tests" 165 description="Framework libinput unit tests." /> 166 167<test-native name="libinputservice" 168 build_path="frameworks/base/services/input/tests" 169 description="Framework libinputservice unit tests." /> 170 171<test name="volley" 172 build_path="frameworks/support/volley/tests" 173 package="com.android.volley.tests" 174 continuous="true" /> 175 176<test name="networksecurityconfig" 177 build_path="frameworks/base/tests/NetworkSecurityConfigTest" 178 package="android.security.net.config" 179 coverage_target="framework" 180 description="Android network security config tests." /> 181 182<!-- end of framework tests --> 183 184<!-- media framework tests --> 185<test name="media" 186 build_path="frameworks/base/media/tests/MediaFrameworkTest" 187 package="com.android.mediaframeworktest" 188 runner=".MediaFrameworkTestRunner" 189 coverage_target="framework" 190 continuous="true" /> 191 192<test name="mediaapitest" 193 build_path="frameworks/base/media/tests/MediaFrameworkTest" 194 package="com.android.mediaframeworktest" 195 class="com.android.mediaframeworktest.functional.MediaPlayerApiTest" 196 runner=".MediaFrameworkTestRunner" 197 coverage_target="framework" /> 198 199<test name="mediarecordertest" 200 build_path="frameworks/base/media/tests/MediaFrameworkTest" 201 package="com.android.mediaframeworktest" 202 class="com.android.mediaframeworktest.functional.MediaRecorderTest" 203 runner=".MediaFrameworkTestRunner" 204 coverage_target="framework" /> 205 206<test name="mediastresstest" 207 build_path="frameworks/base/media/tests/MediaFrameworkTest" 208 package="com.android.mediaframeworktest" 209 runner=".MediaRecorderStressTestRunner" 210 coverage_target="framework" /> 211 212<test name="mediamemorystress" 213 build_path="frameworks/base/media/tests/MediaFrameworkTest" 214 package="com.android.mediaframeworktest" 215 runner=".MediaFrameworkPerfTestRunner" 216 coverage_target="framework" /> 217 218<test name="mediaunit" 219 build_path="frameworks/base/media/tests/MediaFrameworkTest" 220 package="com.android.mediaframeworktest" 221 runner=".MediaFrameworkUnitTestRunner" 222 coverage_target="framework" /> 223 224<test name="mediaintegrationtest" 225 build_path="frameworks/base/media/tests/MediaFrameworkTest" 226 package="com.android.mediaframeworktest" 227 runner=".MediaFrameworkIntegrationTestRunner" 228 coverage_target="framework" /> 229 230<test-native name="camera-client-native" 231 build_path="frameworks/av/camera/tests/" 232 description="Camera client native tests." /> 233 234<test-native name="camera-hal2-native" 235 build_path="hardware/libhardware/tests/camera2" 236 description="Camera hal2 native tests." /> 237<!-- end of media framework tests --> 238 239<!-- targeted framework tests --> 240<test name="account" 241 build_path="frameworks/base/core/tests/coretests" 242 package="com.android.frameworks.coretests" 243 class="android.accounts.AccountManagerServiceTest" 244 coverage_target="framework" /> 245 246<test name="smoke" 247 build_path="frameworks/base/tests/SmokeTest" 248 package="com.android.smoketest.tests" 249 coverage_target="framework" 250 continuous="true" /> 251 252<test name="launchperf" 253 build_path="development/apps/launchperf" 254 package="com.android.launchperf" 255 runner=".SimpleActivityLaunchPerformance" 256 coverage_target="framework" /> 257 258<test name="contentprovideroperation" 259 build_path="frameworks/base/core/tests/coretests" 260 package="com.android.frameworks.coretests" 261 class="android.content.ContentProviderOperationTest" 262 coverage_target="framework" /> 263 264<!-- selected app tests --> 265<test name="apidemos" 266 build_path="development/samples/ApiDemos" 267 package="com.example.android.apis.tests" /> 268 269<test name="bluetooth" 270 build_path="packages/apps/Bluetooth/tests" 271 package="com.android.bluetooth.tests" 272 runner="android.support.test.runner.AndroidJUnitRunner" 273 continuous="true" /> 274 275<test name="calculator" 276 build_path="packages/apps/Calculator" 277 package="com.android.calculator2.tests" 278 coverage_target="Calculator" 279 continuous="true" /> 280 281<test name="calendar" 282 build_path="packages/apps/Calendar" 283 package="com.android.calendar.tests" 284 coverage_target="Calendar" 285 continuous="true" /> 286 287<test name="calprov" 288 build_path="packages/providers/CalendarProvider" 289 package="com.android.providers.calendar.tests" 290 coverage_target="CalendarProvider" 291 continuous="true" /> 292 293<test name="camera-functional" 294 build_path="packages/apps/Camera" 295 package="com.google.android.camera.tests" 296 runner="com.android.camera.CameraTestRunner" 297 coverage_target="Camera" 298 description="Camera functional test" 299 continuous="true" /> 300 301<test name="contactsprov" 302 build_path="packages/providers/ContactsProvider" 303 package="com.android.providers.contacts.tests" 304 coverage_target="ContactsProvider" 305 continuous="true" /> 306 307<test name="contacts" 308 build_path="packages/apps/Contacts" 309 package="com.android.contacts.tests" 310 runner="android.test.InstrumentationTestRunner" 311 coverage_target="Contacts" 312 description="Tests for the Contacts app." 313 continuous="true" /> 314 315<test name="contacts-launch" 316 build_path="packages/apps/Contacts" 317 package="com.android.contacts.tests" 318 runner="com.android.contacts.ContactsLaunchPerformance" 319 description="Launch performance for Contacts." /> 320 321<test name="dialer" 322 build_path="packages/apps/Dialer" 323 package="com.android.dialer.tests" 324 runner="android.test.InstrumentationTestRunner" 325 coverage_target="Dialer" 326 description="Tests for the Dialer app." 327 continuous="true" /> 328 329<test name="managed-provisioning" 330 build_path="packages/apps/ManagedProvisioning/tests" 331 package="com.android.managedprovisioning.tests" 332 runner="com.android.managedprovisioning.TestInstrumentationRunner" 333 coverage_target="ManagedProvisioning" 334 description="Tests for the ManagedProvisioning app." 335 continuous="true" /> 336 337<test name="downloadprovider" 338 build_path="packages/providers/DownloadProvider/tests" 339 package="com.android.providers.downloads.tests" 340 coverage_target="DownloadProvider" 341 continuous="true" /> 342 343<test name="downloadprovider-permission" 344 build_path="packages/providers/DownloadProvider/tests/permission" 345 package="com.android.providers.downloads.permission.tests" 346 coverage_target="DownloadProvider" 347 continuous="true" /> 348 349<test name="email" 350 build_path="packages/apps/Email" 351 package="com.android.email.tests" 352 coverage_target="Email" 353 continuous="true" /> 354 355<test name="emailsmall" 356 build_path="packages/apps/Email" 357 package="com.android.email.tests" 358 class="com.android.email.SmallTests" 359 coverage_target="Email" /> 360 361<test name="exchange" 362 build_path="packages/apps/Exchange" 363 package="com.android.exchange.tests" 364 coverage_target="Exchange" 365 continuous="true" /> 366 367<test name="musicplayer" 368 build_path="packages/apps/Music" 369 package="com.android.music.tests" 370 runner=".MusicPlayerFunctionalTestRunner" 371 coverage_target="Music" /> 372 373<test name="mms" 374 build_path="packages/apps/Mms" 375 package="com.android.mms.tests" 376 coverage_target="Mms" /> 377 378<!-- Unit tests for the phone application. --> 379<test name="phone-unit" 380 build_path="packages/services/Telephony" 381 package="com.android.phone.tests" 382 continuous="true" 383 coverage_target="Phone" /> 384 385<test name="carrierconfig-unit" 386 build_path="packages/apps/CarrierConfig" 387 package="com.android.carrierconfig.tests" 388 continuous="true" 389 coverage_target="Phone" 390 description="Tests for default carrier config app" /> 391 392<test name="telecom-unit" 393 build_path="packages/services/Telecomm" 394 package="com.android.server.telecom.tests" 395 continuous="true" 396 coverage_target="Phone" /> 397 398<test name="quicksearchbox" 399 build_path="packages/apps/QuickSearchBox" 400 package="com.android.quicksearchbox.tests" 401 coverage_target="QuickSearchBox" /> 402 403<test name="systemui" 404 build_path="frameworks/base/packages/SystemUI/tests" 405 package="com.android.systemui.tests" 406 coverage_target="SystemUI" 407 runner="android.testing.TestableInstrumentation" 408 continuous="true" 409 description="SystemUI tests" /> 410 411<test name="systemui-jank" 412 build_path="platform_testing/tests/jank/UbSystemUiJankTests" 413 package="android.platform.systemui.tests.jank" 414 runner="android.test.InstrumentationTestRunner" 415 continuous="true" 416 description="SystemUI jank tests" /> 417 418<test name="systemui-notification" 419 build_path="frameworks/base/services/tests/notification" 420 package="com.android.frameworks.tests.notification" 421 runner="android.testing.TestableInstrumentation" 422 continuous="true" 423 description="SystemUI Notification tests" /> 424 425<test name="systemui-functional-notification" 426 build_path="platform_testing/tests/functional/notificationtests" 427 package="com.android.notification.functional" 428 runner="android.support.test.runner.AndroidJUnitRunner" 429 continuous="true" 430 description="SystemUI functional notification tests" /> 431 432<test name="apptransition-perf" 433 build_path="platform_testing/tests/perf/PerfTransitionTest" 434 package="com.android.apptransition.tests" 435 runner="android.support.test.runner.AndroidJUnitRunner" 436 continuous="true" 437 description="App transition latency and other latency tests" /> 438 439<test name="documentsui" 440 build_path="frameworks/base/packages/DocumentsUI/tests" 441 package="com.android.documentsui.tests" 442 coverage_target="DocumentsUI" 443 continuous="true" 444 description="DocumentsUI tests" /> 445 446<!-- native tests --> 447 448<!-- Bionic C++ --> 449<test-native name="libstdcpp" 450 build_path="system/extras/tests/bionic/libstdc++" 451 description="Bionic libstdc++." 452 extra_build_args="BIONIC_TESTS=1" /> 453 454<test-native name="libskia" 455 build_path="external/skia/tests" 456 description="Skia tests." /> 457 458<!-- Google Test --> 459<test-native name="gtest" 460 build_path="external/gtest" 461 description="Google test." 462 extra_build_args="GTEST_TESTS=1" /> 463 464<!-- clatd --> 465<test-native name="clatd" 466 build_path="external/android-clat" 467 description="clatd unit tests." /> 468 469<!-- Libjingle --> 470<test-native name="libjingle" 471 build_path="vendor/google/libraries/libjingle" 472 description="Libjingle." 473 full_make="true" 474 extra_build_args="LIBJINGLE_TESTS=1" /> 475 476<!-- host java tests --> 477<test-host name="frameworks-core-host" 478 build_path="frameworks/base/core/tests/hosttests" 479 class="android.content.pm.PackageManagerHostTests" 480 jar_name="FrameworkCoreHostTests.jar" /> 481 482</test-definitions> 483