Sasha Smundak | 31754eb | 2019-02-11 14:41:25 -0800 | [diff] [blame] | 1 | // Copyright 2010, The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 15 | package { |
Wei Li | 4cf550d | 2024-03-07 21:27:35 -0800 | [diff] [blame] | 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 17 | } |
| 18 | |
Sasha Smundak | 31754eb | 2019-02-11 14:41:25 -0800 | [diff] [blame] | 19 | android_test { |
| 20 | name: "FrameworkTestRunnerTests", |
| 21 | |
| 22 | // We only want this apk build for tests. |
| 23 | // |
| 24 | // Run the tests using the following commands: |
| 25 | // adb install -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworkTestRunnerTests/FrameworkTestRunnerTests.apk |
| 26 | // adb shell am instrument \ |
| 27 | // -e notAnnotation android.test.suitebuilder.examples.error.RunAsPartOfSeparateTest \ |
| 28 | // -w com.android.frameworks.testrunner.tests/android.test.InstrumentationTestRunner \ |
| 29 | // |
| 30 | |
| 31 | libs: [ |
Jiyong Park | ea4dced | 2020-06-01 14:56:39 +0900 | [diff] [blame] | 32 | "android.test.runner.impl", |
Jihoon Kang | 1e37ed3 | 2024-08-30 00:29:12 +0000 | [diff] [blame] | 33 | "android.test.base.stubs.system", |
| 34 | "android.test.mock.stubs.system", |
Sasha Smundak | 31754eb | 2019-02-11 14:41:25 -0800 | [diff] [blame] | 35 | ], |
Fangqiu Su | df5ac0d | 2024-04-21 22:08:42 +0000 | [diff] [blame] | 36 | static_libs: [ |
| 37 | "junit", |
| 38 | "androidx.test.rules", |
| 39 | ], |
Sasha Smundak | 31754eb | 2019-02-11 14:41:25 -0800 | [diff] [blame] | 40 | |
| 41 | // Include all test java files. |
| 42 | srcs: ["src/**/*.java"], |
| 43 | |
| 44 | // Because of android.test.mock. |
| 45 | platform_apis: true, |
| 46 | |
| 47 | } |