blob: d5ea46b2d575d40f71103a7b5372e587bb072953 [file] [log] [blame]
Bob Badourb6556852021-02-12 17:45:20 -08001package {
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 Zhoucbb5ecc2020-02-07 15:30:29 -080010shared_test_libs = [
11 "libbase",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080012 "libcrypto",
13 "libcutils",
14 "libhidlbase",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080015 "libkeymaster_messages",
16 "libkeymaster_portable",
17 "liblog",
Shawn Willden903367c2020-12-15 09:48:08 -070018 "libsoft_attestation_cert",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080019 "libutils",
20]
21
Janis Danisevskiscccc4ca2021-04-12 14:05:05 -070022static_test_libs = [
Max Bires5569b042022-03-22 23:43:41 -070023 "libcppbor_external",
Jim Blackler4515a7f2021-10-11 13:38:59 +000024 "libsoftkeymasterdevice",
Max Bires57c187a2021-03-03 16:30:16 -080025 "libcppcose_rkp",
Janis Danisevskiscccc4ca2021-04-12 14:05:05 -070026]
27
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080028test_cflags = [
Shawn Willden903367c2020-12-15 09:48:08 -070029 "-DKEYMASTER_NAME_TAGS",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080030 "-Wall",
31 "-Werror",
32 "-Wextra",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080033 "-Wunused-variable",
34]
35
36cc_test {
37 name: "keymaster_tests",
38 cflags: test_cflags,
Chih-Hung Hsiehadb67ec2022-02-17 17:25:47 -080039 tidy_timeout_srcs: [
40 "android_keymaster_messages_test.cpp",
41 "authorization_set_test.cpp",
42 ],
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080043 srcs: [
44 "gtest_main.cpp",
45 "keymaster_configuration_test.cpp",
46 "hmac_test.cpp",
47 "android_keymaster_test_utils.cpp",
48 "ckdf_test.cpp",
49 "hkdf_test.cpp",
50 "kdf_test.cpp",
51 "kdf1_test.cpp",
52 "kdf2_test.cpp",
53 "ecies_kem_test.cpp",
54 "nist_curve_key_exchange_test.cpp",
55 "authorization_set_test.cpp",
56 "key_blob_test.cpp",
57 "android_keymaster_messages_test.cpp",
Jim Blackler4515a7f2021-10-11 13:38:59 +000058 "keymaster_enforcement_test.cpp",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080059 "attestation_record_test.cpp",
60 "wrapped_key_test.cpp",
61 ],
62 shared_libs: shared_test_libs,
Janis Danisevskiscccc4ca2021-04-12 14:05:05 -070063 static_libs: static_test_libs,
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080064 test_suites: ["general-tests"],
65}