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 "src/LiteIPCClientTest.cpp", 51 "src/LiteIPCFeatureTest.cpp", 52 "src/LiteIPCServiceTest.cpp", 53 "src/SendRequestTest.cpp", 54 "src/SendResponseTest.cpp", 55 "src/SendShareRequestTest.cpp", 56 "src/ServiceTest.cpp", 57 "src/TaskpoolNoTaskTest.cpp", 58 "src/TaskpoolSharedTaskTest.cpp", 59 "src/TaskpoolSingleTaskTest.cpp", 60 "src/TaskpoolSpecifiedTaskTest.cpp", 61 "src/utils/SamgrTestBase.cpp", 62 ] 63 } else { 64 } 65 66 include_dirs = [ 67 "src", 68 "src/utils", 69 "include", 70 "//commonlibrary/utils_lite/include", 71 "//third_party/bounds_checking_function/include", 72 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/registry", 73 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/samgr", 74 "//foundation/systemabilitymgr/samgr_lite/interfaces/kits/communication/broadcast", 75 ] 76 deps = [ 77 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 78 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 79 "//foundation/systemabilitymgr/samgr_lite/communication/broadcast:broadcast", 80 "//foundation/systemabilitymgr/samgr_lite/samgr:samgr", 81 "//third_party/bounds_checking_function:libsec_shared", 82 ] 83 cflags = [ "-Wno-error" ] 84 85 ldflags = [ 86 "-lstdc++", 87 "-lm", 88 "-lpthread", 89 ] 90} 91