The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 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 | Tests are defined by <test> tags with the following attributes |
| 21 | |
| 22 | name package [class runner build_path coverage_target continuous] |
| 23 | |
| 24 | Where: |
| 25 | name: Self-descriptive name used to uniquely identify the test |
| 26 | build_path: File system path, relative to Android build root, to this package's |
| 27 | Android.mk file. If omitted, build/sync step for this test will be skipped |
| 28 | package: Android application package that contains the tests |
| 29 | class: Optional. Fully qualified Java test class to run. |
| 30 | runner: Fully qualified InstrumentationTestRunner to execute. If omitted, |
| 31 | will default to android.test.InstrumentationTestRunner |
| 32 | coverage_target: Build name of Android package this test targets - these targets |
| 33 | are defined in the coverage_targets.xml file. Used as basis for code |
| 34 | coverage metrics. If omitted, code coverage will not be supported for this |
| 35 | test |
| 36 | continuous: Optional boolean. Default is false. Set to true if tests are known |
| 37 | to be reliable, and should be included in a continuous test system. false if |
| 38 | they are under development. |
| 39 | |
| 40 | These attributes map to the following commands: |
| 41 | (if class is defined) |
| 42 | adb shell am instrument -w <package>/<runner> |
| 43 | (else) |
| 44 | adb shell am instrument -w -e class <class> <package>/<runner> |
| 45 | |
| 46 | --> |
| 47 | |
| 48 | <test-definitions version="1"> |
| 49 | |
| 50 | <!-- system-wide tests --> |
| 51 | <test name="framework" |
| 52 | build_path="frameworks/base/tests/FrameworkTest" |
| 53 | package="com.android.frameworktest.tests" |
| 54 | class="com.android.frameworktest.AllTests" |
| 55 | coverage_target="framework" |
| 56 | continuous="true" /> |
| 57 | |
| 58 | <test name="android" |
| 59 | build_path="frameworks/base/tests/AndroidTests" |
| 60 | package="com.android.unit_tests" |
| 61 | class="com.android.unit_tests.AndroidTests" |
| 62 | coverage_target="framework" |
| 63 | continuous="true" /> |
| 64 | |
| 65 | <test name="smoke" |
| 66 | build_path="frameworks/base/tests/SmokeTest" |
| 67 | package="com.android.smoketest.tests" |
| 68 | coverage_target="framework" |
| 69 | continuous="true" /> |
| 70 | |
| 71 | <test name="core" |
| 72 | build_path="frameworks/base/tests/CoreTests" |
| 73 | package="android.core" |
| 74 | class="android.core.CoreTests" |
| 75 | coverage_target="framework" |
| 76 | continuous="true" /> |
| 77 | |
| 78 | <test name="libcore" |
| 79 | build_path="frameworks/base/tests/CoreTests" |
| 80 | package="android.core" |
| 81 | class="android.core.JavaTests" |
| 82 | coverage_target="framework" /> |
| 83 | |
| 84 | <test name="apidemos" |
| 85 | build_path="development/samples/ApiDemos" |
| 86 | package="com.example.android.apis.tests" |
| 87 | coverage_target="ApiDemos" |
| 88 | continuous="true" /> |
| 89 | |
The Android Open Source Project | 6ffae01 | 2009-03-18 17:39:43 -0700 | [diff] [blame^] | 90 | <test name="launchperf" |
| 91 | build_path="development/apps/launchperf" |
| 92 | package="com.android.launchperf" |
| 93 | class="com.android.launchperf.SimpleActivityLaunchPerformance" |
| 94 | coverage_target="framework" /> |
| 95 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 96 | <!-- targeted framework tests --> |
| 97 | <test name="heap" |
| 98 | build_path="frameworks/base/tests/AndroidTests" |
| 99 | package="com.android.unit_tests" |
| 100 | class="com.android.unit_tests.HeapTest" |
| 101 | coverage_target="framework" /> |
| 102 | |
| 103 | <test name="activity" |
| 104 | build_path="frameworks/base/tests/AndroidTests" |
| 105 | package="com.android.unit_tests" |
| 106 | class="com.android.unit_tests.activity.ActivityTests" |
| 107 | coverage_target="framework" /> |
| 108 | |
| 109 | <!-- obsolete? |
| 110 | <test name="deadlock" |
| 111 | build_path="frameworks/base/tests/Deadlock" |
| 112 | package="com.android.deadlock.tests" |
| 113 | coverage_target="framework" /> |
| 114 | --> |
| 115 | |
| 116 | |
| 117 | <test name="tablemerger" |
| 118 | build_path="frameworks/base/tests/FrameworkTest" |
| 119 | package="com.android.frameworktest.tests" |
| 120 | class="android.content.AbstractTableMergerTest" |
| 121 | coverage_target="framework" /> |
| 122 | |
The Android Open Source Project | 6ffae01 | 2009-03-18 17:39:43 -0700 | [diff] [blame^] | 123 | <test name="imf" |
| 124 | build_path="frameworks/base/tests/ImfTest" |
| 125 | package="com.android.imftest.tests" |
| 126 | coverage_target="framework" |
| 127 | continuous="true" /> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 128 | |
| 129 | <!-- selected app tests --> |
| 130 | <test name="browser" |
| 131 | build_path="packages/apps/Browser" |
| 132 | package="com.android.browser" |
| 133 | runner=".BrowserTestRunner" |
| 134 | coverage_target="Browser" /> |
| 135 | |
| 136 | <test name="browserfunc" |
| 137 | build_path="packages/apps/Browser" |
| 138 | package="com.android.browser" |
| 139 | runner=".BrowserFunctionalTestRunner" |
| 140 | coverage_target="Browser" /> |
| 141 | |
| 142 | <test name="calendar" |
| 143 | build_path="packages/apps/Calendar/tests" |
| 144 | package="com.android.calendar.tests" |
| 145 | coverage_target="Calendar" |
| 146 | continuous="true" /> |
| 147 | |
| 148 | <test name="calprov" |
| 149 | build_path="packages/providers/CalendarProvider/tests" |
| 150 | package="com.android.providers.calendar.tests" |
| 151 | coverage_target="CalendarProvider" |
| 152 | continuous="true" /> |
| 153 | |
| 154 | <test name="camera" |
| 155 | build_path="packages/apps/Camera/tests" |
| 156 | package="com.android.cameratests" |
| 157 | runner="CameraInstrumentationTestRunner" |
| 158 | coverage_target="Camera" /> |
| 159 | |
| 160 | <test name="contactsprov" |
| 161 | build_path="packages/providers/GoogleContactsProvider/tests" |
| 162 | package="com.android.providers.contactstests" |
| 163 | coverage_target="ContactsProvider" /> |
| 164 | |
| 165 | <test name="email" |
| 166 | build_path="packages/apps/Email" |
| 167 | package="com.android.email.tests" |
| 168 | coverage_target="Email" |
| 169 | continuous="true" /> |
| 170 | |
| 171 | <test name="emailsmall" |
| 172 | build_path="packages/apps/Email" |
| 173 | package="com.android.email.tests" |
| 174 | class="com.android.email.SmallTests" |
| 175 | coverage_target="Email" /> |
| 176 | |
| 177 | <test name="media" |
| 178 | build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| 179 | package="com.android.mediaframeworktest" |
| 180 | runner=".MediaFrameworkTestRunner" |
| 181 | coverage_target="framework" |
| 182 | continuous="true" /> |
The Android Open Source Project | 6ffae01 | 2009-03-18 17:39:43 -0700 | [diff] [blame^] | 183 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 184 | <test name="mediaunit" |
| 185 | build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| 186 | package="com.android.mediaframeworktest" |
| 187 | runner=".MediaFrameworkUnitTestRunner" |
| 188 | coverage_target="framework" /> |
The Android Open Source Project | 6ffae01 | 2009-03-18 17:39:43 -0700 | [diff] [blame^] | 189 | |
| 190 | <test name="musicplayer" |
| 191 | build_path="packages/apps/Music" |
| 192 | package="com.android.music.tests" |
| 193 | runner=".MusicPlayerFunctionalTestRunner" |
| 194 | coverage_target="Music" |
| 195 | continuous="true" /> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 196 | |
| 197 | <!-- obsolete? |
| 198 | <test name="mediaprov" |
| 199 | build_path="tests/MediaProvider" |
| 200 | package="com.android.mediaprovidertests" |
| 201 | runner=".MediaProviderTestsInstrumentation" |
| 202 | coverage_target="MediaProvider" /> |
| 203 | --> |
| 204 | |
| 205 | <test name="mms" |
| 206 | build_path="packages/apps/Mms" |
| 207 | package="com.android.mms.tests" |
| 208 | runner="com.android.mms.ui.MMSInstrumentationTestRunner" |
| 209 | coverage_target="Mms" /> |
| 210 | |
| 211 | <test name="mmslaunch" |
| 212 | build_path="packages/apps/Mms" |
| 213 | package="com.android.mms.tests" |
| 214 | runner="com.android.mms.SmsLaunchPerformance" |
| 215 | coverage_target="Mms" /> |
| 216 | |
| 217 | |
| 218 | <!-- obsolete? |
| 219 | <test name="ringtone" |
| 220 | build_path="tests/RingtoneSettings" |
| 221 | package="com.android.ringtonesettingstests" |
| 222 | runner=".RingtoneSettingsInstrumentationTestRunner" |
| 223 | coverage_target="Settings" /> |
| 224 | --> |
| 225 | |
| 226 | </test-definitions> |