Bob Badour | b655685 | 2021-02-12 17:45:20 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "system_keymaster_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["system_keymaster_license"], |
| 8 | } |
| 9 | |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 10 | shared_test_libs = [ |
| 11 | "libbase", |
Bram Bonné | 738feea | 2020-09-15 21:17:07 +0200 | [diff] [blame] | 12 | "libcppbor_external", |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 13 | "libcrypto", |
| 14 | "libcutils", |
| 15 | "libhidlbase", |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 16 | "libkeymaster_messages", |
| 17 | "libkeymaster_portable", |
| 18 | "liblog", |
Shawn Willden | 903367c | 2020-12-15 09:48:08 -0700 | [diff] [blame] | 19 | "libsoft_attestation_cert", |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 20 | "libutils", |
| 21 | ] |
| 22 | |
Janis Danisevskis | cccc4ca | 2021-04-12 14:05:05 -0700 | [diff] [blame] | 23 | static_test_libs = [ |
| 24 | "libsoftkeymasterdevice", |
Max Bires | 57c187a | 2021-03-03 16:30:16 -0800 | [diff] [blame] | 25 | "libcppcose_rkp", |
Janis Danisevskis | cccc4ca | 2021-04-12 14:05:05 -0700 | [diff] [blame] | 26 | ] |
| 27 | |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 28 | test_cflags = [ |
Shawn Willden | 903367c | 2020-12-15 09:48:08 -0700 | [diff] [blame] | 29 | "-DKEYMASTER_NAME_TAGS", |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 30 | "-Wall", |
| 31 | "-Werror", |
| 32 | "-Wextra", |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 33 | "-Wunused-variable", |
| 34 | ] |
| 35 | |
| 36 | cc_test { |
| 37 | name: "keymaster_tests", |
| 38 | cflags: test_cflags, |
| 39 | srcs: [ |
| 40 | "gtest_main.cpp", |
| 41 | "keymaster_configuration_test.cpp", |
| 42 | "hmac_test.cpp", |
| 43 | "android_keymaster_test_utils.cpp", |
| 44 | "ckdf_test.cpp", |
| 45 | "hkdf_test.cpp", |
| 46 | "kdf_test.cpp", |
| 47 | "kdf1_test.cpp", |
| 48 | "kdf2_test.cpp", |
| 49 | "ecies_kem_test.cpp", |
| 50 | "nist_curve_key_exchange_test.cpp", |
| 51 | "authorization_set_test.cpp", |
| 52 | "key_blob_test.cpp", |
| 53 | "android_keymaster_messages_test.cpp", |
| 54 | "android_keymaster_test.cpp", |
| 55 | "keymaster_enforcement_test.cpp", |
| 56 | "attestation_record_test.cpp", |
| 57 | "wrapped_key_test.cpp", |
| 58 | ], |
| 59 | shared_libs: shared_test_libs, |
Janis Danisevskis | cccc4ca | 2021-04-12 14:05:05 -0700 | [diff] [blame] | 60 | static_libs: static_test_libs, |
Cindy Zhou | cbb5ecc | 2020-02-07 15:30:29 -0800 | [diff] [blame] | 61 | test_suites: ["general-tests"], |
| 62 | } |