140f5d65dSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
240f5d65dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
340f5d65dSopenharmony_ci# you may not use this file except in compliance with the License.
440f5d65dSopenharmony_ci# You may obtain a copy of the License at
540f5d65dSopenharmony_ci#
640f5d65dSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
740f5d65dSopenharmony_ci#
840f5d65dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
940f5d65dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1040f5d65dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1140f5d65dSopenharmony_ci# See the License for the specific language governing permissions and
1240f5d65dSopenharmony_ci# limitations under the License.
1340f5d65dSopenharmony_ci
1440f5d65dSopenharmony_ciimport("//build/test.gni")
1540f5d65dSopenharmony_ciimport("//foundation/filemanagement/app_file_service/backup.gni")
1640f5d65dSopenharmony_ci
1740f5d65dSopenharmony_ciohos_unittest("tools_op_test") {
1840f5d65dSopenharmony_ci  branch_protector_ret = "pac_ret"
1940f5d65dSopenharmony_ci  sanitize = {
2040f5d65dSopenharmony_ci    integer_overflow = true
2140f5d65dSopenharmony_ci    cfi = true
2240f5d65dSopenharmony_ci    cfi_cross_dso = true
2340f5d65dSopenharmony_ci    debug = false
2440f5d65dSopenharmony_ci  }
2540f5d65dSopenharmony_ci
2640f5d65dSopenharmony_ci  module_out_path = path_module_out_tests
2740f5d65dSopenharmony_ci
2840f5d65dSopenharmony_ci  sources = [ "tool_help_test.cpp" ]
2940f5d65dSopenharmony_ci
3040f5d65dSopenharmony_ci  deps = [
3140f5d65dSopenharmony_ci    "${path_backup}/tests/utils:backup_test_utils",
3240f5d65dSopenharmony_ci    "${path_backup}/utils/:backup_utils",
3340f5d65dSopenharmony_ci  ]
3440f5d65dSopenharmony_ci
3540f5d65dSopenharmony_ci  external_deps = [
3640f5d65dSopenharmony_ci    "hilog:libhilog",
3740f5d65dSopenharmony_ci    "hitrace:hitrace_meter",
3840f5d65dSopenharmony_ci  ]
3940f5d65dSopenharmony_ci
4040f5d65dSopenharmony_ci  use_exceptions = true
4140f5d65dSopenharmony_ci}
4240f5d65dSopenharmony_ci
4340f5d65dSopenharmony_cigroup("tools_test") {
4440f5d65dSopenharmony_ci  testonly = true
4540f5d65dSopenharmony_ci
4640f5d65dSopenharmony_ci  deps = [ ":tools_op_test" ]
4740f5d65dSopenharmony_ci}
48