1// Copyright (C) 2021 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
15package {
16    default_applicable_licenses: ["art_license"],
17}
18
19java_test_host {
20    name: "odsign_e2e_tests",
21    defaults: ["art_module_source_build_java_defaults"],
22    srcs: ["test-src/**/*.java"],
23    libs: ["tradefed"],
24    static_libs: [
25        "cts-install-lib-host",
26        "frameworks-base-hostutils",
27    ],
28    data: [
29        ":test_com.android.art",
30        ":odsign_e2e_test_app",
31    ],
32    test_config: "odsign-e2e-tests.xml",
33    test_suites: ["device-tests"],
34}
35
36cc_library_shared {
37    name: "libOdsignTestAppJni",
38    srcs: ["jni/**/*.cc"],
39    shared_libs: [
40        "libnativehelper_compat_libc++",
41        "liblog",
42    ],
43    static_libs: [
44        "libbase_ndk",
45    ],
46    cflags: [
47        "-Wall",
48        "-Werror",
49    ],
50    stl: "c++_static",
51    sdk_version: "current",
52}
53
54android_test_helper_app {
55    name: "odsign_e2e_test_app",
56    manifest: "AndroidManifest.xml",
57    srcs: ["src/**/*.java"],
58    jni_libs: [
59        "libOdsignTestAppJni",
60    ],
61    compile_multilib: "both",
62    libs: [
63        "junit",
64    ],
65    static_libs: [
66        "androidx.test.runner",
67        "ctstestrunner-axt",
68    ],
69    sdk_version: "system_current",
70    min_sdk_version: "30",
71}
72