1e509ee18Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2e509ee18Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e509ee18Sopenharmony_ci# you may not use this file except in compliance with the License.
4e509ee18Sopenharmony_ci# You may obtain a copy of the License at
5e509ee18Sopenharmony_ci#
6e509ee18Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e509ee18Sopenharmony_ci#
8e509ee18Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e509ee18Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e509ee18Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e509ee18Sopenharmony_ci# See the License for the specific language governing permissions and
12e509ee18Sopenharmony_ci# limitations under the License.
13e509ee18Sopenharmony_ci
14e509ee18Sopenharmony_ci#####################################hydra-fuzz###############################
15e509ee18Sopenharmony_ciimport("//arkcompiler/toolchain/test/test_helper.gni")
16e509ee18Sopenharmony_ciimport("//build/config/features.gni")
17e509ee18Sopenharmony_ciimport("//build/ohos.gni")
18e509ee18Sopenharmony_ciimport("//build/test.gni")
19e509ee18Sopenharmony_ci
20e509ee18Sopenharmony_ci####################################fuzztest##################################
21e509ee18Sopenharmony_ciohos_fuzztest("InitializeDebuggerFuzzTest") {
22e509ee18Sopenharmony_ci  module_out_path = toolchain_output_path
23e509ee18Sopenharmony_ci
24e509ee18Sopenharmony_ci  fuzz_config_file =
25e509ee18Sopenharmony_ci      "//arkcompiler/toolchain/test/fuzztest/initializedebugger_fuzzer"
26e509ee18Sopenharmony_ci
27e509ee18Sopenharmony_ci  resource_config_file =
28e509ee18Sopenharmony_ci      "//arkcompiler/toolchain/test/resource/tooling/ohos_test.xml"
29e509ee18Sopenharmony_ci
30e509ee18Sopenharmony_ci  sources = [ "initializedebugger_fuzzer.cpp" ]
31e509ee18Sopenharmony_ci
32e509ee18Sopenharmony_ci  configs = [ "//arkcompiler/toolchain:toolchain_test_config" ]
33e509ee18Sopenharmony_ci
34e509ee18Sopenharmony_ci  deps = [ "../../../tooling:libark_ecma_debugger_set" ]
35e509ee18Sopenharmony_ci
36e509ee18Sopenharmony_ci  # hiviewdfx libraries
37e509ee18Sopenharmony_ci  external_deps = hiviewdfx_ext_deps
38e509ee18Sopenharmony_ci  external_deps += [
39e509ee18Sopenharmony_ci    "cJSON:cjson",
40e509ee18Sopenharmony_ci    "ets_runtime:libark_jsruntime",
41e509ee18Sopenharmony_ci    "libuv:uv",
42e509ee18Sopenharmony_ci    sdk_libc_secshared_dep,
43e509ee18Sopenharmony_ci  ]
44e509ee18Sopenharmony_ci  deps += hiviewdfx_deps
45e509ee18Sopenharmony_ci}
46e509ee18Sopenharmony_ci
47e509ee18Sopenharmony_cigroup("fuzztest") {
48e509ee18Sopenharmony_ci  testonly = true
49e509ee18Sopenharmony_ci  deps = []
50e509ee18Sopenharmony_ci  deps += [ ":InitializeDebuggerFuzzTest" ]
51e509ee18Sopenharmony_ci}
52