• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "//commonlibrary/c_utils/base/include",
45    "//third_party/bounds_checking_function/include",
46    "unittest/common/",
47    "$dsoftbus_root_path/adapter/common/include",
48  ]
49
50  deps = [
51    "$dsoftbus_root_path/sdk:softbus_client",
52    "//third_party/bounds_checking_function:libsec_static",
53    "//third_party/googletest:gtest_main",
54  ]
55
56  if (is_standard_system) {
57    external_deps = [
58      "c_utils:utils",
59      "hilog:libhilog",
60    ]
61  } else {
62    external_deps = [
63      "c_utils:utils",
64      "hilog:libhilog",
65    ]
66  }
67}
68
69group("integration_test") {
70  testonly = true
71  deps = [
72    ":DeviceManagerTest",
73    ":softbus_test_server",
74  ]
75}
76