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 <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="ex-variablespeed" 147 build_path="frameworks/ex/variablespeed/tests" 148 package="com.android.ex.variablespeed.tests" 149 coverage_target="framework" 150 continuous="true" 151 description="Framework variable speed audio tests" /> 152 153 <test-native name="libandroidfw" 154 build_path="frameworks/base/libs/androidfw/tests" 155 description="Framework libandroidfw unit tests." /> 156 157 <test-native name="libinput" 158 build_path="frameworks/native/libs/input/tests" 159 description="Framework libinput unit tests." /> 160 161 <test-native name="libinputservice" 162 build_path="frameworks/base/services/input/tests" 163 description="Framework libinputservice unit tests." /> 164 165 <test name="volley" 166 build_path="frameworks/support/volley/tests" 167 package="com.android.volley.tests" 168 continuous="true" /> 169 170 <test name="networksecurityconfig" 171 build_path="frameworks/base/tests/NetworkSecurityConfigTest" 172 package="android.security.net.config" 173 coverage_target="framework" 174 description="Android network security config tests." /> 175 176 <!-- end of framework tests --> 177 178 <!-- media framework tests --> 179 <test name="media" 180 build_path="frameworks/base/media/tests/MediaFrameworkTest" 181 package="com.android.mediaframeworktest" 182 runner=".MediaFrameworkTestRunner" 183 coverage_target="framework" 184 continuous="true" /> 185 186 <test name="mediaapitest" 187 build_path="frameworks/base/media/tests/MediaFrameworkTest" 188 package="com.android.mediaframeworktest" 189 class="com.android.mediaframeworktest.functional.MediaPlayerApiTest" 190 runner=".MediaFrameworkTestRunner" 191 coverage_target="framework" /> 192 193 <test name="mediarecordertest" 194 build_path="frameworks/base/media/tests/MediaFrameworkTest" 195 package="com.android.mediaframeworktest" 196 class="com.android.mediaframeworktest.functional.MediaRecorderTest" 197 runner=".MediaFrameworkTestRunner" 198 coverage_target="framework" /> 199 200 <test name="mediastresstest" 201 build_path="frameworks/base/media/tests/MediaFrameworkTest" 202 package="com.android.mediaframeworktest" 203 runner=".MediaRecorderStressTestRunner" 204 coverage_target="framework" /> 205 206 <test name="mediamemorystress" 207 build_path="frameworks/base/media/tests/MediaFrameworkTest" 208 package="com.android.mediaframeworktest" 209 runner=".MediaFrameworkPerfTestRunner" 210 coverage_target="framework" /> 211 212 <test name="mediaunit" 213 build_path="frameworks/base/media/tests/MediaFrameworkTest" 214 package="com.android.mediaframeworktest" 215 runner=".MediaFrameworkUnitTestRunner" 216 coverage_target="framework" /> 217 218 <test name="mediaintegrationtest" 219 build_path="frameworks/base/media/tests/MediaFrameworkTest" 220 package="com.android.mediaframeworktest" 221 runner=".MediaFrameworkIntegrationTestRunner" 222 coverage_target="framework" /> 223 224 <test-native name="camera-client-native" 225 build_path="frameworks/av/camera/tests/" 226 description="Camera client native tests." /> 227 228 <test-native name="camera-hal2-native" 229 build_path="hardware/libhardware/tests/camera2" 230 description="Camera hal2 native tests." /> 231 <!-- end of media framework tests --> 232 233 <!-- targeted framework tests --> 234 <test name="account" 235 build_path="frameworks/base/core/tests/coretests" 236 package="com.android.frameworks.coretests" 237 class="android.accounts.AccountManagerServiceTest" 238 coverage_target="framework" /> 239 240 <test name="smoke" 241 build_path="frameworks/base/tests/SmokeTest" 242 package="com.android.smoketest.tests" 243 coverage_target="framework" 244 continuous="true" /> 245 246 <test name="launchperf" 247 build_path="development/apps/launchperf" 248 package="com.android.launchperf" 249 runner=".SimpleActivityLaunchPerformance" 250 coverage_target="framework" /> 251 252 <test name="contentprovideroperation" 253 build_path="frameworks/base/core/tests/coretests" 254 package="com.android.frameworks.coretests" 255 class="android.content.ContentProviderOperationTest" 256 coverage_target="framework" /> 257 258 <!-- selected app tests --> 259 <test name="apidemos" 260 build_path="development/samples/ApiDemos" 261 package="com.example.android.apis.tests" /> 262 263 <test name="bluetooth" 264 build_path="packages/apps/Bluetooth/tests" 265 package="com.android.bluetooth.tests" 266 runner="android.support.test.runner.AndroidJUnitRunner" 267 continuous="true" /> 268 269 <test name="calculator" 270 build_path="packages/apps/Calculator" 271 package="com.android.calculator2.tests" 272 coverage_target="Calculator" 273 continuous="true" /> 274 275 <test name="calendar" 276 build_path="packages/apps/Calendar" 277 package="com.android.calendar.tests" 278 coverage_target="Calendar" 279 continuous="true" /> 280 281 <test name="calprov" 282 build_path="packages/providers/CalendarProvider" 283 package="com.android.providers.calendar.tests" 284 coverage_target="CalendarProvider" 285 continuous="true" /> 286 287 <test name="camera-functional" 288 build_path="packages/apps/Camera" 289 package="com.google.android.camera.tests" 290 runner="com.android.camera.CameraTestRunner" 291 coverage_target="Camera" 292 description="Camera functional test" 293 continuous="true" /> 294 295 <test name="contactsprov" 296 build_path="packages/providers/ContactsProvider" 297 package="com.android.providers.contacts.tests" 298 coverage_target="ContactsProvider" 299 continuous="true" /> 300 301 <test name="contacts" 302 build_path="packages/apps/Contacts" 303 package="com.android.contacts.tests" 304 runner="android.test.InstrumentationTestRunner" 305 coverage_target="Contacts" 306 description="Tests for the Contacts app." 307 continuous="true" /> 308 309 <test name="contacts-launch" 310 build_path="packages/apps/Contacts" 311 package="com.android.contacts.tests" 312 runner="com.android.contacts.ContactsLaunchPerformance" 313 description="Launch performance for Contacts." /> 314 315 <test name="dialer" 316 build_path="packages/apps/Dialer" 317 package="com.android.dialer.tests" 318 runner="android.test.InstrumentationTestRunner" 319 coverage_target="Dialer" 320 description="Tests for the Dialer app." 321 continuous="true" /> 322 323 <test name="managed-provisioning" 324 build_path="packages/apps/ManagedProvisioning/tests" 325 package="com.android.managedprovisioning.tests" 326 runner="com.android.managedprovisioning.TestInstrumentationRunner" 327 coverage_target="ManagedProvisioning" 328 description="Tests for the ManagedProvisioning app." 329 continuous="true" /> 330 331 <test name="downloadprovider" 332 build_path="packages/providers/DownloadProvider/tests" 333 package="com.android.providers.downloads.tests" 334 coverage_target="DownloadProvider" 335 continuous="true" /> 336 337 <test name="downloadprovider-permission" 338 build_path="packages/providers/DownloadProvider/tests/permission" 339 package="com.android.providers.downloads.permission.tests" 340 coverage_target="DownloadProvider" 341 continuous="true" /> 342 343 <test name="email" 344 build_path="packages/apps/Email" 345 package="com.android.email.tests" 346 coverage_target="Email" 347 continuous="true" /> 348 349 <test name="emailsmall" 350 build_path="packages/apps/Email" 351 package="com.android.email.tests" 352 class="com.android.email.SmallTests" 353 coverage_target="Email" /> 354 355 <test name="exchange" 356 build_path="packages/apps/Exchange" 357 package="com.android.exchange.tests" 358 coverage_target="Exchange" 359 continuous="true" /> 360 361 <test name="musicplayer" 362 build_path="packages/apps/Music" 363 package="com.android.music.tests" 364 runner=".MusicPlayerFunctionalTestRunner" 365 coverage_target="Music" /> 366 367 <test name="mms" 368 build_path="packages/apps/Mms" 369 package="com.android.mms.tests" 370 coverage_target="Mms" /> 371 372 <!-- Unit tests for the phone application. --> 373 <test name="phone-unit" 374 build_path="packages/services/Telephony" 375 package="com.android.phone.tests" 376 continuous="true" 377 coverage_target="Phone" /> 378 379 <test name="carrierconfig-unit" 380 build_path="packages/apps/CarrierConfig" 381 package="com.android.carrierconfig.tests" 382 continuous="true" 383 coverage_target="Phone" 384 description="Tests for default carrier config app" /> 385 386 <test name="telecom-unit" 387 build_path="packages/services/Telecomm" 388 package="com.android.server.telecom.tests" 389 continuous="true" 390 coverage_target="Phone" /> 391 392 <test name="quicksearchbox" 393 build_path="packages/apps/QuickSearchBox" 394 package="com.android.quicksearchbox.tests" 395 coverage_target="QuickSearchBox" /> 396 397 <test name="systemui" 398 build_path="frameworks/base/packages/SystemUI/tests" 399 package="com.android.systemui.tests" 400 coverage_target="SystemUI" 401 runner="android.support.test.runner.AndroidJUnitRunner" 402 continuous="true" 403 description="SystemUI tests" /> 404 405 <test name="systemui-jank" 406 build_path="platform_testing/tests/jank/UbSystemUiJankTests" 407 package="android.platform.systemui.tests.jank" 408 runner="android.test.InstrumentationTestRunner" 409 continuous="true" 410 description="SystemUI jank tests" /> 411 412 <test name="systemui-notification" 413 build_path="frameworks/base/services/tests/notification" 414 package="com.android.frameworks.tests.notification" 415 runner="android.support.test.runner.AndroidJUnitRunner" 416 continuous="true" 417 description="SystemUI Notification tests" /> 418 419 <test name="systemui-functional-notification" 420 build_path="platform_testing/tests/functional/notificationtests" 421 package="com.android.notification.functional" 422 runner="android.support.test.runner.AndroidJUnitRunner" 423 continuous="true" 424 description="SystemUI functional notification tests" /> 425 426 <test name="apptransition-perf" 427 build_path="platform_testing/tests/perf/PerfTransitionTest" 428 package="com.android.apptransition.tests" 429 runner="android.support.test.runner.AndroidJUnitRunner" 430 continuous="true" 431 description="App transition latency and other latency tests" /> 432 433 <test name="documentsui" 434 build_path="frameworks/base/packages/DocumentsUI/tests" 435 package="com.android.documentsui.tests" 436 coverage_target="DocumentsUI" 437 continuous="true" 438 description="DocumentsUI tests" /> 439 440 <!-- native tests --> 441 442 <!-- Bionic C++ --> 443 <test-native name="libstdcpp" 444 build_path="system/extras/tests/bionic/libstdc++" 445 description="Bionic libstdc++." 446 extra_build_args="BIONIC_TESTS=1" /> 447 448 <test-native name="libskia" 449 build_path="external/skia/tests" 450 description="Skia tests." /> 451 452 <!-- Google Test --> 453 <test-native name="gtest" 454 build_path="external/gtest" 455 description="Google test." 456 extra_build_args="GTEST_TESTS=1" /> 457 458 <!-- clatd --> 459 <test-native name="clatd" 460 build_path="external/android-clat" 461 description="clatd unit tests." /> 462 463 <!-- Libjingle --> 464 <test-native name="libjingle" 465 build_path="vendor/google/libraries/libjingle" 466 description="Libjingle." 467 full_make="true" 468 extra_build_args="LIBJINGLE_TESTS=1" /> 469 470 <!-- host java tests --> 471 <test-host name="frameworks-core-host" 472 build_path="frameworks/base/core/tests/hosttests" 473 class="android.content.pm.PackageManagerHostTests" 474 jar_name="FrameworkCoreHostTests.jar" /> 475 476 </test-definitions> 477