xref: /aosp_15_r20/system/security/keystore2/tests/Android.bp (revision e1997b9af69e3155ead6e072d106a0077849ffba)
1// Copyright 2022, 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_team: "trendy_team_android_hardware_backed_security",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "system_security_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["system_security_license"],
23}
24
25rust_test {
26    name: "keystore2_client_tests",
27    defaults: [
28        "keymint_use_latest_hal_aidl_rust",
29        "keystore2_use_latest_aidl_rust",
30    ],
31    static_libs: [
32        // Also include static_libs for the NDK variants so that they are available
33        // for dependencies.
34        "android.system.keystore2-V5-ndk",
35        "android.hardware.security.keymint-V4-ndk",
36    ],
37    srcs: ["keystore2_client_tests.rs"],
38    test_suites: [
39        "automotive-sdv-tests",
40        "general-tests",
41        "vts",
42    ],
43    test_config: "AndroidTest.xml",
44
45    rustlibs: [
46        "android.hardware.gatekeeper-V1-rust",
47        "android.hardware.security.secureclock-V1-rust",
48        "android.security.authorization-rust",
49        "android.security.maintenance-rust",
50        "libaconfig_android_hardware_biometrics_rust",
51        "libandroid_logger",
52        "libandroid_security_flags_rust",
53        "libanyhow",
54        "libbinder_rs",
55        "libkeystore2_test_utils",
56        "liblog_rust",
57        "libnix",
58        "libopenssl",
59        "librustutils",
60        "libserde",
61        "packagemanager_aidl-rust",
62    ],
63    require_root: true,
64}
65