100600bfbSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
200600bfbSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
300600bfbSopenharmony_ci# you may not use this file except in compliance with the License.
400600bfbSopenharmony_ci# You may obtain a copy of the License at
500600bfbSopenharmony_ci#
600600bfbSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
700600bfbSopenharmony_ci#
800600bfbSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
900600bfbSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1000600bfbSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1100600bfbSopenharmony_ci# See the License for the specific language governing permissions and
1200600bfbSopenharmony_ci# limitations under the License.
1300600bfbSopenharmony_ci
1400600bfbSopenharmony_ci#####################hydra-fuzz###################
1500600bfbSopenharmony_ciimport("//build/config/features.gni")
1600600bfbSopenharmony_ciimport("//build/test.gni")
1700600bfbSopenharmony_ciimport("../../../hidumper.gni")
1800600bfbSopenharmony_ci
1900600bfbSopenharmony_ci##############################fuzztest##########################################
2000600bfbSopenharmony_ciohos_fuzztest("ClientFuzzTest") {
2100600bfbSopenharmony_ci  module_out_path = hidumper_fuzz_output_path
2200600bfbSopenharmony_ci  fuzz_config_file = "../../../test/fuzztest/client_fuzzer"
2300600bfbSopenharmony_ci
2400600bfbSopenharmony_ci  cflags = [
2500600bfbSopenharmony_ci    "-g",
2600600bfbSopenharmony_ci    "-O0",
2700600bfbSopenharmony_ci    "-Wno-unused-variable",
2800600bfbSopenharmony_ci    "-fno-omit-frame-pointer",
2900600bfbSopenharmony_ci  ]
3000600bfbSopenharmony_ci  sources = [ "./client_fuzzer.cpp" ]
3100600bfbSopenharmony_ci  external_deps = [
3200600bfbSopenharmony_ci    "c_utils:utils",
3300600bfbSopenharmony_ci    "drivers_interface_memorytracker:libmemorytracker_proxy_1.0",
3400600bfbSopenharmony_ci    "hdf_core:libhdf_utils",
3500600bfbSopenharmony_ci    "hilog:libhilog",
3600600bfbSopenharmony_ci    "ipc:ipc_core",
3700600bfbSopenharmony_ci    "samgr:samgr_proxy",
3800600bfbSopenharmony_ci  ]
3900600bfbSopenharmony_ci
4000600bfbSopenharmony_ci  deps = [ "${hidumper_service_path}:hidumper_client" ]
4100600bfbSopenharmony_ci
4200600bfbSopenharmony_ci  include_dirs = [ "${hidumper_interface}/innerkits/include/" ]
4300600bfbSopenharmony_ci}
4400600bfbSopenharmony_ci
4500600bfbSopenharmony_ci###############################################################################
4600600bfbSopenharmony_cigroup("fuzztest") {
4700600bfbSopenharmony_ci  testonly = true
4800600bfbSopenharmony_ci  deps = []
4900600bfbSopenharmony_ci  deps += [
5000600bfbSopenharmony_ci    # deps file
5100600bfbSopenharmony_ci    ":ClientFuzzTest",
5200600bfbSopenharmony_ci  ]
5300600bfbSopenharmony_ci}
5400600bfbSopenharmony_ci###############################################################################
55