| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2009 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- |
| This file contains standard test definitions for the Android platform |
| |
| Java tests are defined by <test> tags and native ones (C/C++) are defined by |
| <test-native> tags. |
| |
| JAVA/application tests: |
| ======================= |
| The java <test> element has the following attributes |
| |
| name package [class runner build_path coverage_target continuous description] |
| |
| Where: |
| name: Self-descriptive name used to uniquely identify the test |
| build_path: File system path, relative to Android build root, to this |
| package's Android.mk file. If omitted, build/sync step for this test will |
| be skipped. |
| package: Android application package that contains the tests |
| class: Optional. Fully qualified Java test class to run. |
| runner: Fully qualified InstrumentationTestRunner to execute. If omitted, |
| will default to android.test.InstrumentationTestRunner. |
| coverage_target: Build name of Android package this test targets - these |
| targets are defined in the coverage_targets.xml file. Used as basis for |
| code coverage metrics. If omitted, code coverage will not be supported for |
| this test. |
| continuous: Optional boolean. Default is false. Set to true if tests are known |
| to be reliable, and should be included in a continuous test system. false if |
| they are under development. |
| cts: Optional boolean. Default is false. Set to true if test is included in |
| compatibility test suite. |
| |
| description: Optional string. Default is empty. Short description (typically |
| less than 60 characters) about this test. |
| |
| These attributes map to the following commands: |
| (if class is defined) |
| adb shell am instrument -w <package>/<runner> |
| (else) |
| adb shell am instrument -w -e class <class> <package>/<runner> |
| |
| Native tests: |
| ============= |
| The <test-native> element has the following attributes |
| |
| name build_path [continuous description extra_make_args] |
| |
| Where: |
| name: Self-descriptive name used to uniquely identify the test |
| build_path: File system path, relative to Android build root, to this |
| package's Android.mk file. By convention the name of a test should match: |
| - test_*.[cc|cpp] |
| - *_test.[cc|cpp] |
| - *_unittest.[cc|cpp] |
| |
| continuous: Optional boolean. Default is false. Set to true if tests are known |
| to be reliable, and should be included in a continuous test system. |
| false if they are under development. |
| description: Optional string. Default is empty. Short description (typically |
| less than 60 characters) about this test. |
| extra_make_args: Optional string. Default is empty. Some test module require |
| extra make arguments to build. This string is append to the make command. |
| |
| These attributes map to the following commands: |
| make <build_path>/Android.mk <extra_make_args> |
| adb sync |
| for test_prog in <tests built>; do |
| adb shell "/system/bin/${test_prog} >/dev/null 2>&1;echo \$?" |
| adb shell "rm /system/bin/${test_prog}" |
| done |
| --> |
| |
| <test-definitions xmlns="http://schemas.android.com/testrunner/test_defs/1.0" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://schemas.android.com/testrunner/test_defs/1.0 test_defs.xsd"> |
| |
| <!-- system-wide tests --> |
| <test name="framework" |
| build_path="frameworks/base/tests/FrameworkTest" |
| package="com.android.frameworktest.tests" |
| class="com.android.frameworktest.AllTests" |
| coverage_target="framework" |
| continuous="true" /> |
| |
| <test name="android" |
| build_path="frameworks/base/tests/AndroidTests" |
| package="com.android.unit_tests" |
| class="com.android.unit_tests.AndroidTests" |
| coverage_target="framework" |
| continuous="true" /> |
| |
| <test name="account" |
| build_path="frameworks/base/tests/AndroidTests" |
| package="com.android.unit_tests" |
| class="com.android.unit_tests.accounts.AccountManagerServiceTest" |
| coverage_target="framework" /> |
| |
| <test name="smoke" |
| build_path="frameworks/base/tests/SmokeTest" |
| package="com.android.smoketest.tests" |
| coverage_target="framework" |
| continuous="true" /> |
| |
| <test name="core" |
| build_path="frameworks/base/tests/CoreTests" |
| package="android.core" |
| class="android.core.CoreTests" |
| coverage_target="framework" |
| continuous="true" /> |
| |
| <test name="libcore" |
| build_path="frameworks/base/tests/CoreTests" |
| package="android.core" |
| class="android.core.JavaTests" |
| coverage_target="framework" /> |
| |
| <test name="apidemos" |
| build_path="development/samples/ApiDemos" |
| package="com.example.android.apis.tests" |
| coverage_target="ApiDemos" |
| continuous="true" /> |
| |
| <test name="launchperf" |
| build_path="development/apps/launchperf" |
| package="com.android.launchperf" |
| class="com.android.launchperf.SimpleActivityLaunchPerformance" |
| coverage_target="framework" /> |
| |
| <!-- targeted framework tests --> |
| <test name="heap" |
| build_path="frameworks/base/tests/AndroidTests" |
| package="com.android.unit_tests" |
| class="com.android.unit_tests.HeapTest" |
| coverage_target="framework" /> |
| |
| <test name="activity" |
| build_path="frameworks/base/tests/AndroidTests" |
| package="com.android.unit_tests" |
| class="com.android.unit_tests.activity.ActivityTests" |
| coverage_target="framework" /> |
| |
| <!-- obsolete? |
| <test name="deadlock" |
| build_path="frameworks/base/tests/Deadlock" |
| package="com.android.deadlock.tests" |
| coverage_target="framework" /> |
| --> |
| |
| |
| <test name="contentprovideroperation" |
| build_path="frameworks/base/tests/FrameworkTest" |
| package="com.android.frameworktest.tests" |
| class="android.content.ContentProviderOperationTest" |
| coverage_target="framework" /> |
| |
| <test name="tablemerger" |
| build_path="frameworks/base/tests/FrameworkTest" |
| package="com.android.frameworktest.tests" |
| class="android.content.AbstractTableMergerTest" |
| coverage_target="framework" /> |
| |
| <test name="imf" |
| build_path="frameworks/base/tests/ImfTest" |
| package="com.android.imftest.tests" |
| coverage_target="framework" |
| continuous="true" /> |
| |
| <!-- cts tests --> |
| |
| <test name="cts-permission" |
| build_path="cts/tests" |
| package="com.android.cts.permission" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| continuous="true" |
| cts="true" /> |
| |
| <test name="cts-process" |
| build_path="cts/tests" |
| package="com.android.cts.process" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-api-signature" |
| build_path="cts/tests" |
| package="android.tests.sigtest" |
| runner=".InstrumentationRunner" |
| cts="true" /> |
| |
| <test name="cts-api-signature-func" |
| build_path="cts/tests" |
| package="android.tests.sigtest.tests" |
| cts="true" /> |
| |
| <test name="cts-apidemos" |
| build_path="cts/tests" |
| package="android.apidemos.cts" |
| coverage_target="ApiDemos" |
| cts="true" /> |
| |
| <test name="cts-app" |
| build_path="cts/tests" |
| package="com.android.cts.app" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-content" |
| build_path="cts/tests" |
| package="com.android.cts.content" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-database" |
| build_path="cts/tests" |
| package="com.android.cts.database" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-graphics" |
| build_path="cts/tests" |
| package="com.android.cts.graphics" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-hardware" |
| build_path="cts/tests" |
| package="com.android.cts.hardware" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-location" |
| build_path="cts/tests" |
| package="com.android.cts.location" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-net" |
| build_path="cts/tests" |
| package="com.android.cts.net" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-os" |
| build_path="cts/tests" |
| package="com.android.cts.os" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-perf1" |
| build_path="cts/tests" |
| package="com.android.cts.performance" |
| runner="android.test.InstrumentationCtsTestRunner" |
| cts="true" /> |
| |
| <test name="cts-perf2" |
| build_path="cts/tests" |
| package="com.android.cts.performance2" |
| runner="android.test.InstrumentationCtsTestRunner" |
| cts="true" /> |
| |
| <test name="cts-perf3" |
| build_path="cts/tests" |
| package="com.android.cts.performance3" |
| runner="android.test.InstrumentationCtsTestRunner" |
| cts="true" /> |
| |
| <test name="cts-perf4" |
| build_path="cts/tests" |
| package="com.android.cts.performance4" |
| runner="android.test.InstrumentationCtsTestRunner" |
| cts="true" /> |
| |
| <test name="cts-perf5" |
| build_path="cts/tests" |
| package="com.android.cts.performance5" |
| runner="android.test.InstrumentationCtsTestRunner" |
| cts="true" /> |
| |
| <test name="cts-provider" |
| build_path="cts/tests" |
| package="com.android.cts.provider" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-text" |
| build_path="cts/tests" |
| package="com.android.cts.text" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-util" |
| build_path="cts/tests" |
| package="com.android.cts.util" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-view" |
| build_path="cts/tests" |
| package="com.android.cts.view" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <test name="cts-widget" |
| build_path="cts/tests" |
| package="com.android.cts.widget" |
| runner="android.test.InstrumentationCtsTestRunner" |
| coverage_target="framework" |
| cts="true" /> |
| |
| <!-- end of cts tests --> |
| |
| <!-- selected app tests --> |
| <test name="browser" |
| build_path="packages/apps/Browser" |
| package="com.android.browser" |
| runner=".BrowserTestRunner" |
| coverage_target="Browser" /> |
| |
| <test name="browserfunc" |
| build_path="packages/apps/Browser" |
| package="com.android.browser" |
| runner=".BrowserFunctionalTestRunner" |
| coverage_target="Browser" /> |
| |
| <test name="calendar" |
| build_path="packages/apps/Calendar/tests" |
| package="com.android.calendar.tests" |
| coverage_target="Calendar" |
| continuous="true" /> |
| |
| <test name="calprov" |
| build_path="packages/providers/CalendarProvider/tests" |
| package="com.android.providers.calendar.tests" |
| coverage_target="CalendarProvider" |
| continuous="true" /> |
| |
| <test name="camerastress" |
| build_path="packages/apps/Camera" |
| package="com.android.camera.tests" |
| class="com.android.camera.StressTests" |
| coverage_target="Camera" /> |
| |
| <test name="camera" |
| build_path="packages/apps/Camera" |
| package="com.android.camera.tests" |
| class="com.android.camera.UnitTests" |
| continuous="true" |
| coverage_target="Camera" /> |
| |
| <test name="contactsprov" |
| build_path="packages/providers/GoogleContactsProvider/tests" |
| package="com.android.providers.contactstests" |
| coverage_target="ContactsProvider" /> |
| |
| <test name="email" |
| build_path="packages/apps/Email" |
| package="com.android.email.tests" |
| coverage_target="Email" |
| continuous="true" /> |
| |
| <test name="emailsmall" |
| build_path="packages/apps/Email" |
| package="com.android.email.tests" |
| class="com.android.email.SmallTests" |
| coverage_target="Email" /> |
| |
| <test name="media" |
| build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| package="com.android.mediaframeworktest" |
| runner=".MediaFrameworkTestRunner" |
| coverage_target="framework" |
| continuous="true" /> |
| |
| <test name="mediaapitest" |
| build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| package="com.android.mediaframeworktest" |
| class="com.android.mediaframeworktest.functional.MediaPlayerApiTest" |
| runner=".MediaFrameworkTestRunner" |
| coverage_target="framework" /> |
| |
| <test name="mediarecordertest" |
| build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| package="com.android.mediaframeworktest" |
| class="com.android.mediaframeworktest.functional.MediaRecorderTest" |
| runner=".MediaFrameworkTestRunner" |
| coverage_target="framework" /> |
| |
| <test name="mediastresstest" |
| build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| package="com.android.mediaframeworktest" |
| runner=".MediaRecorderStressTestRunner" |
| coverage_target="framework" /> |
| |
| <test name="mediaunit" |
| build_path="frameworks/base/media/tests/MediaFrameworkTest" |
| package="com.android.mediaframeworktest" |
| runner=".MediaFrameworkUnitTestRunner" |
| coverage_target="framework" /> |
| |
| <test name="musicplayer" |
| build_path="packages/apps/Music" |
| package="com.android.music.tests" |
| runner=".MusicPlayerFunctionalTestRunner" |
| coverage_target="Music" /> |
| |
| <!-- obsolete? |
| <test name="mediaprov" |
| build_path="tests/MediaProvider" |
| package="com.android.mediaprovidertests" |
| runner=".MediaProviderTestsInstrumentation" |
| coverage_target="MediaProvider" /> |
| --> |
| |
| <test name="mms" |
| build_path="packages/apps/Mms" |
| package="com.android.mms.tests" |
| coverage_target="Mms" /> |
| |
| <test name="mmslaunch" |
| build_path="packages/apps/Mms" |
| package="com.android.mms.tests" |
| runner="com.android.mms.SmsLaunchPerformance" |
| coverage_target="Mms" /> |
| |
| |
| <!-- obsolete? |
| <test name="ringtone" |
| build_path="tests/RingtoneSettings" |
| package="com.android.ringtonesettingstests" |
| runner=".RingtoneSettingsInstrumentationTestRunner" |
| coverage_target="Settings" /> |
| --> |
| |
| <!-- native tests --> |
| <test-native name="libstdcpp" |
| build_path="system/extras/tests/bionic/libstdc++" |
| description="Bionic libstdc++." |
| extra_make_args="BIONIC_TESTS=1" /> |
| |
| <test-native name="libskia" |
| build_path="external/skia/tests" |
| description="Skia tests." /> |
| |
| <!-- pending patch 820 |
| <test-native name="gtest" |
| build_path="external/gtest" |
| description="Google test." |
| extra_make_args="GTEST_TESTS=1" /> |
| --> |
| |
| </test-definitions> |