1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/test.gni") 15import("../../../../dsoftbus.gni") 16 17module_output_path = "dsoftbus/transmission" 18dsoftbus_root_path = "../../../.." 19 20ohos_executable("softbus_test_server") { 21 sanitize = { 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 branch_protector_ret = "pac_ret" 27 28 sources = [ "test_server.cpp" ] 29 30 external_deps = [ "dsoftbus:softbus_client" ] 31 32 part_name = "dsoftbus" 33 subsystem_name = "communication" 34} 35 36ohos_unittest("DeviceManagerTest") { 37 module_out_path = module_output_path 38 sources = [ "device_manager_test.cpp" ] 39 40 include_dirs = [ 41 "$dsoftbus_root_path/core/common/include", 42 "$dsoftbus_root_path/interfaces/kits/bus_center", 43 "$dsoftbus_root_path/interfaces/kits/common", 44 "unittest/common/", 45 "$dsoftbus_root_path/adapter/common/include", 46 ] 47 48 deps = [ "$dsoftbus_root_path/tests/sdk:softbus_client_static" ] 49 50 if (is_standard_system) { 51 external_deps = [ 52 "c_utils:utils", 53 "hilog:libhilog", 54 ] 55 } else { 56 external_deps = [ 57 "bounds_checking_function:libsec_static", 58 "c_utils:utils", 59 "hilog:libhilog", 60 ] 61 } 62} 63 64group("integration_test") { 65 testonly = true 66 deps = [ 67 ":DeviceManagerTest", 68 ":softbus_test_server", 69 ] 70} 71