1# Copyright (c) 2021 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 14module_output_path = "updater/do_partitions" 15 16import("//base/update/updater/updater_default_cfg.gni") 17 18#####################hydra-fuzz################### 19import("//build/config/features.gni") 20import("//build/test.gni") 21 22##############################fuzztest########################################## 23ohos_fuzztest("UpdaterMountForPathFuzzTest") { 24 module_out_path = module_output_path 25 26 include_dirs = [ 27 "//base/update/updater/utils/include", 28 "//base/update/updater/interfaces/kits/include", 29 "//base/update/updater/services/include/package", 30 "//base/update/updater/services/include/fs_manager", 31 "//base/update/updater/services/package/pkg_manager", 32 "//base/update/updater/services/include/log", 33 "//base/update/updater/services", 34 "//base/update/updater/services/ui", 35 "//base/update/updater/services/include", 36 ] 37 38 deps = [ 39 "//base/update/updater/services/fs_manager:libfsmanager", 40 "//base/update/updater/services/log:libupdaterlog", 41 ] 42 43 cflags = [ 44 "-g", 45 "-O0", 46 "-Wno-unused-variable", 47 "-fno-omit-frame-pointer", 48 ] 49 sources = [ "UpdaterMountForPath_fuzzer.cpp" ] 50} 51 52############################################################################### 53group("fuzztest") { 54 testonly = true 55 deps = [] 56 deps += [ 57 # deps file 58 ":UpdaterMountForPathFuzzTest", 59 ] 60} 61############################################################################### 62