blob: f920aec0b538748769b5297f06bdd9c045026624 [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"],
33 cflags: [
34 "-Wunused-parameter",
35 ],
36 srcs: [
37 ":netd_integration_test_shared",
38 ":netd_metrics_aidl",
39 "binder_test.cpp",
40 "bpf_base_test.cpp",
41 "dns_responder/dns_responder.cpp",
42 "dns_tls_test.cpp",
43 "netd_integration_test.cpp",
44 "netd_test.cpp",
45 ],
46 include_dirs: [
47 "system/netd/include",
48 "system/netd/server",
49 "system/core/logwrapper/include",
50 "system/netd/tests/dns_responder",
51 "system/core/libnetutils/include",
52 "bionic/libc/dns/include",
53 ],
54 aidl: {
55 include_dirs: [
56 "system/netd/server/binder",
57 ],
58 },
59 shared_libs: [
60 "libbase",
61 "libbinder",
62 "libbpf",
63 "libcrypto",
64 "libcutils",
65 "liblog",
66 "libnetd_client",
67 "libnetutils",
68 "libssl",
69 "libutils",
70 ],
71 static_libs: [
72 "libnetd_test_dnsresponder",
73 "libnetddns",
74 "liblogwrap",
75 "libnetdaidl",
76 "libnetdutils",
77 "libnetd_test_tun_interface",
78 "libbpf",
79 ],
80 compile_multilib: "both",
81 multilib: {
82 lib32: {
83 suffix: "32",
84 },
85 lib64: {
86 suffix: "64",
87 },
88 },
89}