blob: 3ee650eda32d899e8a1ea350a746be97d2a0e9e2 [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",
Bram Bonné738feea2020-09-15 21:17:07 +020012 "libcppbor_external",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080013 "libcrypto",
14 "libcutils",
15 "libhidlbase",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080016 "libkeymaster_messages",
17 "libkeymaster_portable",
18 "liblog",
Shawn Willden903367c2020-12-15 09:48:08 -070019 "libsoft_attestation_cert",
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080020 "libutils",
21]
22
Janis Danisevskiscccc4ca2021-04-12 14:05:05 -070023static_test_libs = [
24 "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,
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 Danisevskiscccc4ca2021-04-12 14:05:05 -070060 static_libs: static_test_libs,
Cindy Zhoucbb5ecc2020-02-07 15:30:29 -080061 test_suites: ["general-tests"],
62}