• 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("//build/test.gni")
15
16module_out_path = "graphic_standard/composer"
17
18group("systemtest") {
19  testonly = true
20
21  deps = [
22    ":hdibackend_sys_test",
23    ":hdilayer_sys_test",
24    ":hdioutput_sys_test",
25    ":hdiscreen_sys_test",
26  ]
27}
28
29## SystemTest hdibackend_sys_test {{{
30ohos_systemtest("hdibackend_sys_test") {
31  module_out_path = module_out_path
32  sources = [
33    "hdibackend_test.cpp",
34    "hdilayer_context_systest.cpp",
35    "mock_hdi_device_systest.cpp",
36  ]
37
38  include_dirs = [
39    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
40    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
41    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
42  ]
43
44  cflags = [
45    "-Wall",
46    "-Werror",
47    "-g3",
48  ]
49
50  deps = [
51    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
52    "//foundation/graphic/graphic_2d:libsurface",
53    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
54    "//foundation/graphic/graphic_2d/utils:socketpair",
55    "//third_party/googletest:gmock_main",
56    "//third_party/googletest:gtest_main",
57  ]
58}
59
60## SystemTest hdibackend_sys_test }}}
61
62## SystemTest hdilayer_sys_test {{{
63ohos_systemtest("hdilayer_sys_test") {
64  module_out_path = module_out_path
65
66  sources = [ "hdilayer_test.cpp" ]
67
68  include_dirs = [
69    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
70    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
71    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
72  ]
73
74  cflags = [
75    "-Wall",
76    "-Werror",
77    "-g3",
78  ]
79
80  deps = [
81    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
82    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
83    "//foundation/graphic/graphic_2d/utils:socketpair",
84    "//third_party/googletest:gmock_main",
85    "//third_party/googletest:gtest_main",
86  ]
87}
88
89## SystemTest hdilayer_sys_test }}}
90
91## SystemTest hdioutput_sys_test {{{
92ohos_systemtest("hdioutput_sys_test") {
93  module_out_path = module_out_path
94  sources = [
95    "hdilayer_context_systest.cpp",
96    "hdioutput_test.cpp",
97  ]
98
99  include_dirs = [
100    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
101    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
102    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
103  ]
104
105  cflags = [
106    "-Wall",
107    "-Werror",
108    "-g3",
109  ]
110
111  deps = [
112    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
113    "//foundation/graphic/graphic_2d:libsurface",
114    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
115    "//foundation/graphic/graphic_2d/utils:socketpair",
116    "//third_party/googletest:gtest_main",
117  ]
118}
119
120## SystemTest hdioutput_sys_test }}}
121
122## SystemTest hdiscreen_sys_test {{{
123ohos_systemtest("hdiscreen_sys_test") {
124  module_out_path = module_out_path
125
126  sources = [
127    "hdiscreen_test.cpp",
128    "mock_hdi_device_systest.cpp",
129  ]
130
131  include_dirs = [
132    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
133    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
134    "//foundation/graphic/graphic_2d/interfaces/inner_api/surface",
135  ]
136
137  cflags = [
138    "-Wall",
139    "-Werror",
140    "-g3",
141  ]
142
143  deps = [
144    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
145    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
146    "//foundation/graphic/graphic_2d/utils:socketpair",
147    "//third_party/googletest:gmock_main",
148    "//third_party/googletest:gtest_main",
149  ]
150}
151## SystemTest hdiscreen_sys_test }}}
152