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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/ohos.gni") 17import("//build/test.gni") 18module_output_path = "updater/read_fstab_from_file" 19 20##############################fuzztest########################################## 21ohos_fuzztest("ReadFstabFromFileFuzzTest") { 22 module_out_path = module_output_path 23 24 sources = [ "ReadFstabFromFile_fuzzer.cpp" ] 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/include/log", 32 "//base/update/updater/services", 33 "//base/update/updater/services/include", 34 ] 35 36 deps = [ 37 "//base/update/updater/services/fs_manager:libfsmanager", 38 "//base/update/updater/services/log:libupdaterlog", 39 ] 40 41 cflags = [ 42 "-g", 43 "-O0", 44 "-Wno-unused-variable", 45 "-fno-omit-frame-pointer", 46 ] 47} 48 49############################################################################### 50group("fuzztest") { 51 testonly = true 52 deps = [] 53 deps += [ 54 # deps file 55 ":ReadFstabFromFileFuzzTest", 56 ] 57} 58############################################################################### 59