140f5d65dSopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd. 240f5d65dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 340f5d65dSopenharmony_ci# you may not use this file except in compliance with the License. 440f5d65dSopenharmony_ci# You may obtain a copy of the License at 540f5d65dSopenharmony_ci# 640f5d65dSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 740f5d65dSopenharmony_ci# 840f5d65dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 940f5d65dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1040f5d65dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1140f5d65dSopenharmony_ci# See the License for the specific language governing permissions and 1240f5d65dSopenharmony_ci# limitations under the License. 1340f5d65dSopenharmony_ci 1440f5d65dSopenharmony_ci#####################hydra-fuzz################### 1540f5d65dSopenharmony_ciimport("//build/config/features.gni") 1640f5d65dSopenharmony_ciimport("//build/test.gni") 1740f5d65dSopenharmony_ciimport("//foundation/filemanagement/app_file_service/app_file_service.gni") 1840f5d65dSopenharmony_ciimport("//foundation/filemanagement/app_file_service/backup.gni") 1940f5d65dSopenharmony_ci 2040f5d65dSopenharmony_ci##############################fuzztest########################################## 2140f5d65dSopenharmony_ciohos_fuzztest("ServiceReverseFuzzTest") { 2240f5d65dSopenharmony_ci module_out_path = "app_file_service/app_file_service" 2340f5d65dSopenharmony_ci fuzz_config_file = 2440f5d65dSopenharmony_ci "${app_file_service_path}/test/fuzztest/servicereverse_fuzzer" 2540f5d65dSopenharmony_ci include_dirs = [ 2640f5d65dSopenharmony_ci "${path_backup}/frameworks/native/backup_kit_inner/include", 2740f5d65dSopenharmony_ci "${path_backup}/interfaces/inner_api/native/backup_kit_inner/impl", 2840f5d65dSopenharmony_ci "${path_backup}/utils/include", 2940f5d65dSopenharmony_ci ] 3040f5d65dSopenharmony_ci cflags = [ 3140f5d65dSopenharmony_ci "-g", 3240f5d65dSopenharmony_ci "-O0", 3340f5d65dSopenharmony_ci "-Wno-unused-variable", 3440f5d65dSopenharmony_ci "-fno-omit-frame-pointer", 3540f5d65dSopenharmony_ci ] 3640f5d65dSopenharmony_ci sources = [ "servicereverse_fuzzer.cpp" ] 3740f5d65dSopenharmony_ci 3840f5d65dSopenharmony_ci deps = [ 3940f5d65dSopenharmony_ci "${path_backup}/interfaces/inner_api/native/backup_kit_inner:backup_kit_inner", 4040f5d65dSopenharmony_ci "${path_backup}/utils:backup_utils", 4140f5d65dSopenharmony_ci ] 4240f5d65dSopenharmony_ci 4340f5d65dSopenharmony_ci external_deps = [ 4440f5d65dSopenharmony_ci "c_utils:utils", 4540f5d65dSopenharmony_ci "ipc:ipc_core", 4640f5d65dSopenharmony_ci ] 4740f5d65dSopenharmony_ci 4840f5d65dSopenharmony_ci defines = [ 4940f5d65dSopenharmony_ci "LOG_TAG=\"app_file_service\"", 5040f5d65dSopenharmony_ci "LOG_DOMAIN=0xD200000", 5140f5d65dSopenharmony_ci ] 5240f5d65dSopenharmony_ci} 5340f5d65dSopenharmony_ci 5440f5d65dSopenharmony_ci############################################################################### 5540f5d65dSopenharmony_ci 56