136a3a8d0Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
236a3a8d0Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
336a3a8d0Sopenharmony_ci# you may not use this file except in compliance with the License.
436a3a8d0Sopenharmony_ci# You may obtain a copy of the License at
536a3a8d0Sopenharmony_ci#
636a3a8d0Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
736a3a8d0Sopenharmony_ci#
836a3a8d0Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
936a3a8d0Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1036a3a8d0Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1136a3a8d0Sopenharmony_ci# See the License for the specific language governing permissions and
1236a3a8d0Sopenharmony_ci# limitations under the License.
1336a3a8d0Sopenharmony_ci
1436a3a8d0Sopenharmony_ci#####################hydra-fuzz###################
1536a3a8d0Sopenharmony_ciimport("//build/config/features.gni")
1636a3a8d0Sopenharmony_ciimport("//build/test.gni")
1736a3a8d0Sopenharmony_cimodule_output_path = "resource_management/resmgr"
1836a3a8d0Sopenharmony_ci
1936a3a8d0Sopenharmony_ci##############################fuzztest##########################################
2036a3a8d0Sopenharmony_ciohos_fuzztest("ResmgrFuzzTest") {
2136a3a8d0Sopenharmony_ci  module_out_path = module_output_path
2236a3a8d0Sopenharmony_ci
2336a3a8d0Sopenharmony_ci  fuzz_config_file = "../resmgr_fuzzer"
2436a3a8d0Sopenharmony_ci
2536a3a8d0Sopenharmony_ci  include_dirs = [ "../../../interfaces/inner_api/include" ]
2636a3a8d0Sopenharmony_ci
2736a3a8d0Sopenharmony_ci  cflags = [
2836a3a8d0Sopenharmony_ci    "-g",
2936a3a8d0Sopenharmony_ci    "-O0",
3036a3a8d0Sopenharmony_ci    "-Wno-unused-variable",
3136a3a8d0Sopenharmony_ci    "-fno-omit-frame-pointer",
3236a3a8d0Sopenharmony_ci  ]
3336a3a8d0Sopenharmony_ci  sources = [ "resmgr_fuzzer.cpp" ]
3436a3a8d0Sopenharmony_ci
3536a3a8d0Sopenharmony_ci  deps = [
3636a3a8d0Sopenharmony_ci    "../../../frameworks/resmgr:global_resmgr",
3736a3a8d0Sopenharmony_ci    "//third_party/bounds_checking_function:libsec_shared",
3836a3a8d0Sopenharmony_ci  ]
3936a3a8d0Sopenharmony_ci}
40