111fccf17Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 211fccf17Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 311fccf17Sopenharmony_ci# you may not use this file except in compliance with the License. 411fccf17Sopenharmony_ci# You may obtain a copy of the License at 511fccf17Sopenharmony_ci# 611fccf17Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 711fccf17Sopenharmony_ci# 811fccf17Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 911fccf17Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1011fccf17Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1111fccf17Sopenharmony_ci# See the License for the specific language governing permissions and 1211fccf17Sopenharmony_ci# limitations under the License. 1311fccf17Sopenharmony_ci 1411fccf17Sopenharmony_ci#####################hydra-fuzz################### 1511fccf17Sopenharmony_ciSUBSYSTEM_DIR = "../../../.." 1611fccf17Sopenharmony_ciimport("//build/config/features.gni") 1711fccf17Sopenharmony_ciimport("//build/ohos.gni") 1811fccf17Sopenharmony_ciimport("//build/test.gni") 1911fccf17Sopenharmony_ci 2011fccf17Sopenharmony_ci##############################fuzztest########################################## 2111fccf17Sopenharmony_ciohos_fuzztest("CreateCdmaSmsFuzzTest") { 2211fccf17Sopenharmony_ci module_output_path = "ril_adapter/ril_adapter" 2311fccf17Sopenharmony_ci module_out_path = module_output_path 2411fccf17Sopenharmony_ci fuzz_config_file = 2511fccf17Sopenharmony_ci "$SUBSYSTEM_DIR/ril_adapter/test/fuzztest/createcdmasms_fuzzer" 2611fccf17Sopenharmony_ci include_dirs = [ "$SUBSYSTEM_DIR/ril_adapter/services/hril/include" ] 2711fccf17Sopenharmony_ci 2811fccf17Sopenharmony_ci configs = [ "$SUBSYSTEM_DIR/ril_adapter/utils:utils_config" ] 2911fccf17Sopenharmony_ci 3011fccf17Sopenharmony_ci deps = [ 3111fccf17Sopenharmony_ci "$SUBSYSTEM_DIR/ril_adapter/interfaces/innerkits:hril_innerkits", 3211fccf17Sopenharmony_ci "$SUBSYSTEM_DIR/ril_adapter/services/hril:hril", 3311fccf17Sopenharmony_ci ] 3411fccf17Sopenharmony_ci 3511fccf17Sopenharmony_ci external_deps = [ 3611fccf17Sopenharmony_ci "bounds_checking_function:libsec_shared", 3711fccf17Sopenharmony_ci "c_utils:utils", 3811fccf17Sopenharmony_ci "drivers_interface_power:libpower_proxy_1.2", 3911fccf17Sopenharmony_ci "drivers_interface_ril:ril_idl_headers", 4011fccf17Sopenharmony_ci "hdf_core:libhdf_host", 4111fccf17Sopenharmony_ci "hdf_core:libhdf_ipc_adapter", 4211fccf17Sopenharmony_ci "hdf_core:libpub_utils", 4311fccf17Sopenharmony_ci "hilog:libhilog", 4411fccf17Sopenharmony_ci "ipc:ipc_single", 4511fccf17Sopenharmony_ci "samgr:samgr_proxy", 4611fccf17Sopenharmony_ci ] 4711fccf17Sopenharmony_ci defines = [ 4811fccf17Sopenharmony_ci "TELEPHONY_LOG_TAG = \"RilAdapterFuzzTest\"", 4911fccf17Sopenharmony_ci "LOG_DOMAIN = 0xD000F00", 5011fccf17Sopenharmony_ci ] 5111fccf17Sopenharmony_ci cflags = [ 5211fccf17Sopenharmony_ci "-g", 5311fccf17Sopenharmony_ci "-O0", 5411fccf17Sopenharmony_ci "-Wno-unused-variable", 5511fccf17Sopenharmony_ci "-fno-omit-frame-pointer", 5611fccf17Sopenharmony_ci ] 5711fccf17Sopenharmony_ci sources = [ "createcdmasms_fuzzer.cpp" ] 5811fccf17Sopenharmony_ci} 5911fccf17Sopenharmony_ci 6011fccf17Sopenharmony_ci############################################################################### 6111fccf17Sopenharmony_cigroup("fuzztest") { 6211fccf17Sopenharmony_ci testonly = true 6311fccf17Sopenharmony_ci deps = [] 6411fccf17Sopenharmony_ci deps += [ 6511fccf17Sopenharmony_ci # deps file 6611fccf17Sopenharmony_ci ":CreateCdmaSmsFuzzTest", 6711fccf17Sopenharmony_ci ] 6811fccf17Sopenharmony_ci} 6911fccf17Sopenharmony_ci############################################################################### 70