blob: f30e29cd4c0a38f6221d41cff24f3b4adef8b10a [file] [log] [blame]
Selene Huang31ab4042020-04-29 04:22:39 -07001//
2// Copyright (C) 2020 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
Bob Badourb224b362021-02-12 20:13:01 -080017package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
Seth Mooref4c8ff92021-06-25 14:20:15 -070026cc_defaults {
27 name: "keymint_vts_defaults",
Selene Huang31ab4042020-04-29 04:22:39 -070028 defaults: [
David Drysdale49255342021-11-22 14:32:31 +000029 "keymint_use_latest_hal_aidl_ndk_static",
Selene Huang31ab4042020-04-29 04:22:39 -070030 "use_libaidlvintf_gtest_helper_static",
Seth Mooref4c8ff92021-06-25 14:20:15 -070031 "VtsHalTargetTestDefaults",
Selene Huang31ab4042020-04-29 04:22:39 -070032 ],
33 shared_libs: [
David Drysdaleb7d44a22023-01-11 13:27:26 +000034 "libbinder",
Janis Danisevskis24c04702020-12-16 18:28:39 -080035 "libbinder_ndk",
Selene Huang31ab4042020-04-29 04:22:39 -070036 "libcrypto",
David Drysdaleb7d44a22023-01-11 13:27:26 +000037 "packagemanager_aidl-cpp",
Selene Huang31ab4042020-04-29 04:22:39 -070038 ],
39 static_libs: [
Jiyong Park27f77fe2021-07-27 12:16:52 +090040 "android.hardware.security.secureclock-V1-ndk",
Shawn Willden08a7e432020-12-11 13:05:27 +000041 "libcppbor_external",
Max Bires9704ff62021-04-07 11:12:01 -070042 "libcppcose_rkp",
Seth Mooref4c8ff92021-06-25 14:20:15 -070043 "libjsoncpp",
Max Birese857afb2021-05-23 15:06:23 -070044 "libkeymint",
David Drysdale4dc01072021-04-01 12:17:35 +010045 "libkeymint_remote_prov_support",
Max Birese857afb2021-05-23 15:06:23 -070046 "libkeymint_support",
Seth Mooref4c8ff92021-06-25 14:20:15 -070047 ],
48}
49
50cc_test {
51 name: "VtsAidlKeyMintTargetTest",
52 defaults: [
53 "keymint_vts_defaults",
54 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080055 tidy_timeout_srcs: [
56 "KeyMintTest.cpp",
57 ],
Seth Mooref4c8ff92021-06-25 14:20:15 -070058 srcs: [
59 "AttestKeyTest.cpp",
60 "DeviceUniqueAttestationTest.cpp",
61 "KeyMintTest.cpp",
Shawn Willden0cc617c2022-02-11 12:51:53 -070062 "SecureElementProvisioningTest.cpp",
Seth Mooref4c8ff92021-06-25 14:20:15 -070063 ],
64 static_libs: [
Shawn Willden08a7e432020-12-11 13:05:27 +000065 "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070066 ],
67 test_suites: [
68 "general-tests",
69 "vts",
70 ],
71}
72
73cc_test_library {
Shawn Willden08a7e432020-12-11 13:05:27 +000074 name: "libkeymint_vts_test_utils",
Selene Huang31ab4042020-04-29 04:22:39 -070075 defaults: [
Seth Mooref4c8ff92021-06-25 14:20:15 -070076 "keymint_vts_defaults",
Selene Huang31ab4042020-04-29 04:22:39 -070077 ],
Chih-Hung Hsiehad1bf312022-02-17 21:56:13 -080078 tidy_timeout_srcs: [
79 "KeyMintAidlTestBase.cpp",
80 ],
Selene Huang31ab4042020-04-29 04:22:39 -070081 srcs: [
82 "KeyMintAidlTestBase.cpp",
83 ],
84 export_include_dirs: [
85 ".",
86 ],
Seth Moore1bf823c2022-01-25 23:04:37 +000087 export_static_lib_headers: [
88 "libkeymint_support",
89 ],
Selene Huang31ab4042020-04-29 04:22:39 -070090 static_libs: [
David Drysdale4dc01072021-04-01 12:17:35 +010091 "libgmock_ndk",
Shawn Willden274bb552020-09-30 22:39:22 -060092 ],
93}
94
95cc_test {
96 name: "VtsHalRemotelyProvisionedComponentTargetTest",
97 defaults: [
Seth Mooref4c8ff92021-06-25 14:20:15 -070098 "keymint_vts_defaults",
Shawn Willden274bb552020-09-30 22:39:22 -060099 ],
100 srcs: [
101 "VtsRemotelyProvisionedComponentTests.cpp",
102 ],
Shawn Willden274bb552020-09-30 22:39:22 -0600103 static_libs: [
Shawn Willden274bb552020-09-30 22:39:22 -0600104 "libgmock_ndk",
Max Bires9704ff62021-04-07 11:12:01 -0700105 "libkeymaster_portable",
David Drysdalef0d516d2021-03-22 07:51:43 +0000106 "libkeymint_vts_test_utils",
Max Bires9704ff62021-04-07 11:12:01 -0700107 "libpuresoftkeymasterdevice",
Shawn Willden274bb552020-09-30 22:39:22 -0600108 ],
Seth Mooreb9b87ab2021-07-20 15:44:01 -0700109 test_config: "VtsRemotelyProvisionedComponentTests.xml",
Shawn Willden274bb552020-09-30 22:39:22 -0600110 test_suites: [
111 "general-tests",
112 "vts",
Selene Huang31ab4042020-04-29 04:22:39 -0700113 ],
114}