1# Copyright (c) 2023 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 = "certificate_framework/certificate" 19 20##############################fuzztest########################################## 21ohos_fuzztest("X509CrlFuzzTest") { 22 module_out_path = module_output_path 23 fuzz_config_file = "../x509crl_fuzzer" 24 configs = [ "../../../../config/build:coverage_flag_cc" ] 25 include_dirs = [ 26 "../../../../frameworks/adapter/v1.0/inc", 27 "../../../../frameworks/common/v1.0/inc", 28 "../../../../frameworks/core/v1.0/spi", 29 "//third_party/openssl/include", 30 ] 31 sources = [ "x509crl_fuzzer.cpp" ] 32 cflags = [ 33 "-g", 34 "-O0", 35 "-Wno-unused-variable", 36 "-fno-omit-frame-pointer", 37 "-DHILOG_ENABLE", 38 ] 39 if (target_cpu == "arm") { 40 cflags += [ "-DBINDER_IPC_32BIT" ] 41 } 42 43 deps = [ "//third_party/openssl:libcrypto_shared" ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "certificate_framework:certificate_framework_core", 48 "crypto_framework:crypto_framework_lib", 49 "hilog:libhilog", 50 ] 51} 52 53############################################################################### 54group("fuzztest") { 55 testonly = true 56 deps = [] 57 deps += [ 58 # deps file 59 ":X509CrlFuzzTest", 60 ] 61} 62############################################################################### 63