• 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("TeeClientSocketFuzzTest") {
18  module_out_path = module_output_path
19  fuzz_config_file = "../teeclientsocket_fuzzer"
20  include_dirs = [
21    "../../../../interfaces/inner_api",
22    "../../../../services/cadaemon/src/ca_daemon",
23    "../../../../services/authentication",
24    "../../../../frameworks/libteec_vendor",
25    "../../../../frameworks/include",
26  ]
27  cflags = [
28    "-g",
29    "-O0",
30    "-Wno-unused-variable",
31    "-fno-omit-frame-pointer",
32  ]
33  sources = [ "teeclientsocket_fuzzer.cpp" ]
34
35  external_deps = [
36    "access_token:libaccesstoken_sdk",
37    "c_utils:utils",
38    "hilog:libhilog",
39    "ipc:ipc_single",
40    "safwk:system_ability_fwk",
41    "samgr:samgr_proxy",
42  ]
43}
44