13fc297bdSopenharmony_ci# Copyright (c) 2024-2024 Huawei Device Co., Ltd. 23fc297bdSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33fc297bdSopenharmony_ci# you may not use this file except in compliance with the License. 43fc297bdSopenharmony_ci# You may obtain a copy of the License at 53fc297bdSopenharmony_ci# 63fc297bdSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73fc297bdSopenharmony_ci# 83fc297bdSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93fc297bdSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103fc297bdSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113fc297bdSopenharmony_ci# See the License for the specific language governing permissions and 123fc297bdSopenharmony_ci# limitations under the License. 133fc297bdSopenharmony_ci 143fc297bdSopenharmony_ci#####################hydra-fuzz################### 153fc297bdSopenharmony_ciimport("//build/config/features.gni") 163fc297bdSopenharmony_ciimport("//build/test.gni") 173fc297bdSopenharmony_ciimport("../../../soc_perf.gni") 183fc297bdSopenharmony_ci 193fc297bdSopenharmony_ci##############################fuzztest########################################## 203fc297bdSopenharmony_ciohos_fuzztest("LimitRequestFuzzTest") { 213fc297bdSopenharmony_ci module_out_path = "soc_perf/soc_perf" 223fc297bdSopenharmony_ci fuzz_config_file = "${socperf_test}/fuzztest/limitrequest_fuzzer" 233fc297bdSopenharmony_ci include_dirs = [ 243fc297bdSopenharmony_ci "${socperf_services}/server/include", 253fc297bdSopenharmony_ci "${socperf_test}/fuzztest/include", 263fc297bdSopenharmony_ci ] 273fc297bdSopenharmony_ci 283fc297bdSopenharmony_ci cflags = [ 293fc297bdSopenharmony_ci "-g", 303fc297bdSopenharmony_ci "-O0", 313fc297bdSopenharmony_ci "-Wno-unused-variable", 323fc297bdSopenharmony_ci "-fno-omit-frame-pointer", 333fc297bdSopenharmony_ci ] 343fc297bdSopenharmony_ci 353fc297bdSopenharmony_ci sources = [ "limitrequest_fuzzer.cpp" ] 363fc297bdSopenharmony_ci 373fc297bdSopenharmony_ci deps = [ 383fc297bdSopenharmony_ci "${socperf_interfaces}/inner_api/socperf_client:socperf_client", 393fc297bdSopenharmony_ci "${socperf_services}:socperf_server_static", 403fc297bdSopenharmony_ci ] 413fc297bdSopenharmony_ci 423fc297bdSopenharmony_ci external_deps = [ 433fc297bdSopenharmony_ci "access_token:libaccesstoken_sdk", 443fc297bdSopenharmony_ci "access_token:libnativetoken", 453fc297bdSopenharmony_ci "access_token:libtoken_setproc", 463fc297bdSopenharmony_ci "hilog:libhilog", 473fc297bdSopenharmony_ci ] 483fc297bdSopenharmony_ci} 493fc297bdSopenharmony_ci 503fc297bdSopenharmony_ci############################################################################### 513fc297bdSopenharmony_cigroup("fuzztest") { 523fc297bdSopenharmony_ci testonly = true 533fc297bdSopenharmony_ci deps = [] 543fc297bdSopenharmony_ci deps += [ 553fc297bdSopenharmony_ci # deps file 563fc297bdSopenharmony_ci ":LimitRequestFuzzTest", 573fc297bdSopenharmony_ci ] 583fc297bdSopenharmony_ci} 593fc297bdSopenharmony_ci############################################################################### 60