• 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
16hctest_suite("ActsSamgrTest") {
17  suite_name = "acts"
18  sources = [
19    "src/broadcast_publish_func_test.c",
20    "src/broadcast_subscribe_func_test.c",
21    "src/common_func_test.c",
22    "src/defaultfeatureapi_func_test.c",
23    "src/feature_func_test.c",
24    "src/featureapi_func_test.c",
25    "src/iunknown_func_test.c",
26    "src/sendrequest_func_test.c",
27    "src/sendresponse_func_test.c",
28    "src/sendsharerequest_func_test.c",
29    "src/service_func_test.c",
30    "src/taskpool_notask_func_test.c",
31    "src/taskpool_sharedtask_func_test.c",
32    "src/taskpool_singletask_func_test.c",
33    "src/taskpool_specifiedtask_func_test.c",
34    "utils/samgr_maintenance.c",
35  ]
36
37  include_dirs = [
38    "//test/xts/tools/hctest/include",
39    "//third_party/unity/src",
40    "//kernel/liteos_m/kal",
41    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
42    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast",
43    "//foundation/systemabilitymgr/samgr_lite/samgr/adapter",
44    "//foundation/systemabilitymgr/samgr_lite/samgr/source",
45    "src",
46    "utils",
47  ]
48
49  public_deps =
50      [ "//foundation/systemabilitymgr/samgr_lite/samgr/adapter:samgr_adapter" ]
51  defines = [ "UNITY_INCLUDE_CONFIG_H" ]
52
53  if (board_toolchain_type != "iccarm") {
54    cflags = [ "-Wno-error" ]
55  }
56}
57