xref: /aosp_15_r20/development/tools/templates/AndroidManifest.tests.template (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*90c8c64dSAndroid Build Coastguard Worker<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
3*90c8c64dSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4*90c8c64dSAndroid Build Coastguard Worker          package="PACKAGE.tests"
5*90c8c64dSAndroid Build Coastguard Worker          android:versionCode="1"
6*90c8c64dSAndroid Build Coastguard Worker          android:versionName="1.0">
7*90c8c64dSAndroid Build Coastguard Worker    <!-- We add an application tag here just so that we can indicate that
8*90c8c64dSAndroid Build Coastguard Worker         this package needs to link against the android.test library,
9*90c8c64dSAndroid Build Coastguard Worker         which is needed when building test cases. -->
10*90c8c64dSAndroid Build Coastguard Worker    <application>
11*90c8c64dSAndroid Build Coastguard Worker        <uses-library android:name="android.test.runner" />
12*90c8c64dSAndroid Build Coastguard Worker    </application>
13*90c8c64dSAndroid Build Coastguard Worker    <!--
14*90c8c64dSAndroid Build Coastguard Worker    This declares that this application uses the instrumentation test runner targeting
15*90c8c64dSAndroid Build Coastguard Worker    the package of PACKAGE.  To run the tests use the command:
16*90c8c64dSAndroid Build Coastguard Worker    "adb shell am instrument -w PACKAGE.tests/android.test.InstrumentationTestRunner"
17*90c8c64dSAndroid Build Coastguard Worker    -->
18*90c8c64dSAndroid Build Coastguard Worker    <instrumentation android:name="android.test.InstrumentationTestRunner"
19*90c8c64dSAndroid Build Coastguard Worker                     android:targetPackage="PACKAGE"
20*90c8c64dSAndroid Build Coastguard Worker                     android:label="Tests for PACKAGE"/>
21*90c8c64dSAndroid Build Coastguard Worker</manifest>
22