• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2019 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_defaults {
22    name: "vts_security_avb_defaults",
23    srcs: [
24        "gsi_validation_utils.cpp",
25    ],
26    static_libs: [
27        "libavb_user",
28        "libavb",
29        "libbase",
30        "libcrypto_static",
31        "libfs_avb",
32        "libfs_mgr",
33        "liblog",
34    ],
35    header_libs: [
36        "libstorage_literals_headers",
37    ],
38    data: [
39        ":q-gsi_avbpubkey",
40        ":r-gsi_avbpubkey",
41        ":s-gsi_avbpubkey",
42        ":t-gsi_avbpubkey",
43        ":qcar-gsi_avbpubkey",
44    ],
45    cflags: [
46        "-Wall",
47        "-Werror",
48    ],
49}
50
51cc_test {
52    name: "vts_security_avb_test",
53    defaults: ["vts_security_avb_defaults"],
54    srcs: [
55        "VtsSecurityAvbTest.cpp",
56    ],
57    test_config: "vts_security_avb_test.xml",
58    test_suites: [
59        "device-tests",
60        "vts",
61    ],
62}
63
64cc_test {
65    name: "vts_gki_compliance_test",
66    defaults: [
67        "vts_security_avb_defaults",
68        "libvintf_static_user_defaults",
69    ],
70    srcs: [
71        "vts_gki_compliance_test.cpp",
72        "kernel_version_test.cpp",
73        "kernel_version_matrix.proto",
74    ],
75    static_libs: [
76        "libgmock",
77        "libkver",
78        "libvintf",
79        "libvts_vintf_test_common",
80    ],
81    proto: {
82        type: "full",
83    },
84    header_libs: [
85        "bootimg_headers",
86    ],
87    test_suites: [
88        "device-tests",
89        "vts",
90    ],
91    data: [
92        ":kernel_version_matrix.textproto",
93    ],
94
95    require_root: true,
96}
97