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_2d/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  ]
42
43  cflags = [
44    "-Wall",
45    "-Werror",
46    "-g3",
47  ]
48
49  deps = [
50    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
51    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
52    "//foundation/graphic/graphic_2d/utils:socketpair",
53    "//third_party/googletest:gmock_main",
54    "//third_party/googletest:gtest_main",
55  ]
56
57  external_deps = [
58    "c_utils:utils",
59    "graphic_surface:surface",
60    "hilog:libhilog",
61  ]
62}
63
64## SystemTest hdibackend_sys_test }}}
65
66## SystemTest hdilayer_sys_test {{{
67ohos_systemtest("hdilayer_sys_test") {
68  module_out_path = module_out_path
69
70  sources = [ "hdilayer_test.cpp" ]
71
72  include_dirs = [
73    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
74    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
75  ]
76
77  cflags = [
78    "-Wall",
79    "-Werror",
80    "-g3",
81  ]
82
83  deps = [
84    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
85    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
86    "//foundation/graphic/graphic_2d/utils:socketpair",
87    "//third_party/googletest:gmock_main",
88    "//third_party/googletest:gtest_main",
89  ]
90
91  external_deps = [
92    "c_utils:utils",
93    "graphic_surface:surface",
94    "hilog:libhilog",
95  ]
96}
97
98## SystemTest hdilayer_sys_test }}}
99
100## SystemTest hdioutput_sys_test {{{
101ohos_systemtest("hdioutput_sys_test") {
102  module_out_path = module_out_path
103  sources = [
104    "hdilayer_context_systest.cpp",
105    "hdioutput_test.cpp",
106    "mock_hdi_device_systest.cpp",
107  ]
108
109  include_dirs = [
110    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
111    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
112  ]
113
114  cflags = [
115    "-Wall",
116    "-Werror",
117    "-g3",
118  ]
119
120  deps = [
121    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
122    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
123    "//foundation/graphic/graphic_2d/utils:socketpair",
124    "//third_party/googletest:gmock_main",
125    "//third_party/googletest:gtest_main",
126  ]
127
128  external_deps = [
129    "c_utils:utils",
130    "graphic_surface:surface",
131    "hilog:libhilog",
132  ]
133}
134
135## SystemTest hdioutput_sys_test }}}
136
137## SystemTest hdiscreen_sys_test {{{
138ohos_systemtest("hdiscreen_sys_test") {
139  module_out_path = module_out_path
140
141  sources = [
142    "hdiscreen_test.cpp",
143    "mock_hdi_device_systest.cpp",
144  ]
145
146  include_dirs = [
147    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/include",
148    "//foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test",
149  ]
150
151  cflags = [
152    "-Wall",
153    "-Werror",
154    "-g3",
155  ]
156
157  deps = [
158    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
159    "//foundation/graphic/graphic_2d/rosen/modules/composer:libcomposer",
160    "//foundation/graphic/graphic_2d/utils:socketpair",
161    "//third_party/googletest:gmock_main",
162    "//third_party/googletest:gtest_main",
163  ]
164
165  external_deps = [
166    "c_utils:utils",
167    "graphic_surface:surface",
168    "hilog:libhilog",
169  ]
170}
171## SystemTest hdiscreen_sys_test }}}
172