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/updater_format_artition" 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("UpdaterFormatPartitionFuzzTest") { 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 = [ 50 "//base/update/updater/services/fs_manager/mount.cpp", 51 "UpdaterFormatPartition_fuzzer.cpp", 52 ] 53} 54 55############################################################################### 56group("fuzztest") { 57 testonly = true 58 deps = [] 59 deps += [ 60 # deps file 61 ":UpdaterFormatPartitionFuzzTest", 62 ] 63} 64############################################################################### 65