1# Copyright (c) 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("//build/test.gni") 15 16module_output_path = "developertest/distributedb" 17 18############################################################################### 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "//commonlibrary/c_utils/base/include", 24 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/include", 25 "//foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src", 26 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/app_distributeddata/include", 27 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include", 28 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/include", 29 "//test/testfwk/developer_test/aw/distributed", 30 ] 31 32 # link library 33 #ldflags = [ "-llog" ] 34 35 # library path 36 lib_dirs = [ "//foundation/appexecfwk/libs" ] 37} 38 39ohos_distributedtest("DistributeDemo") { 40 module_out_path = module_output_path 41 42 sources = [ "//test/testfwk/developer_test/examples/distributedb/test/distributedtest/common/distribute_demo.cpp" ] 43 44 configs = [ ":module_private_config" ] 45 46 external_deps = [ 47 "c_utils:utils", 48 "hilog_native:libhilog", 49 "ipc:ipc_core", 50 "safwk:system_ability_fwk", 51 "samgr:samgr_proxy", 52 ] 53 54 deps = [ 55 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter:distributeddata_adapter", 56 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/:distributeddata_inner", 57 "//third_party/googletest:gtest", 58 ] 59} 60 61ohos_distributedtest("DistributeDemoAgent") { 62 module_out_path = module_output_path 63 64 sources = [ "//test/testfwk/developer_test/examples/distributedb/test/distributedtest/common/distribute_demo_agent.cpp" ] 65 66 configs = [ ":module_private_config" ] 67 68 external_deps = [ 69 "c_utils:utils", 70 "hilog_native:libhilog", 71 "ipc:ipc_core", 72 "safwk:system_ability_fwk", 73 "samgr:samgr_proxy", 74 ] 75 76 deps = [ 77 "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter:distributeddata_adapter", 78 "//foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/:distributeddata_inner", 79 "//third_party/googletest:gtest", 80 ] 81} 82 83############################################################################### 84group("distributedtest") { 85 testonly = true 86 deps = [ 87 ":DistributeDemo", 88 ":DistributeDemoAgent", 89 ] 90} 91############################################################################### 92