• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 Huawei Technologies Co., Ltd.
2# Licensed under the Mulan PSL v2.
3# You can use this software according to the terms and conditions of the Mulan PSL v2.
4# You may obtain a copy of Mulan PSL v2 at:
5#     http://license.coscl.org.cn/MulanPSL2
6# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
7# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
8# PURPOSE.
9# See the Mulan PSL v2 for more details.
10
11#####################hydra-fuzz###################
12import("//build/config/features.gni")
13import("//build/test.gni")
14module_output_path = "tee_client/tee_client"
15
16##############################fuzztest##########################################
17ohos_fuzztest("LibteecVendorTeecExtApiFuzzTest") {
18  module_out_path = module_output_path
19  fuzz_config_file = "../libteecvendorteecextapi_fuzzer"
20  include_dirs = [
21    "../../../../interfaces/inner_api",
22    "../../../../frameworks/include",
23    "../../../../frameworks/include/standard/teec_vendor/",
24    "../../../../frameworks/include/standard/",
25    "../../../../frameworks/libteec_vendor/",
26    "../../../../services/authentication/"
27  ]
28
29  cflags = [
30    "-g",
31    "-O0",
32    "-Wno-unused-variable",
33    "-fno-omit-frame-pointer",
34  ]
35  sources = [ "libteecvendorteecextapi_fuzzer.cpp" ]
36
37  deps = [ "../../../../frameworks/build/standard:libteec_vendor" ]
38
39  external_deps = [
40    "hilog:libhilog",
41    "c_utils:utils",
42  ]
43}
44