• 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/do_partitions"
15
16#####################hydra-fuzz###################
17import("//build/config/features.gni")
18import("//build/test.gni")
19
20##############################fuzztest##########################################
21ohos_fuzztest("DoPartitionsFuzzTest") {
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/fs_manager",
28    "//base/update/updater/services/include/log",
29    "//base/update/updater/services",
30    "//base/update/updater/services/include",
31  ]
32
33  deps = [
34    "//base/update/updater/interfaces/kits/misc_info:libmiscinfo",
35    "//base/update/updater/interfaces/kits/packages:libpackageExt",
36    "//base/update/updater/services/applypatch:libapplypatch",
37    "//base/update/updater/services/diffpatch/patch:libpatch",
38    "//base/update/updater/services/fs_manager:libfsmanager",
39    "//base/update/updater/services/log:libupdaterlog",
40    "//base/update/updater/services/package:libupdaterpackage",
41    "//base/update/updater/services/script:libupdaterscript",
42    "//base/update/updater/services/ui:libui",
43    "//base/update/updater/utils:libutils",
44    "//third_party/bounds_checking_function:libsec_static",
45    "//third_party/bzip2:libbz2",
46    "//third_party/libdrm:libdrm",
47    "//third_party/lz4:liblz4_static",
48    "//third_party/openssl:libcrypto_static",
49    "//third_party/openssl:ssl_source",
50    "//third_party/zlib:libz",
51    "//utils/native/base:utils",
52  ]
53
54  cflags = [
55    "-g",
56    "-O0",
57    "-Wno-unused-variable",
58    "-fno-omit-frame-pointer",
59  ]
60  sources = [ "DoPartitions_fuzzer.cpp" ]
61}
62
63###############################################################################
64group("fuzztest") {
65  testonly = true
66  deps = []
67  deps += [
68    # deps file
69    ":DoPartitionsFuzzTest",
70  ]
71}
72###############################################################################
73