blob: 9344073bb5cef60c74497701b9aa16cc3e9a9e4d [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",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090035 "binder_test.cpp",
36 "bpf_base_test.cpp",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090037 "netd_test.cpp",
Chenbo Feng49586642018-08-30 18:01:53 -070038 "netlink_listener_test.cpp",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090039 ],
Ken Chenc68c2de2018-11-13 21:51:13 +080040 include_dirs: ["system/netd/server"],
Bernie Innocenti37ceb532018-06-11 21:10:44 +090041 shared_libs: [
42 "libbase",
43 "libbinder",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090044 "libcrypto",
45 "libcutils",
46 "liblog",
47 "libnetd_client",
48 "libnetutils",
49 "libssl",
50 "libutils",
Chenbo Feng7b694922018-10-18 18:56:42 -070051 "libqtaguid",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090052 ],
53 static_libs: [
Chenbo Feng66165472018-07-23 19:05:56 -070054 "libcap",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090055 "libnetd_test_tun_interface",
Chenbo Fenga54aaf52018-11-07 17:51:51 -080056 "libbpf_android",
Bernie Innocenti98951792018-06-26 17:13:44 +090057 "liblogwrap",
Chenbo Fengd6104d12018-10-16 20:29:29 -070058 "libnetdbpf",
Bernie Innocenti98951792018-06-26 17:13:44 +090059 "libnetdutils",
Luke Huangf7782042018-08-08 13:13:04 +080060 "netd_aidl_interface-cpp",
Lorenzo Colitti57bca9f2018-12-11 13:02:05 +090061 "netd_event_listener_interface-cpp",
Bernie Innocenti37ceb532018-06-11 21:10:44 +090062 ],
63 compile_multilib: "both",
64 multilib: {
65 lib32: {
66 suffix: "32",
67 },
68 lib64: {
69 suffix: "64",
70 },
71 },
Bernie Innocenti4eb6ecf2018-10-02 19:15:35 +090072 sanitize: {
73 address: true,
74 recover: [ "all" ],
75 },
Bernie Innocenti37ceb532018-06-11 21:10:44 +090076}