Debian Codegraph @

tests/StagedInstallTest/Android.bp

raw
1 // Copyright (C) 2020 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
15 package {
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
24 android_test_helper_app {
25 name: "StagedInstallInternalTestApp",
26 manifest: "app/AndroidManifest.xml",
27 srcs: ["app/src/**/*.java"],
28 static_libs: [
29 "androidx.test.rules",
30 "cts-install-lib",
31 ],
32 test_suites: ["general-tests"],
33 java_resources: [
34 ":apex.apexd_test_classpath",
35 ":com.android.apex.apkrollback.test_v2",
36 ":StagedInstallTestApexV2",
37 ":StagedInstallTestApexV2_WrongSha",
38 ":test.rebootless_apex_v1",
39 ":test.rebootless_apex_v2",
40 ],
41 platform_apis: true,
42 }
43
44 java_test_host {
45 name: "StagedInstallInternalTest",
46 srcs: ["src/**/*.java"],
47 libs: [
48 "tradefed",
49 "cts-shim-host-lib",
50 ],
51 static_libs: [
52 "testng",
53 "compatibility-tradefed",
54 "frameworks-base-hostutils",
55 "cts-install-lib-host",
56 ],
57 data: [
58 ":StagedInstallInternalTestApp",
59 ":apex.apexd_test",
60 ":com.android.apex.apkrollback.test_v1",
61 ":StagedInstallTestApexV2",
62 ":StagedInstallTestApexV2_WrongSha",
63 ":TestAppAv1",
64 ":test.rebootless_apex_v1",
65 ":test.rebootless_apex_v2",
66 ":test_com.android.server",
67 ],
68 test_suites: ["general-tests"],
69 test_config: "StagedInstallInternalTest.xml",
70 }