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