Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | subdirs = [ |
| 18 | "tools", |
| 19 | ] |
| 20 | |
| 21 | cc_binary { |
Allen Webb | ca5e7f9 | 2018-02-07 10:04:28 -0800 | [diff] [blame] | 22 | name: "citadel_integration_tests", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 23 | defaults: [ |
Andrew Scull | 18fd41f | 2018-01-17 12:00:24 +0000 | [diff] [blame] | 24 | "nos_cc_hw_defaults", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 25 | ], |
nagendra modadugu | d6d7cfb | 2018-03-29 15:17:51 -0700 | [diff] [blame] | 26 | cflags: [ |
| 27 | "-Wno-c99-extensions", |
| 28 | "-Wno-gnu-anonymous-struct", |
| 29 | "-Wno-nested-anon-types", |
| 30 | ], |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 31 | srcs: [ |
nagendra modadugu | 64e94ff | 2018-03-30 15:40:13 -0700 | [diff] [blame] | 32 | // AVB tests only run from the host. |
| 33 | // "src/avb_tests.cc", |
Allen Webb | e16b1e0 | 2017-11-20 10:29:43 -0800 | [diff] [blame] | 34 | "src/aes-cmac-tests.cc", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 35 | "src/gtest_with_gflags_main.cc", |
Allen Webb | e16b1e0 | 2017-11-20 10:29:43 -0800 | [diff] [blame] | 36 | "src/keymaster-import-key-tests.cc", |
Allen Webb | 9ca886e | 2018-01-22 15:13:47 -0800 | [diff] [blame] | 37 | "src/keymaster-import-wrapped-key-tests.cc", |
nagendra modadugu | 64e94ff | 2018-03-30 15:40:13 -0700 | [diff] [blame] | 38 | // TODO: add provision tests once production-bit can be reliably reset. |
| 39 | // "src/keymaster-provision-tests.cc", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 40 | "src/nugget_core_tests.cc", |
| 41 | "src/runtests.cc", |
Allen Webb | ebfe9d0 | 2017-10-18 10:09:42 -0700 | [diff] [blame] | 42 | "src/test-data/test-keys/rsa.cc", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 43 | "src/util.cc", |
| 44 | "src/weaver_tests.cc", |
| 45 | ], |
Allen Webb | ebfe9d0 | 2017-10-18 10:09:42 -0700 | [diff] [blame] | 46 | include_dirs: ["."], |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 47 | header_libs: [ |
| 48 | "nos_headers", |
| 49 | ], |
| 50 | static_libs: [ |
| 51 | "libgmock", |
| 52 | "libgtest", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 53 | ], |
| 54 | shared_libs: [ |
| 55 | "libcrypto", |
| 56 | "libnos", |
| 57 | "libnos_client_citadel", |
| 58 | "libnosprotos", |
| 59 | "libprotobuf-cpp-full", |
| 60 | "libssl", |
nagendra modadugu | d6d7cfb | 2018-03-29 15:17:51 -0700 | [diff] [blame] | 61 | "nos_app_avb", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 62 | "nos_app_keymaster", |
| 63 | "nos_app_weaver", |
Allen Webb | 5c2dda6 | 2017-11-21 16:18:27 -0800 | [diff] [blame] | 64 | "nugget_tools", |
Allen Webb | 1c20480 | 2017-09-28 15:08:40 -0700 | [diff] [blame] | 65 | ], |
| 66 | } |
Allen Webb | 4392533 | 2017-12-08 09:27:18 -0800 | [diff] [blame] | 67 | |
| 68 | cc_binary { |
| 69 | name: "stress_test", |
| 70 | defaults: [ |
Andrew Scull | 18fd41f | 2018-01-17 12:00:24 +0000 | [diff] [blame] | 71 | "nos_cc_hw_defaults", |
Allen Webb | 4392533 | 2017-12-08 09:27:18 -0800 | [diff] [blame] | 72 | ], |
| 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 | } |