13298bea7Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
23298bea7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33298bea7Sopenharmony_ci# you may not use this file except in compliance with the License.
43298bea7Sopenharmony_ci# You may obtain a copy of the License at
53298bea7Sopenharmony_ci#
63298bea7Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73298bea7Sopenharmony_ci#
83298bea7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93298bea7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103298bea7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113298bea7Sopenharmony_ci# See the License for the specific language governing permissions and
123298bea7Sopenharmony_ci# limitations under the License.
133298bea7Sopenharmony_ci
143298bea7Sopenharmony_ciimport("//build/config/features.gni")
153298bea7Sopenharmony_ciimport("//build/test.gni")
163298bea7Sopenharmony_ci
173298bea7Sopenharmony_cimodule_output_path = "linuxkerneltest/sched"
183298bea7Sopenharmony_ci
193298bea7Sopenharmony_ciohos_fuzztest("SetMarginFuzzTest") {
203298bea7Sopenharmony_ci  module_out_path = module_output_path
213298bea7Sopenharmony_ci  fuzz_config_file = "//kernel/linux/build/test/fuzztest/sched/setmargin_fuzzer"
223298bea7Sopenharmony_ci
233298bea7Sopenharmony_ci  include_dirs = [
243298bea7Sopenharmony_ci    "//foundation/multimedia/image_framework/mock/native/include/log",
253298bea7Sopenharmony_ci    "//foundation/resourceschedule/frame_aware_sched/common/include",
263298bea7Sopenharmony_ci    "//third_party/bounds_checking_function/include",
273298bea7Sopenharmony_ci  ]
283298bea7Sopenharmony_ci  deps = [ "//third_party/bounds_checking_function:libsec_static" ]
293298bea7Sopenharmony_ci
303298bea7Sopenharmony_ci  cflags = [
313298bea7Sopenharmony_ci    "-g",
323298bea7Sopenharmony_ci    "-O0",
333298bea7Sopenharmony_ci    "-Wno-unused-variable",
343298bea7Sopenharmony_ci    "-fno-omit-frame-pointer",
353298bea7Sopenharmony_ci    "-pthread",
363298bea7Sopenharmony_ci  ]
373298bea7Sopenharmony_ci
383298bea7Sopenharmony_ci  sources = [
393298bea7Sopenharmony_ci    "//foundation/multimedia/image_framework/mock/native/src/HiLog.cpp",
403298bea7Sopenharmony_ci    "//foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf/rtg_interface.cpp",
413298bea7Sopenharmony_ci    "setmargin_fuzzer.cpp",
423298bea7Sopenharmony_ci  ]
433298bea7Sopenharmony_ci}
443298bea7Sopenharmony_ci
453298bea7Sopenharmony_cigroup("fuzztest") {
463298bea7Sopenharmony_ci  testonly = true
473298bea7Sopenharmony_ci  deps = []
483298bea7Sopenharmony_ci  deps += [ ":SetMarginFuzzTest" ]
493298bea7Sopenharmony_ci}
50