1# Copyright (c) 2022 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") 15import("//foundation/distributeddatamgr/kv_store/kv_store.gni") 16 17module_output_path = "kv_store/distributed_test" 18 19############################################################################### 20config("module_private_config") { 21 include_dirs = [ 22 "${kv_store_base_path}/test/distributedtest/single_kvstore_client", 23 "${kv_store_base_path}/interfaces/innerkits/distributeddata/include", 24 "${kv_store_base_path}/frameworks/common", 25 "${kv_store_base_path}/frameworks/distributeddatafwk/include", 26 "${kv_store_base_path}/frameworks/distributeddatafwk/src", 27 "${kv_store_base_path}/frameworks/kvdb/include", 28 ] 29} 30 31common_deps = [ 32 "${kv_store_base_path}/frameworks/libs/distributeddb:distributeddb", 33 "${kv_store_base_path}/interfaces/innerkits/distributeddata:distributeddata_inner", 34 "${third_party_path}/googletest:gtest", 35] 36 37common_external_deps = [ 38 "access_token:libaccesstoken_sdk", 39 "access_token:libnativetoken", 40 "access_token:libtoken_setproc", 41 "c_utils:utils", 42 "device_manager:devicemanagersdk", 43 "hilog:libhilog", 44 "hisysevent:libhisysevent", 45 "hitrace:hitrace_meter", 46 "hitrace:libhitracechain", 47 "huks:libhukssdk", 48 "ipc:ipc_single", 49 "samgr:samgr_proxy", 50] 51 52############################################################################### 53ohos_distributedtest("DistributedTest") { 54 module_out_path = module_output_path 55 56 sources = [ "distributed_test.cpp" ] 57 58 configs = [ ":module_private_config" ] 59 60 external_deps = common_external_deps 61 62 deps = common_deps 63} 64 65ohos_distributedtest("DistributedTestAgent") { 66 module_out_path = module_output_path 67 68 sources = [ "distributed_test_agent.cpp" ] 69 70 configs = [ ":module_private_config" ] 71 72 external_deps = common_external_deps 73 74 deps = common_deps 75} 76 77############################################################################### 78group("distributedtest") { 79 testonly = true 80 81 deps = [ 82 ":DistributedTest", 83 ":DistributedTestAgent", 84 ] 85} 86############################################################################### 87