12498b56bSopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd. 22498b56bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 32498b56bSopenharmony_ci# you may not use this file except in compliance with the License. 42498b56bSopenharmony_ci# You may obtain a copy of the License at 52498b56bSopenharmony_ci# 62498b56bSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 72498b56bSopenharmony_ci# 82498b56bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 92498b56bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 102498b56bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 112498b56bSopenharmony_ci# See the License for the specific language governing permissions and 122498b56bSopenharmony_ci# limitations under the License. 132498b56bSopenharmony_ci 142498b56bSopenharmony_ciimport("//build/test.gni") 152498b56bSopenharmony_ci 162498b56bSopenharmony_cimodule_output_path = "hilog/hilog" 172498b56bSopenharmony_ci 182498b56bSopenharmony_ciconfig("module_private_config") { 192498b56bSopenharmony_ci visibility = [ ":*" ] 202498b56bSopenharmony_ci} 212498b56bSopenharmony_ci 222498b56bSopenharmony_ciohos_moduletest("HiLogNDKTest") { 232498b56bSopenharmony_ci module_out_path = module_output_path 242498b56bSopenharmony_ci 252498b56bSopenharmony_ci sources = [ 262498b56bSopenharmony_ci "moduletest/common/hilog_base_ndk_test.cpp", 272498b56bSopenharmony_ci "moduletest/common/hilog_ndk_test.cpp", 282498b56bSopenharmony_ci ] 292498b56bSopenharmony_ci 302498b56bSopenharmony_ci configs = [ ":module_private_config" ] 312498b56bSopenharmony_ci 322498b56bSopenharmony_ci external_deps = [ 332498b56bSopenharmony_ci "hilog:libhilog", 342498b56bSopenharmony_ci "hilog:libhilog_base", 352498b56bSopenharmony_ci "init:libbegetutil", 362498b56bSopenharmony_ci ] 372498b56bSopenharmony_ci 382498b56bSopenharmony_ci include_dirs = [ 392498b56bSopenharmony_ci "//base/hiviewdfx/hilog/interfaces/native/innerkits/include", 402498b56bSopenharmony_ci "//base/hiviewdfx/hilog/frameworks/libhilog/include", 412498b56bSopenharmony_ci ] 422498b56bSopenharmony_ci} 432498b56bSopenharmony_ci 442498b56bSopenharmony_ciohos_moduletest("HiLogAdapterTest") { 452498b56bSopenharmony_ci module_out_path = module_output_path 462498b56bSopenharmony_ci 472498b56bSopenharmony_ci sources = [ "moduletest/common/adapter_test.cpp" ] 482498b56bSopenharmony_ci 492498b56bSopenharmony_ci configs = [ ":module_private_config" ] 502498b56bSopenharmony_ci 512498b56bSopenharmony_ci external_deps = [ "hilog:libhilog" ] 522498b56bSopenharmony_ci 532498b56bSopenharmony_ci include_dirs = [ 542498b56bSopenharmony_ci "//base/hiviewdfx/hilog/adapter", 552498b56bSopenharmony_ci "//base/hiviewdfx/hilog/frameworks/libhilog/param/include", 562498b56bSopenharmony_ci "//base/hiviewdfx/hilog/frameworks/libhilog/utils/include/", 572498b56bSopenharmony_ci ] 582498b56bSopenharmony_ci} 592498b56bSopenharmony_ci 602498b56bSopenharmony_cigroup("hilog_moduletest") { 612498b56bSopenharmony_ci testonly = true 622498b56bSopenharmony_ci deps = [ 632498b56bSopenharmony_ci ":HiLogAdapterTest", 642498b56bSopenharmony_ci ":HiLogNDKTest", 652498b56bSopenharmony_ci ] 662498b56bSopenharmony_ci} 672498b56bSopenharmony_ci 682498b56bSopenharmony_cigroup("hilog_unittest") { 692498b56bSopenharmony_ci testonly = true 702498b56bSopenharmony_ci deps = [] 712498b56bSopenharmony_ci 722498b56bSopenharmony_ci deps += [ "unittest/common:unittest" ] 732498b56bSopenharmony_ci} 742498b56bSopenharmony_ci 752498b56bSopenharmony_cigroup("fuzztest") { 762498b56bSopenharmony_ci testonly = true 772498b56bSopenharmony_ci deps = [ 782498b56bSopenharmony_ci "fuzztest/hilogclient_fuzzer:HiLogClientFuzzTest", 792498b56bSopenharmony_ci "fuzztest/hilogserver_fuzzer:HiLogServerFuzzTest", 802498b56bSopenharmony_ci ] 812498b56bSopenharmony_ci} 82