• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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("//foundation/communication/dsoftbus/dsoftbus.gni")
16
17module_output_path = "dsoftbus/transmission"
18
19ohos_executable("softbus_test_server") {
20  sources = [ "test_server.cpp" ]
21
22  external_deps = [ "dsoftbus:softbus_client" ]
23
24  part_name = "dsoftbus"
25  subsystem_name = "communication"
26}
27
28ohos_unittest("softbus_file_testsuite") {
29  module_out_path = module_output_path
30  sources = [ "device_manager.cpp" ]
31
32  include_dirs = [
33    "$dsoftbus_root_path/core/common/include",
34    "$dsoftbus_root_path/interfaces/kits/bus_center",
35    "$dsoftbus_root_path/interfaces/kits/common",
36    "//commonlibrary/c_utils/base/include",
37    "//third_party/bounds_checking_function/include",
38    "unittest/common/",
39    "$dsoftbus_root_path/adapter/common/include",
40  ]
41
42  deps = [
43    "$dsoftbus_root_path/sdk:softbus_client",
44    "//third_party/bounds_checking_function:libsec_static",
45    "//third_party/googletest:gtest_main",
46  ]
47
48  if (is_standard_system) {
49    external_deps = [
50      "c_utils:utils",
51      "hiviewdfx_hilog_native:libhilog",
52    ]
53  } else {
54    external_deps = [
55      "c_utils:utils",
56      "hilog:libhilog",
57    ]
58  }
59}
60
61group("integration_test") {
62  testonly = true
63  deps = [
64    ":softbus_file_testsuite",
65    ":softbus_test_server",
66  ]
67}
68