xref: /aosp_15_r20/art/test/odsign/Android.bp (revision 795d594fd825385562da6b089ea9b2033f3abf5a)
1*795d594fSAndroid Build Coastguard Worker// Copyright (C) 2021 The Android Open Source Project
2*795d594fSAndroid Build Coastguard Worker//
3*795d594fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*795d594fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*795d594fSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*795d594fSAndroid Build Coastguard Worker//
7*795d594fSAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*795d594fSAndroid Build Coastguard Worker//
9*795d594fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*795d594fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*795d594fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*795d594fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*795d594fSAndroid Build Coastguard Worker// limitations under the License.
14*795d594fSAndroid Build Coastguard Worker
15*795d594fSAndroid Build Coastguard Workerpackage {
16*795d594fSAndroid Build Coastguard Worker    default_applicable_licenses: ["art_license"],
17*795d594fSAndroid Build Coastguard Worker    default_team: "trendy_team_art_mainline",
18*795d594fSAndroid Build Coastguard Worker}
19*795d594fSAndroid Build Coastguard Worker
20*795d594fSAndroid Build Coastguard Workerjava_defaults {
21*795d594fSAndroid Build Coastguard Worker    name: "odsign_e2e_tests_defaults",
22*795d594fSAndroid Build Coastguard Worker    srcs: ["test-src/**/*.java"],
23*795d594fSAndroid Build Coastguard Worker    libs: ["tradefed"],
24*795d594fSAndroid Build Coastguard Worker    static_libs: [
25*795d594fSAndroid Build Coastguard Worker        "cts-install-lib-host",
26*795d594fSAndroid Build Coastguard Worker        "frameworks-base-hostutils",
27*795d594fSAndroid Build Coastguard Worker    ],
28*795d594fSAndroid Build Coastguard Worker}
29*795d594fSAndroid Build Coastguard Worker
30*795d594fSAndroid Build Coastguard Workerjava_test_host {
31*795d594fSAndroid Build Coastguard Worker    name: "odsign_e2e_tests",
32*795d594fSAndroid Build Coastguard Worker    defaults: ["odsign_e2e_tests_defaults"],
33*795d594fSAndroid Build Coastguard Worker    // TODO(b/228838581): Do not add `data` to the defaults unless the bug is
34*795d594fSAndroid Build Coastguard Worker    // fixed.
35*795d594fSAndroid Build Coastguard Worker    device_common_data: [
36*795d594fSAndroid Build Coastguard Worker        ":odsign_e2e_test_app",
37*795d594fSAndroid Build Coastguard Worker    ],
38*795d594fSAndroid Build Coastguard Worker    test_config: "odsign-e2e-tests.xml",
39*795d594fSAndroid Build Coastguard Worker    test_suites: [
40*795d594fSAndroid Build Coastguard Worker        "general-tests",
41*795d594fSAndroid Build Coastguard Worker        "cts",
42*795d594fSAndroid Build Coastguard Worker    ],
43*795d594fSAndroid Build Coastguard Worker}
44*795d594fSAndroid Build Coastguard Worker
45*795d594fSAndroid Build Coastguard Workerjava_test_host {
46*795d594fSAndroid Build Coastguard Worker    name: "odsign_e2e_tests_full",
47*795d594fSAndroid Build Coastguard Worker    defaults: ["odsign_e2e_tests_defaults"],
48*795d594fSAndroid Build Coastguard Worker    // TODO(b/228838581): Do not add `data` to the defaults unless the bug is
49*795d594fSAndroid Build Coastguard Worker    // fixed.
50*795d594fSAndroid Build Coastguard Worker    device_common_data: [
51*795d594fSAndroid Build Coastguard Worker        ":odsign_e2e_test_app",
52*795d594fSAndroid Build Coastguard Worker    ],
53*795d594fSAndroid Build Coastguard Worker    device_common_java_resources: [
54*795d594fSAndroid Build Coastguard Worker        ":art-gtest-jars-Main",
55*795d594fSAndroid Build Coastguard Worker    ],
56*795d594fSAndroid Build Coastguard Worker    test_config: "odsign-e2e-tests-full.xml",
57*795d594fSAndroid Build Coastguard Worker    test_suites: [
58*795d594fSAndroid Build Coastguard Worker        "general-tests",
59*795d594fSAndroid Build Coastguard Worker    ],
60*795d594fSAndroid Build Coastguard Worker}
61*795d594fSAndroid Build Coastguard Worker
62*795d594fSAndroid Build Coastguard Workercc_library_shared {
63*795d594fSAndroid Build Coastguard Worker    name: "libOdsignTestAppJni",
64*795d594fSAndroid Build Coastguard Worker    defaults: ["art_defaults"],
65*795d594fSAndroid Build Coastguard Worker    srcs: ["jni/**/*.cc"],
66*795d594fSAndroid Build Coastguard Worker    shared_libs: [
67*795d594fSAndroid Build Coastguard Worker        "libnativehelper_compat_libc++",
68*795d594fSAndroid Build Coastguard Worker        "liblog",
69*795d594fSAndroid Build Coastguard Worker    ],
70*795d594fSAndroid Build Coastguard Worker    static_libs: [
71*795d594fSAndroid Build Coastguard Worker        "libbase_ndk",
72*795d594fSAndroid Build Coastguard Worker    ],
73*795d594fSAndroid Build Coastguard Worker    stl: "c++_static",
74*795d594fSAndroid Build Coastguard Worker    sdk_version: "current",
75*795d594fSAndroid Build Coastguard Worker}
76*795d594fSAndroid Build Coastguard Worker
77*795d594fSAndroid Build Coastguard Workerandroid_test_helper_app {
78*795d594fSAndroid Build Coastguard Worker    name: "odsign_e2e_test_app",
79*795d594fSAndroid Build Coastguard Worker    manifest: "AndroidManifest.xml",
80*795d594fSAndroid Build Coastguard Worker    srcs: ["src/**/*.java"],
81*795d594fSAndroid Build Coastguard Worker    jni_libs: [
82*795d594fSAndroid Build Coastguard Worker        "libOdsignTestAppJni",
83*795d594fSAndroid Build Coastguard Worker    ],
84*795d594fSAndroid Build Coastguard Worker    compile_multilib: "both",
85*795d594fSAndroid Build Coastguard Worker    libs: [
86*795d594fSAndroid Build Coastguard Worker        "junit",
87*795d594fSAndroid Build Coastguard Worker    ],
88*795d594fSAndroid Build Coastguard Worker    static_libs: [
89*795d594fSAndroid Build Coastguard Worker        "androidx.test.ext.truth",
90*795d594fSAndroid Build Coastguard Worker        "androidx.test.runner",
91*795d594fSAndroid Build Coastguard Worker        "ctstestrunner-axt",
92*795d594fSAndroid Build Coastguard Worker    ],
93*795d594fSAndroid Build Coastguard Worker    sdk_version: "system_current",
94*795d594fSAndroid Build Coastguard Worker    min_sdk_version: "30",
95*795d594fSAndroid Build Coastguard Worker}
96