blob: ac21bcb9d124e47fa4508185c699d2790b0ee770 [file] [log] [blame]
Sasha Smundak31754eb2019-02-11 14:41:25 -08001// 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 Badour051ef782021-02-12 17:07:05 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_license"],
22}
23
Sasha Smundak31754eb2019-02-11 14:41:25 -080024android_test {
25 name: "FrameworkTestRunnerTests",
26
27 // We only want this apk build for tests.
28 //
29 // Run the tests using the following commands:
30 // adb install -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworkTestRunnerTests/FrameworkTestRunnerTests.apk
31 // adb shell am instrument \
32 // -e notAnnotation android.test.suitebuilder.examples.error.RunAsPartOfSeparateTest \
33 // -w com.android.frameworks.testrunner.tests/android.test.InstrumentationTestRunner \
34 //
35
36 libs: [
Jiyong Parkea4dced2020-06-01 14:56:39 +090037 "android.test.runner.impl",
Sasha Smundak31754eb2019-02-11 14:41:25 -080038 "android.test.base",
39 "android.test.mock",
40 ],
41 static_libs: ["junit"],
42
43 // Include all test java files.
44 srcs: ["src/**/*.java"],
45
46 // Because of android.test.mock.
47 platform_apis: true,
48
49}