1d066c7e5Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
2d066c7e5Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3d066c7e5Sopenharmony_ci# you may not use this file except in compliance with the License.
4d066c7e5Sopenharmony_ci# You may obtain a copy of the License at
5d066c7e5Sopenharmony_ci#
6d066c7e5Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7d066c7e5Sopenharmony_ci#
8d066c7e5Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9d066c7e5Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10d066c7e5Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11d066c7e5Sopenharmony_ci# See the License for the specific language governing permissions and
12d066c7e5Sopenharmony_ci# limitations under the License.
13d066c7e5Sopenharmony_ci
14d066c7e5Sopenharmony_ci#####################hydra-fuzz###################
15d066c7e5Sopenharmony_ciimport("//build/config/features.gni")
16d066c7e5Sopenharmony_ciimport("//build/ohos.gni")
17d066c7e5Sopenharmony_ciimport("//build/test.gni")
18d066c7e5Sopenharmony_cimodule_output_path = "customization/config_policy"
19d066c7e5Sopenharmony_ci
20d066c7e5Sopenharmony_ci##############################fuzztest##########################################
21d066c7e5Sopenharmony_ciohos_fuzztest("GetCfgFilesExFuzzTest") {
22d066c7e5Sopenharmony_ci  module_out_path = module_output_path
23d066c7e5Sopenharmony_ci
24d066c7e5Sopenharmony_ci  fuzz_config_file = "."
25d066c7e5Sopenharmony_ci
26d066c7e5Sopenharmony_ci  cflags = [
27d066c7e5Sopenharmony_ci    "-g",
28d066c7e5Sopenharmony_ci    "-O0",
29d066c7e5Sopenharmony_ci    "-Wno-unused-variable",
30d066c7e5Sopenharmony_ci    "-fno-omit-frame-pointer",
31d066c7e5Sopenharmony_ci  ]
32d066c7e5Sopenharmony_ci  include_dirs = [ "../../../interfaces/inner_api/include" ]
33d066c7e5Sopenharmony_ci  configs = [ "../../../common/config:coverage_flags" ]
34d066c7e5Sopenharmony_ci  sources = [ "getcfgfilesex_fuzzer.cpp" ]
35d066c7e5Sopenharmony_ci
36d066c7e5Sopenharmony_ci  deps = [ "../../../frameworks/config_policy:configpolicy_util" ]
37d066c7e5Sopenharmony_ci
38d066c7e5Sopenharmony_ci  external_deps = []
39d066c7e5Sopenharmony_ci
40d066c7e5Sopenharmony_ci  subsystem_name = "customization"
41d066c7e5Sopenharmony_ci  part_name = "config_policy"
42d066c7e5Sopenharmony_ci}
43