• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2020-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("//test/xts/tools/lite/build/suite_lite.gni")
15
16hcpptest_suite("ActsSamgrTest") {
17  suite_name = "acts"
18  sources = []
19  if (ohos_kernel_type == "liteos_a") {
20    sources += [
21      "src/BroadcastPublishTest.cpp",
22      "src/BroadcastSubscribeTest.cpp",
23      "src/CommonTest.cpp",
24      "src/DefaultFeatureApiTest.cpp",
25      "src/FeatureApiTest.cpp",
26      "src/FeatureTest.cpp",
27      "src/IUnknownTest.cpp",
28      "src/LiteIPCClientTest.cpp",
29      "src/LiteIPCFeatureTest.cpp",
30      "src/LiteIPCServiceTest.cpp",
31      "src/SendRequestTest.cpp",
32      "src/SendResponseTest.cpp",
33      "src/SendShareRequestTest.cpp",
34      "src/ServiceTest.cpp",
35      "src/TaskpoolNoTaskTest.cpp",
36      "src/TaskpoolSharedTaskTest.cpp",
37      "src/TaskpoolSingleTaskTest.cpp",
38      "src/TaskpoolSpecifiedTaskTest.cpp",
39      "src/utils/SamgrTestBase.cpp",
40    ]
41  } else if (ohos_kernel_type == "linux") {
42    sources += [
43      "src/BroadcastPublishTest.cpp",
44      "src/BroadcastSubscribeTest.cpp",
45      "src/CommonTest.cpp",
46      "src/DefaultFeatureApiTest.cpp",
47      "src/FeatureApiTest.cpp",
48      "src/FeatureTest.cpp",
49      "src/IUnknownTest.cpp",
50
51      #   "src/LiteIPCClientTest.cpp",
52      "src/LiteIPCFeatureTest.cpp",
53      "src/LiteIPCServiceTest.cpp",
54      "src/SendRequestTest.cpp",
55      "src/SendResponseTest.cpp",
56      "src/SendShareRequestTest.cpp",
57      "src/ServiceTest.cpp",
58      "src/TaskpoolNoTaskTest.cpp",
59      "src/TaskpoolSharedTaskTest.cpp",
60      "src/TaskpoolSingleTaskTest.cpp",
61      "src/TaskpoolSpecifiedTaskTest.cpp",
62      "src/utils/SamgrTestBase.cpp",
63    ]
64  } else {
65  }
66
67  include_dirs = [
68    "src",
69    "src/utils",
70    "include",
71    "//utils/native/native_lite/include",
72    "//third_party/bounds_checking_function/include",
73    "//foundation/distributedschedule/samgr_lite/interfaces/kits/registry",
74    "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr",
75    "//foundation/distributedschedule/samgr_lite/interfaces/kits/communication/broadcast",
76  ]
77  deps = [
78    "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared",
79    "//foundation/communication/ipc_lite:liteipc_adapter",
80    "//foundation/distributedschedule/samgr_lite/communication/broadcast:broadcast",
81    "//foundation/distributedschedule/samgr_lite/samgr:samgr",
82    "//third_party/bounds_checking_function:libsec_shared",
83  ]
84  cflags = [ "-Wno-error" ]
85
86  ldflags = [
87    "-lstdc++",
88    "-lm",
89    "-lpthread",
90  ]
91}
92