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 16package { 17 default_team: "trendy_team_fwk_core_networking", 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "system_netd_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["system_netd_license"], 24} 25 26cc_test_library { 27 name: "libnetd_test_tun_interface", 28 defaults: ["netd_defaults"], 29 srcs: [ 30 "tun_interface.cpp", 31 ], 32 export_include_dirs: ["."], 33 shared_libs: [ 34 "libbase", 35 "libnetutils", 36 ], 37} 38 39cc_test_library { 40 name: "libnetd_test_unsol_service", 41 defaults: [ 42 "netd_aidl_interface_lateststable_cpp_shared", 43 "netd_defaults", 44 ], 45 srcs: [ 46 "TestUnsolService.cpp", 47 ], 48 include_dirs: [ 49 "system/netd/include", 50 ], 51 shared_libs: [ 52 "libbase", 53 "libbinder", 54 "libcutils", 55 "liblog", 56 "libnetutils", 57 "libsysutils", 58 "libutils", 59 ], 60} 61 62cc_test_library { 63 name: "libnetd_test_utils", 64 srcs: [ 65 "test_utils.cpp", 66 ], 67 export_include_dirs: ["."], 68 shared_libs: [ 69 "libbase", 70 "libbinder", 71 "libutils", 72 ], 73} 74 75cc_test { 76 name: "netd_integration_test", 77 test_suites: [ 78 "device-tests", 79 "vts", 80 ], 81 isolated: false, 82 require_root: true, 83 defaults: [ 84 "netd_aidl_interface_lateststable_cpp_static", 85 "netd_defaults", 86 ], 87 tidy: false, // cuts test build time by almost 1 minute 88 srcs: [ 89 ":netd_integration_test_shared", 90 "binder_test.cpp", 91 "kernel_test.cpp", 92 "netd_client_test.cpp", 93 "netd_test.cpp", 94 ], 95 include_dirs: ["system/netd/server"], 96 header_libs: ["bpf_headers"], 97 shared_libs: [ 98 "libbase", 99 "libbinder", 100 "libbinder_ndk", 101 "libcrypto", 102 "libcutils", 103 "liblog", 104 "libnetd_client", 105 "libnetutils", 106 "libprocessgroup", 107 "libssl", 108 "libsysutils", 109 "libutils", 110 "libvintf", 111 ], 112 static_libs: [ 113 "libcap", 114 "libnetd_test_tun_interface", 115 "libnetd_test_unsol_service", 116 "libnetd_test_utils", 117 "libnetdutils", 118 "libnettestutils", 119 "libtcutils", 120 "netd_event_listener_interface-V1-cpp", 121 "oemnetd_aidl_interface-cpp", 122 ], 123 compile_multilib: "both", 124 multilib: { 125 lib32: { 126 suffix: "32", 127 }, 128 lib64: { 129 suffix: "64", 130 }, 131 }, 132 sanitize: { 133 address: false, 134 recover: ["all"], 135 }, 136} 137