1# Copyright (c) 2022 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/test.gni") 17import( 18 "//foundation/resourceschedule/resource_schedule_service/cgroup_sched/cgroup_sched.gni") 19import( 20 "//foundation/resourceschedule/resource_schedule_service/ressched/ressched.gni") 21 22module_output_path = "resource_schedule_service/ressched" 23 24##############################fuzztest########################################## 25ohos_fuzztest("ResSchedFuzzTest") { 26 module_out_path = module_output_path 27 fuzz_config_file = "//foundation/resourceschedule/resource_schedule_service/ressched/test/fuzztest/ressched_fuzzer" 28 29 configs = [ 30 "${ressched_services}:ressched_config", 31 "${ressched_interfaces}/innerkits/ressched_client:client_public_config", 32 ] 33 34 cflags = [ 35 "-g", 36 "-O0", 37 "-Wno-unused-variable", 38 "-fno-omit-frame-pointer", 39 ] 40 sources = [ "ressched_fuzzer.cpp" ] 41 42 deps = [ 43 "${cgroup_sched_framework}:cgroup_sched", 44 "${ressched_services}:resschedsvc", 45 "//third_party/libxml2:xml2", 46 ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "eventhandler:libeventhandler", 51 "hiviewdfx_hilog_native:libhilog", 52 "ipc:ipc_core", 53 "safwk:system_ability_fwk", 54 "samgr:samgr_proxy", 55 ] 56} 57 58############################################################################### 59group("fuzztest") { 60 testonly = true 61 deps = [] 62 deps += [ 63 # deps file 64 ":ResSchedFuzzTest", 65 ] 66} 67############################################################################### 68