• 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 = [ "${tools_path}/cem/include" ]
21}
22
23ohos_systemtest("common_event_command_dump_system_test") {
24  module_out_path = module_output_path
25
26  sources = [ "common_event_command_dump_system_test.cpp" ]
27
28  configs = [ ":tools_cem_test_config" ]
29
30  cflags = []
31  if (target_cpu == "arm") {
32    cflags += [ "-DBINDER_IPC_32BIT" ]
33  }
34
35  deps = [
36    "${ces_core_path}:cesfwk_core",
37    "${ces_native_path}:cesfwk_innerkits",
38    "//third_party/googletest:gtest_main",
39  ]
40
41  external_deps = [
42    "ability_base:want",
43    "bundle_framework:appexecfwk_core",
44    "c_utils:utils",
45    "eventhandler:libeventhandler",
46    "hilog:libhilog",
47    "ipc:ipc_core",
48  ]
49}
50
51ohos_systemtest("common_event_command_publish_system_test") {
52  module_out_path = module_output_path
53
54  include_dirs = [ "${ability_runtime_path}/tools/test/systemtest/aa" ]
55
56  sources = [ "common_event_command_publish_system_test.cpp" ]
57
58  configs = [ ":tools_cem_test_config" ]
59
60  cflags = []
61  if (target_cpu == "arm") {
62    cflags += [ "-DBINDER_IPC_32BIT" ]
63  }
64
65  deps = [
66    "${ces_core_path}:cesfwk_core",
67    "${ces_native_path}:cesfwk_innerkits",
68    "//third_party/googletest:gtest_main",
69  ]
70
71  external_deps = [
72    "ability_base:want",
73    "access_token:libnativetoken",
74    "access_token:libtoken_setproc",
75    "bundle_framework:appexecfwk_core",
76    "c_utils:utils",
77    "eventhandler:libeventhandler",
78    "hilog:libhilog",
79    "ipc:ipc_core",
80  ]
81}
82
83group("systemtest") {
84  testonly = true
85
86  deps = [
87    ":common_event_command_dump_system_test",
88    ":common_event_command_publish_system_test",
89  ]
90}
91