• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16#####################hydra-fuzz###################
17import("//build/config/features.gni")
18import("//build/test.gni")
19
20##############################fuzztest##########################################
21ohos_fuzztest("UpdaterFormatPartitionFuzzTest") {
22  module_out_path = module_output_path
23
24  include_dirs = [
25    "//base/update/updater/utils/include",
26    "//base/update/updater/interfaces/kits/include/",
27    "//base/update/updater/services/include/package",
28    "//base/update/updater/services/include/fs_manager",
29    "//base/update/updater/services/package/pkg_manager",
30    "//base/update/updater/services/include/log",
31    "//base/update/updater/services",
32    "//base/update/updater/services/ui",
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  sources = [
48    "//base/update/updater/services/fs_manager/mount.cpp",
49    "UpdaterFormatPartition_fuzzer.cpp",
50  ]
51}
52
53###############################################################################
54group("fuzztest") {
55  testonly = true
56  deps = []
57  deps += [
58    # deps file
59    ":UpdaterFormatPartitionFuzzTest",
60  ]
61}
62###############################################################################
63