• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021~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
14import("//base/hiviewdfx/hiview/hiview.gni")
15import("//build/ohos.gni")
16import("//build/test.gni")
17
18module_output_path = "hiview/hiview/smart_parser"
19
20config("smart_parser_test_config") {
21  include_dirs = [
22    "$hiview_root/utility/smart_parser",
23    "$hiview_root/utility/smart_parser/rule/include",
24    "$hiview_root/utility/smart_parser/feature_analysis/include",
25  ]
26
27  cflags_cc = [ "-DUNITTEST" ]
28}
29
30ohos_moduletest("SmartParserModuleTest") {
31  sources = [
32    "$hiview_root/utility/smart_parser/feature_analysis/feature_analysis.cpp",
33    "$hiview_root/utility/smart_parser/feature_analysis/log_util.cpp",
34    "$hiview_root/utility/smart_parser/rule/compose_rule.cpp",
35    "$hiview_root/utility/smart_parser/rule/extract_rule.cpp",
36    "$hiview_root/utility/smart_parser/rule/rule.cpp",
37    "$hiview_root/utility/smart_parser/smart_parser.cpp",
38    "moduletest/common/smart_parser_module_test.cpp",
39  ]
40
41  configs = [ ":smart_parser_test_config" ]
42
43  deps = [
44    "$hiview_base:hiviewbase_static_lib_for_tdd",
45    "//third_party/googletest:gtest_main",
46    "//third_party/jsoncpp:jsoncpp",
47  ]
48
49  module_out_path = module_output_path
50  resource_config_file = "./resource/ohos_test.xml"
51}
52