blob: 59957675f15d19d115095c136beb7e20e364b3f0 [file] [log] [blame]
Lorenzo Colitti6e19ec42018-02-07 16:30:03 +09001//
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 Innocenti37ceb532018-06-11 21:10:44 +090016cc_test_library {
Lorenzo Colitti6e19ec42018-02-07 16:30:03 +090017 name: "libnetd_test_tun_interface",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090018 defaults: ["netd_defaults"],
Lorenzo Colitti6e19ec42018-02-07 16:30:03 +090019 srcs: [
20 "tun_interface.cpp"
21 ],
Lorenzo Colitti54520a02018-02-09 18:39:16 +090022 export_include_dirs: ["."],
Lorenzo Colitti6e19ec42018-02-07 16:30:03 +090023 shared_libs: [
24 "libbase",
25 "libnetutils",
26 ],
27}
28
Bernie Innocenti37ceb532018-06-11 21:10:44 +090029cc_test {
30 name: "netd_integration_test",
31 test_suites: ["device-tests"],
32 defaults: ["netd_defaults"],
Bernie Innocenti37ceb532018-06-11 21:10:44 +090033 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",
39 "dns_tls_test.cpp",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090040 "netd_test.cpp",
Bernie Innocenti443489e2018-08-10 14:27:23 +090041 "resolver_test.cpp",
Chenbo Feng49586642018-08-30 18:01:53 -070042 "netlink_listener_test.cpp",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090043 ],
44 include_dirs: [
Bernie Innocenti189eb502018-10-01 23:10:18 +090045 "system/netd/resolv/include",
Bernie Innocentiee1b85b2018-09-25 14:23:19 +090046 "system/netd/server",
47 "system/netd/tests/dns_responder",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090048 ],
Bernie Innocenti37ceb532018-06-11 21:10:44 +090049 shared_libs: [
50 "libbase",
51 "libbinder",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090052 "libcrypto",
53 "libcutils",
54 "liblog",
55 "libnetd_client",
56 "libnetutils",
57 "libssl",
58 "libutils",
Chenbo Feng49586642018-08-30 18:01:53 -070059 "libqtaguid",
Luke Huangcaebcbb2018-09-27 20:37:14 +080060 "netd_aidl_interface-cpp",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090061 ],
62 static_libs: [
Chenbo Feng66165472018-07-23 19:05:56 -070063 "libcap",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090064 "libnetd_test_dnsresponder",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090065 "libnetd_test_tun_interface",
66 "libbpf",
Bernie Innocenti98951792018-06-26 17:13:44 +090067 "liblogwrap",
68 "libnetdaidl",
Chenbo Fengd6104d12018-10-16 20:29:29 -070069 "libnetdbpf",
Bernie Innocenti98951792018-06-26 17:13:44 +090070 "libnetddns",
71 "libnetdutils",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090072 ],
73 compile_multilib: "both",
74 multilib: {
75 lib32: {
76 suffix: "32",
77 },
78 lib64: {
79 suffix: "64",
80 },
81 },
Bernie Innocenti4eb6ecf2018-10-02 19:15:35 +090082 sanitize: {
83 address: true,
84 recover: [ "all" ],
85 },
Bernie Innocenti37ceb532018-06-11 21:10:44 +090086}