1e0857b17Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2e0857b17Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3e0857b17Sopenharmony_ci# you may not use this file except in compliance with the License. 4e0857b17Sopenharmony_ci# You may obtain a copy of the License at 5e0857b17Sopenharmony_ci# 6e0857b17Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7e0857b17Sopenharmony_ci# 8e0857b17Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9e0857b17Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10e0857b17Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11e0857b17Sopenharmony_ci# See the License for the specific language governing permissions and 12e0857b17Sopenharmony_ci# limitations under the License. 13e0857b17Sopenharmony_ci 14e0857b17Sopenharmony_ci#####################hydra-fuzz################### 15e0857b17Sopenharmony_ciimport("//build/test.gni") 16e0857b17Sopenharmony_ciimport("//foundation/ability/ability_base/ability_base.gni") 17e0857b17Sopenharmony_ci 18e0857b17Sopenharmony_ci##############################fuzztest########################################## 19e0857b17Sopenharmony_ciohos_fuzztest("WantSixthFuzzTest") { 20e0857b17Sopenharmony_ci module_out_path = base_fuzz_output_path 21e0857b17Sopenharmony_ci 22e0857b17Sopenharmony_ci fuzz_config_file = "${ability_base_path}/test/fuzztest/wantsixth_fuzzer" 23e0857b17Sopenharmony_ci include_dirs = [] 24e0857b17Sopenharmony_ci cflags = [ 25e0857b17Sopenharmony_ci "-g", 26e0857b17Sopenharmony_ci "-O0", 27e0857b17Sopenharmony_ci "-Wno-unused-variable", 28e0857b17Sopenharmony_ci "-fno-omit-frame-pointer", 29e0857b17Sopenharmony_ci ] 30e0857b17Sopenharmony_ci sources = [ "wantsixth_fuzzer.cpp" ] 31e0857b17Sopenharmony_ci 32e0857b17Sopenharmony_ci configs = [ "${ability_base_path}:want_config" ] 33e0857b17Sopenharmony_ci 34e0857b17Sopenharmony_ci deps = [ 35e0857b17Sopenharmony_ci "${ability_base_path}:base", 36e0857b17Sopenharmony_ci "${ability_base_path}:want", 37e0857b17Sopenharmony_ci "${ability_base_path}:zuri", 38e0857b17Sopenharmony_ci "//third_party/jsoncpp:jsoncpp", 39e0857b17Sopenharmony_ci ] 40e0857b17Sopenharmony_ci 41e0857b17Sopenharmony_ci external_deps = [ 42e0857b17Sopenharmony_ci "c_utils:utils", 43e0857b17Sopenharmony_ci "ipc:ipc_core", 44e0857b17Sopenharmony_ci ] 45e0857b17Sopenharmony_ci} 46e0857b17Sopenharmony_ci 47e0857b17Sopenharmony_ci############################################################################### 48e0857b17Sopenharmony_cigroup("fuzztest") { 49e0857b17Sopenharmony_ci testonly = true 50e0857b17Sopenharmony_ci deps = [] 51e0857b17Sopenharmony_ci deps += [ 52e0857b17Sopenharmony_ci # deps file 53e0857b17Sopenharmony_ci ":WantSixthFuzzTest", 54e0857b17Sopenharmony_ci ] 55e0857b17Sopenharmony_ci} 56e0857b17Sopenharmony_ci############################################################################### 57