blob: bddc08abd0ce03f92607d2b8c00bc9afa27e24d5 [file] [log] [blame]
Allen Webb1c204802017-09-28 15:08:40 -07001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17subdirs = [
18 "tools",
19]
20
21cc_binary {
Allen Webbca5e7f92018-02-07 10:04:28 -080022 name: "citadel_integration_tests",
Allen Webb1c204802017-09-28 15:08:40 -070023 defaults: [
Andrew Scull18fd41f2018-01-17 12:00:24 +000024 "nos_cc_hw_defaults",
Allen Webb1c204802017-09-28 15:08:40 -070025 ],
nagendra modadugud6d7cfb2018-03-29 15:17:51 -070026 cflags: [
27 "-Wno-c99-extensions",
28 "-Wno-gnu-anonymous-struct",
29 "-Wno-nested-anon-types",
30 ],
Allen Webb1c204802017-09-28 15:08:40 -070031 srcs: [
nagendra modadugu64e94ff2018-03-30 15:40:13 -070032// AVB tests only run from the host.
33// "src/avb_tests.cc",
Allen Webbe16b1e02017-11-20 10:29:43 -080034 "src/aes-cmac-tests.cc",
Allen Webb1c204802017-09-28 15:08:40 -070035 "src/gtest_with_gflags_main.cc",
Allen Webbe16b1e02017-11-20 10:29:43 -080036 "src/keymaster-import-key-tests.cc",
Allen Webb9ca886e2018-01-22 15:13:47 -080037 "src/keymaster-import-wrapped-key-tests.cc",
nagendra modadugu64e94ff2018-03-30 15:40:13 -070038// TODO: add provision tests once production-bit can be reliably reset.
39// "src/keymaster-provision-tests.cc",
Allen Webb1c204802017-09-28 15:08:40 -070040 "src/nugget_core_tests.cc",
41 "src/runtests.cc",
Allen Webbebfe9d02017-10-18 10:09:42 -070042 "src/test-data/test-keys/rsa.cc",
Allen Webb1c204802017-09-28 15:08:40 -070043 "src/util.cc",
44 "src/weaver_tests.cc",
45 ],
Allen Webbebfe9d02017-10-18 10:09:42 -070046 include_dirs: ["."],
Allen Webb1c204802017-09-28 15:08:40 -070047 header_libs: [
48 "nos_headers",
49 ],
50 static_libs: [
51 "libgmock",
52 "libgtest",
Allen Webb1c204802017-09-28 15:08:40 -070053 ],
54 shared_libs: [
55 "libcrypto",
56 "libnos",
57 "libnos_client_citadel",
58 "libnosprotos",
59 "libprotobuf-cpp-full",
60 "libssl",
nagendra modadugud6d7cfb2018-03-29 15:17:51 -070061 "nos_app_avb",
Allen Webb1c204802017-09-28 15:08:40 -070062 "nos_app_keymaster",
63 "nos_app_weaver",
Allen Webb5c2dda62017-11-21 16:18:27 -080064 "nugget_tools",
Allen Webb1c204802017-09-28 15:08:40 -070065 ],
66}
Allen Webb43925332017-12-08 09:27:18 -080067
68cc_binary {
69 name: "stress_test",
70 defaults: [
Andrew Scull18fd41f2018-01-17 12:00:24 +000071 "nos_cc_hw_defaults",
Allen Webb43925332017-12-08 09:27:18 -080072 ],
73 srcs: [
74 "src/stress_test.cc",
75 "src/util.cc",
76 ],
77 include_dirs: ["."],
78 header_libs: [
79 "nos_headers",
80 ],
81 static_libs: [
82 "libgmock",
83 "libgtest",
84 ],
85 shared_libs: [
86 "libnos",
87 "libnos_client_citadel",
88 "libnosprotos",
89 "nugget_tools",
90 "libprotobuf-cpp-full",
91 ],
92}