• 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("//build/test.gni")
15
16module_out_path = "window_manager/dms"
17
18group("systemtest") {
19  testonly = true
20
21  deps = [
22    ":dms_display_change_test",
23    ":dms_display_manager_test",
24    ":dms_display_minimal_test",
25    ":dms_display_power_test",
26    ":dms_screenshot_test",
27    ":dms_screen_manager_test",
28  ]
29}
30
31ohos_systemtest("dms_display_minimal_test") {
32  module_out_path = module_out_path
33
34  sources = [ "display_minimal_test.cpp" ]
35
36  deps = [ ":dms_systemtest_common" ]
37}
38
39ohos_systemtest("dms_display_manager_test") {
40  module_out_path = module_out_path
41
42  sources = [ "display_manager_test.cpp" ]
43
44  deps = [ ":dms_systemtest_common" ]
45}
46
47ohos_systemtest("dms_display_power_test") {
48  module_out_path = module_out_path
49
50  sources = [ "display_power_test.cpp" ]
51
52  deps = [ ":dms_systemtest_common" ]
53}
54
55ohos_systemtest("dms_display_change_test") {
56  module_out_path = module_out_path
57
58  sources = [ "display_change_test.cpp" ]
59
60  deps = [ ":dms_systemtest_common" ]
61}
62
63ohos_systemtest("dms_screenshot_test") {
64  module_out_path = module_out_path
65
66  sources = [ "screenshot_test.cpp" ]
67
68  deps = [ ":dms_systemtest_common" ]
69}
70
71ohos_systemtest("dms_screen_manager_test") {
72  module_out_path = module_out_path
73
74  sources = [ "screen_manager_test.cpp" ]
75
76  deps = [ ":dms_systemtest_common" ]
77
78  external_deps = [ "init:libbegetutil" ]
79}
80
81ohos_systemtest("dms_screen_gamut_test") {
82  module_out_path = module_out_path
83
84  sources = [ "screen_gamut_test.cpp" ]
85
86  deps = [ ":dms_systemtest_common" ]
87}
88
89## Build dms_systemtest_common.a {{{
90config("dms_systemtest_common_public_config") {
91  include_dirs = [
92    "//foundation/window/window_manager/dm/include",
93    "//foundation/window/window_manager/dmserver/include",
94    "//foundation/window/window_manager/interfaces/innerkits/dm",
95    "//foundation/window/window_manager/interfaces/innerkits/wm",
96    "//foundation/window/window_manager/test/common/utils/include",
97    "//foundation/window/window_manager/utils/include",
98
99    # RSSurface
100    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
101    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client",
102  ]
103}
104
105ohos_static_library("dms_systemtest_common") {
106  visibility = [ ":*" ]
107  testonly = true
108
109  sources = [ "display_test_utils.cpp" ]
110
111  public_configs = [
112    ":dms_systemtest_common_public_config",
113    "//foundation/window/window_manager/resources/config/build:coverage_flags",
114    "//foundation/window/window_manager/resources/config/build:testcase_flags",
115  ]
116
117  public_deps = [
118    "//commonlibrary/c_utils/base:utils",
119    "//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
120    "//foundation/multimodalinput/input/frameworks/proxy:libmmi-client",
121    "//foundation/window/window_manager/dm:libdm",
122    "//foundation/window/window_manager/dmserver:libdms",
123    "//foundation/window/window_manager/test/common/utils:libtestutil",
124    "//foundation/window/window_manager/utils:libwmutil",
125    "//foundation/window/window_manager/wm:libwm",
126    "//third_party/googletest:gmock",
127    "//third_party/googletest:gtest_main",
128  ]
129
130  external_deps = [
131    "access_token:libaccesstoken_sdk",
132    "access_token:libnativetoken",
133    "access_token:libtoken_setproc",
134    "hilog_native:libhilog",
135    "ipc:ipc_core",
136  ]
137  subsystem_name = "window"
138  part_name = "window_manager"
139}
140## Build dms_systemtest_common.a }}}
141