13f4cbf05Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
23f4cbf05Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33f4cbf05Sopenharmony_ci# you may not use this file except in compliance with the License.
43f4cbf05Sopenharmony_ci# You may obtain a copy of the License at
53f4cbf05Sopenharmony_ci#
63f4cbf05Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73f4cbf05Sopenharmony_ci#
83f4cbf05Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93f4cbf05Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103f4cbf05Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113f4cbf05Sopenharmony_ci# See the License for the specific language governing permissions and
123f4cbf05Sopenharmony_ci# limitations under the License.
133f4cbf05Sopenharmony_ci
143f4cbf05Sopenharmony_ciimport("//build/test.gni")
153f4cbf05Sopenharmony_ci
163f4cbf05Sopenharmony_cimodule_output_path = "commonlibrary_c_utils/file"
173f4cbf05Sopenharmony_ci
183f4cbf05Sopenharmony_ciohos_benchmarktest("FileTest") {
193f4cbf05Sopenharmony_ci  module_out_path = module_output_path
203f4cbf05Sopenharmony_ci  include_dirs = [ "../" ]
213f4cbf05Sopenharmony_ci  cflags = [
223f4cbf05Sopenharmony_ci    "-g",
233f4cbf05Sopenharmony_ci    "-O0",
243f4cbf05Sopenharmony_ci    "-Wno-unused-variable",
253f4cbf05Sopenharmony_ci    "-fno-omit-frame-pointer",
263f4cbf05Sopenharmony_ci  ]
273f4cbf05Sopenharmony_ci  sources = [ "file_benchmark_test.cpp" ]
283f4cbf05Sopenharmony_ci
293f4cbf05Sopenharmony_ci  external_deps = [
303f4cbf05Sopenharmony_ci    "benchmark:benchmark",
313f4cbf05Sopenharmony_ci    "c_utils:utils",
323f4cbf05Sopenharmony_ci    "hilog:libhilog_base",
333f4cbf05Sopenharmony_ci  ]
343f4cbf05Sopenharmony_ci}
35