BUILD.gn 1.9 KB
Newer Older
M
mamingshuai 已提交
1
# Copyright (c) 2020-2021 Huawei Device Co., Ltd.
L
likailong 已提交
2 3 4 5 6 7 8 9 10 11 12
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
W
wenjun 已提交
13

M
mamingshuai 已提交
14
import("//test/xts/tools/lite/build/suite_lite.gni")
W
wenjun 已提交
15 16

hctest_suite("ActsSamgrTest") {
L
likailong 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  suite_name = "acts"
  sources = [
    "src/broadcast_publish_func_test.c",
    "src/broadcast_subscribe_func_test.c",
    "src/common_func_test.c",
    "src/defaultfeatureapi_func_test.c",
    "src/feature_func_test.c",
    "src/featureapi_func_test.c",
    "src/iunknown_func_test.c",
    "src/sendrequest_func_test.c",
    "src/sendresponse_func_test.c",
    "src/sendsharerequest_func_test.c",
    "src/service_func_test.c",
    "src/taskpool_notask_func_test.c",
    "src/taskpool_sharedtask_func_test.c",
    "src/taskpool_singletask_func_test.c",
    "src/taskpool_specifiedtask_func_test.c",
    "utils/samgr_maintenance.c",
  ]

  include_dirs = [
    "//test/xts/tools/hctest/include",
    "//third_party/unity/src",
    "//kernel/liteos_m/kal",
C
chen 已提交
41 42 43 44
    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr",
    "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast",
    "//foundation/systemabilitymgr/samgr_lite/samgr/adapter",
    "//foundation/systemabilitymgr/samgr_lite/samgr/source",
L
likailong 已提交
45 46 47
    "src",
    "utils",
  ]
M
mamingshuai 已提交
48

C
chen 已提交
49 50
  public_deps =
      [ "//foundation/systemabilitymgr/samgr_lite/samgr/adapter:samgr_adapter" ]
L
likailong 已提交
51 52
  defines = [ "UNITY_INCLUDE_CONFIG_H" ]

53
  cflags = [ "-Wno-error" ]
W
wenjun 已提交
54
}