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 | |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 29 | cc_test { |
| 30 | name: "netd_integration_test", |
| 31 | test_suites: ["device-tests"], |
| 32 | defaults: ["netd_defaults"], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 33 | srcs: [ |
| 34 | ":netd_integration_test_shared", |
| 35 | ":netd_metrics_aidl", |
| 36 | "binder_test.cpp", |
| 37 | "bpf_base_test.cpp", |
| 38 | "dns_responder/dns_responder.cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 39 | "netd_test.cpp", |
Bernie Innocenti | 443489e | 2018-08-10 14:27:23 +0900 | [diff] [blame] | 40 | "resolver_test.cpp", |
Chenbo Feng | 4958664 | 2018-08-30 18:01:53 -0700 | [diff] [blame] | 41 | "netlink_listener_test.cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 42 | ], |
| 43 | include_dirs: [ |
Bernie Innocenti | 189eb50 | 2018-10-01 23:10:18 +0900 | [diff] [blame] | 44 | "system/netd/resolv/include", |
Bernie Innocenti | ee1b85b | 2018-09-25 14:23:19 +0900 | [diff] [blame] | 45 | "system/netd/server", |
| 46 | "system/netd/tests/dns_responder", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 47 | ], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 48 | shared_libs: [ |
| 49 | "libbase", |
| 50 | "libbinder", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 51 | "libcrypto", |
| 52 | "libcutils", |
| 53 | "liblog", |
| 54 | "libnetd_client", |
| 55 | "libnetutils", |
| 56 | "libssl", |
| 57 | "libutils", |
Chenbo Feng | 7b69492 | 2018-10-18 18:56:42 -0700 | [diff] [blame] | 58 | "libqtaguid", |
Luke Huang | caebcbb | 2018-09-27 20:37:14 +0800 | [diff] [blame] | 59 | "netd_aidl_interface-cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 60 | ], |
| 61 | static_libs: [ |
Chenbo Feng | 6616547 | 2018-07-23 19:05:56 -0700 | [diff] [blame] | 62 | "libcap", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 63 | "libnetd_test_dnsresponder", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 64 | "libnetd_test_tun_interface", |
| 65 | "libbpf", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 66 | "liblogwrap", |
| 67 | "libnetdaidl", |
Chenbo Feng | d6104d1 | 2018-10-16 20:29:29 -0700 | [diff] [blame] | 68 | "libnetdbpf", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 69 | "libnetdutils", |
Luke Huang | f778204 | 2018-08-08 13:13:04 +0800 | [diff] [blame^] | 70 | "netd_aidl_interface-cpp", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 71 | ], |
| 72 | compile_multilib: "both", |
| 73 | multilib: { |
| 74 | lib32: { |
| 75 | suffix: "32", |
| 76 | }, |
| 77 | lib64: { |
| 78 | suffix: "64", |
| 79 | }, |
| 80 | }, |
Bernie Innocenti | 4eb6ecf | 2018-10-02 19:15:35 +0900 | [diff] [blame] | 81 | sanitize: { |
| 82 | address: true, |
| 83 | recover: [ "all" ], |
| 84 | }, |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 85 | } |