Lorenzo Colitti | 6e19ec4 | 2018-02-07 16:30:03 +0900 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 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 | |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 16 | cc_test_library { |
Lorenzo Colitti | 6e19ec4 | 2018-02-07 16:30:03 +0900 | [diff] [blame] | 17 | name: "libnetd_test_tun_interface", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 18 | defaults: ["netd_defaults"], |
Lorenzo Colitti | 6e19ec4 | 2018-02-07 16:30:03 +0900 | [diff] [blame] | 19 | srcs: [ |
| 20 | "tun_interface.cpp" |
| 21 | ], |
Lorenzo Colitti | 54520a0 | 2018-02-09 18:39:16 +0900 | [diff] [blame] | 22 | export_include_dirs: ["."], |
Lorenzo Colitti | 6e19ec4 | 2018-02-07 16:30:03 +0900 | [diff] [blame] | 23 | shared_libs: [ |
| 24 | "libbase", |
| 25 | "libnetutils", |
| 26 | ], |
| 27 | } |
| 28 | |
Luke Huang | 528af60 | 2018-08-29 19:06:05 +0800 | [diff] [blame] | 29 | cc_test_library { |
| 30 | name: "libnetd_test_unsol_service", |
| 31 | defaults: ["netd_defaults"], |
| 32 | srcs: [ |
| 33 | "TestUnsolService.cpp" |
| 34 | ], |
| 35 | include_dirs: [ |
| 36 | "system/netd/include", |
| 37 | ], |
| 38 | shared_libs: [ |
| 39 | "libbase", |
| 40 | "libbinder", |
| 41 | "libcutils", |
| 42 | "liblog", |
| 43 | "libnetutils", |
| 44 | "libsysutils", |
| 45 | "libutils", |
| 46 | "netd_aidl_interface-cpp", |
| 47 | ], |
| 48 | } |
| 49 | |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 50 | cc_test { |
| 51 | name: "netd_integration_test", |
| 52 | test_suites: ["device-tests"], |
| 53 | defaults: ["netd_defaults"], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 54 | srcs: [ |
| 55 | ":netd_integration_test_shared", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 56 | "binder_test.cpp", |
| 57 | "bpf_base_test.cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 58 | "netd_test.cpp", |
Chenbo Feng | 4958664 | 2018-08-30 18:01:53 -0700 | [diff] [blame] | 59 | "netlink_listener_test.cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 60 | ], |
Ken Chen | c68c2de | 2018-11-13 21:51:13 +0800 | [diff] [blame] | 61 | include_dirs: ["system/netd/server"], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 62 | shared_libs: [ |
| 63 | "libbase", |
| 64 | "libbinder", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 65 | "libcrypto", |
| 66 | "libcutils", |
| 67 | "liblog", |
| 68 | "libnetd_client", |
| 69 | "libnetutils", |
Suren Baghdasaryan | e072a3c | 2019-01-16 14:36:07 -0800 | [diff] [blame] | 70 | "libprocessgroup", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 71 | "libssl", |
| 72 | "libutils", |
| 73 | ], |
| 74 | static_libs: [ |
Chenbo Feng | 6616547 | 2018-07-23 19:05:56 -0700 | [diff] [blame] | 75 | "libcap", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 76 | "libnetd_test_tun_interface", |
Luke Huang | 528af60 | 2018-08-29 19:06:05 +0800 | [diff] [blame] | 77 | "libnetd_test_unsol_service", |
Chenbo Feng | a54aaf5 | 2018-11-07 17:51:51 -0800 | [diff] [blame] | 78 | "libbpf_android", |
Chenbo Feng | d6104d1 | 2018-10-16 20:29:29 -0700 | [diff] [blame] | 79 | "libnetdbpf", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 80 | "libnetdutils", |
Hsin-Yi Chen | 4d41169 | 2019-06-11 16:46:25 +0800 | [diff] [blame^] | 81 | "libqtaguid", |
Luke Huang | f778204 | 2018-08-08 13:13:04 +0800 | [diff] [blame] | 82 | "netd_aidl_interface-cpp", |
Lorenzo Colitti | 57bca9f | 2018-12-11 13:02:05 +0900 | [diff] [blame] | 83 | "netd_event_listener_interface-cpp", |
Luke Huang | 0e5e69d | 2019-03-06 15:42:38 +0800 | [diff] [blame] | 84 | "oemnetd_aidl_interface-cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 85 | ], |
| 86 | compile_multilib: "both", |
| 87 | multilib: { |
| 88 | lib32: { |
| 89 | suffix: "32", |
| 90 | }, |
| 91 | lib64: { |
| 92 | suffix: "64", |
| 93 | }, |
| 94 | }, |
Bernie Innocenti | 4eb6ecf | 2018-10-02 19:15:35 +0900 | [diff] [blame] | 95 | sanitize: { |
| 96 | address: true, |
| 97 | recover: [ "all" ], |
| 98 | }, |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 99 | } |