blob: c84afaeb5f6bf3d947ee9bec4068723d74184d80 [file] [log] [blame]
Shikha Panwara6eaf552023-10-19 16:32:40 +00001/*
2 * Copyright (C) 2023 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 {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +000018 default_team: "trendy_team_virtualization",
Shikha Panwara6eaf552023-10-19 16:32:40 +000019 default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
David Drysdaleb95093d2024-01-11 19:26:57 +000022rust_library {
23 name: "libsecretkeeper_test",
24 crate_name: "secretkeeper_test",
25 srcs: ["lib.rs"],
26 rustlibs: [
27 "libciborium",
28 "libcoset",
29 "libdiced_open_dice",
David Drysdale5f4493d2024-03-14 10:14:07 +000030 "libhex",
David Drysdaleb95093d2024-01-11 19:26:57 +000031 "liblog_rust",
32 "libsecretkeeper_client",
33 ],
34}
35
Shikha Panwara6eaf552023-10-19 16:32:40 +000036rust_test {
37 name: "VtsSecretkeeperTargetTest",
38 srcs: ["secretkeeper_test_client.rs"],
David Drysdale099c8762023-12-20 17:19:19 +000039 defaults: [
40 "rdroidtest.defaults",
Matt Gilbridec8232332024-11-13 12:24:36 +000041 "secretkeeper_use_latest_hal_aidl_rust",
David Drysdale099c8762023-12-20 17:19:19 +000042 ],
Shikha Panwara6eaf552023-10-19 16:32:40 +000043 test_suites: [
44 "general-tests",
45 "vts",
46 ],
David Drysdale38174302023-12-13 10:50:03 +000047 test_config: "AndroidTest.xml",
Shikha Panwara6eaf552023-10-19 16:32:40 +000048 rustlibs: [
David Drysdalebef8d3a2023-11-27 14:08:42 +000049 "libauthgraph_boringssl",
David Drysdale8898d2e2023-11-07 15:20:15 +000050 "libauthgraph_core",
Shikha Panwar0d286b32024-02-22 15:50:29 +000051 "libauthgraph_wire",
David Drysdale8898d2e2023-11-07 15:20:15 +000052 "libauthgraph_vts_test",
Shikha Panwara6eaf552023-10-19 16:32:40 +000053 "libbinder_rs",
Shikha Panwar7c53bb32024-01-03 17:58:11 +000054 "libciborium",
Shikha Panwarcbad9a32023-11-28 11:19:59 +000055 "libcoset",
Shikha Panwar9eab79b2024-01-19 11:05:11 +000056 "libdice_policy_builder",
Shikha Panwara6eaf552023-10-19 16:32:40 +000057 "liblog_rust",
David Drysdaleb95093d2024-01-11 19:26:57 +000058 "libsecretkeeper_client",
59 "libsecretkeeper_comm_nostd",
60 "libsecretkeeper_core_nostd",
61 "libsecretkeeper_test",
Shikha Panwara6eaf552023-10-19 16:32:40 +000062 ],
63 require_root: true,
64}
David Drysdaleb95093d2024-01-11 19:26:57 +000065
66rust_binary {
67 name: "secretkeeper_cli",
68 srcs: ["secretkeeper_cli.rs"],
Matt Gilbridec8232332024-11-13 12:24:36 +000069 defaults: ["secretkeeper_use_latest_hal_aidl_rust"],
David Drysdaleb95093d2024-01-11 19:26:57 +000070 lints: "android",
Matt Gilbridec8232332024-11-13 12:24:36 +000071 prefer_rlib: true,
72 rustlibs: [
David Drysdaleb95093d2024-01-11 19:26:57 +000073 "libanyhow",
74 "libauthgraph_boringssl",
75 "libauthgraph_core",
76 "libbinder_rs",
77 "libclap",
78 "libcoset",
Shikha Panwar9eab79b2024-01-19 11:05:11 +000079 "libdice_policy_builder",
David Drysdaleb95093d2024-01-11 19:26:57 +000080 "libhex",
81 "liblog_rust",
82 "libsecretkeeper_client",
83 "libsecretkeeper_comm_nostd",
84 "libsecretkeeper_test",
85 ],
86}