• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/notification/common_event_service/event.gni")
15import("//build/test.gni")
16
17module_output_path = "common_event_service/tools"
18
19config("tools_cem_test_config") {
20  include_dirs = [
21    "${tools_path}/cem/include",
22    "//commonlibrary/c_utils/base/include",
23  ]
24}
25
26ohos_systemtest("common_event_command_dump_system_test") {
27  module_out_path = module_output_path
28
29  sources = [ "common_event_command_dump_system_test.cpp" ]
30
31  configs = [ ":tools_cem_test_config" ]
32
33  cflags = []
34  if (target_cpu == "arm") {
35    cflags += [ "-DBINDER_IPC_32BIT" ]
36  }
37
38  deps = [
39    "${ces_common_path}:libevent_common",
40    "${ces_core_path}:cesfwk_core",
41    "${ces_native_path}:cesfwk_innerkits",
42    "//third_party/googletest:gtest_main",
43  ]
44
45  external_deps = [
46    "ability_base:want",
47    "bundle_framework:appexecfwk_core",
48    "c_utils:utils",
49    "eventhandler:libeventhandler",
50    "hiviewdfx_hilog_native:libhilog",
51    "ipc:ipc_core",
52  ]
53}
54
55ohos_systemtest("common_event_command_publish_system_test") {
56  module_out_path = module_output_path
57
58  include_dirs = [ "${ability_runtime_path}/tools/test/systemtest/aa" ]
59
60  sources = [ "common_event_command_publish_system_test.cpp" ]
61
62  configs = [ ":tools_cem_test_config" ]
63
64  cflags = []
65  if (target_cpu == "arm") {
66    cflags += [ "-DBINDER_IPC_32BIT" ]
67  }
68
69  deps = [
70    "${ces_common_path}:libevent_common",
71    "${ces_core_path}:cesfwk_core",
72    "${ces_native_path}:cesfwk_innerkits",
73    "//third_party/googletest:gtest_main",
74  ]
75
76  external_deps = [
77    "ability_base:want",
78    "bundle_framework:appexecfwk_core",
79    "c_utils:utils",
80    "eventhandler:libeventhandler",
81    "hiviewdfx_hilog_native:libhilog",
82    "ipc:ipc_core",
83  ]
84}
85
86group("systemtest") {
87  testonly = true
88
89  deps = [
90    ":common_event_command_dump_system_test",
91    ":common_event_command_publish_system_test",
92  ]
93}
94