Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 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 | |
Bob Badour | ae667ea | 2022-05-19 09:15:17 -0700 | [diff] [blame] | 15 | package { |
David Drysdale | f7ed95a | 2024-05-08 13:51:45 +0100 | [diff] [blame] | 16 | default_team: "trendy_team_android_hardware_backed_security", |
Bob Badour | ae667ea | 2022-05-19 09:15:17 -0700 | [diff] [blame] | 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 | |
Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 25 | rust_test { |
| 26 | name: "keystore2_client_tests", |
| 27 | defaults: [ |
| 28 | "keymint_use_latest_hal_aidl_rust", |
| 29 | "keystore2_use_latest_aidl_rust", |
| 30 | ], |
Rajesh Nyamagoud | 76311aa | 2024-08-29 22:28:27 +0000 | [diff] [blame] | 31 | static_libs: [ |
| 32 | // Also include static_libs for the NDK variants so that they are available |
| 33 | // for dependencies. |
Karuna Wadhera | 542212b | 2024-11-01 21:23:50 +0000 | [diff] [blame] | 34 | "android.system.keystore2-V5-ndk", |
| 35 | "android.hardware.security.keymint-V4-ndk", |
Rajesh Nyamagoud | 76311aa | 2024-08-29 22:28:27 +0000 | [diff] [blame] | 36 | ], |
Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 37 | srcs: ["keystore2_client_tests.rs"], |
| 38 | test_suites: [ |
Thiago Amanajás | 54a9189 | 2024-11-06 17:05:15 +0000 | [diff] [blame] | 39 | "automotive-sdv-tests", |
Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 40 | "general-tests", |
Tri Vo | 4e6dbef | 2023-10-23 14:48:39 -0400 | [diff] [blame] | 41 | "vts", |
Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 42 | ], |
| 43 | test_config: "AndroidTest.xml", |
| 44 | |
| 45 | rustlibs: [ |
David Drysdale | acd3d98 | 2024-10-04 16:18:16 +0100 | [diff] [blame] | 46 | "android.hardware.gatekeeper-V1-rust", |
James Willcox | d215da8 | 2023-10-03 21:31:31 +0000 | [diff] [blame] | 47 | "android.hardware.security.secureclock-V1-rust", |
| 48 | "android.security.authorization-rust", |
David Drysdale | f7ed95a | 2024-05-08 13:51:45 +0100 | [diff] [blame] | 49 | "android.security.maintenance-rust", |
James Willcox | d215da8 | 2023-10-03 21:31:31 +0000 | [diff] [blame] | 50 | "libaconfig_android_hardware_biometrics_rust", |
David Drysdale | f7ed95a | 2024-05-08 13:51:45 +0100 | [diff] [blame] | 51 | "libandroid_logger", |
| 52 | "libandroid_security_flags_rust", |
David Drysdale | 9f0007e | 2024-10-04 18:58:11 +0100 | [diff] [blame] | 53 | "libanyhow", |
Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 54 | "libbinder_rs", |
David Drysdale | fbf7744 | 2024-12-17 10:03:12 +0000 | [diff] [blame] | 55 | "libbssl_crypto", |
| 56 | "libkeystore_attestation", |
Rajesh Nyamagoud | 10f02e7 | 2023-08-17 22:27:40 +0000 | [diff] [blame] | 57 | "libkeystore2_test_utils", |
David Drysdale | fbf7744 | 2024-12-17 10:03:12 +0000 | [diff] [blame] | 58 | "libhex", |
David Drysdale | f7ed95a | 2024-05-08 13:51:45 +0100 | [diff] [blame] | 59 | "liblog_rust", |
David Drysdale | fbf7744 | 2024-12-17 10:03:12 +0000 | [diff] [blame] | 60 | "libkeystore2_flags_rust", |
Rajesh Nyamagoud | 10f02e7 | 2023-08-17 22:27:40 +0000 | [diff] [blame] | 61 | "libnix", |
Rajesh Nyamagoud | c946cc4 | 2022-04-12 22:49:11 +0000 | [diff] [blame] | 62 | "libopenssl", |
Rajesh Nyamagoud | 10f02e7 | 2023-08-17 22:27:40 +0000 | [diff] [blame] | 63 | "librustutils", |
| 64 | "libserde", |
David Drysdale | fbf7744 | 2024-12-17 10:03:12 +0000 | [diff] [blame] | 65 | "libx509_cert", |
Rajesh Nyamagoud | 10f02e7 | 2023-08-17 22:27:40 +0000 | [diff] [blame] | 66 | "packagemanager_aidl-rust", |
Rajesh Nyamagoud | b881d51 | 2021-12-10 00:33:15 +0000 | [diff] [blame] | 67 | ], |
| 68 | require_root: true, |
| 69 | } |