• 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_2d/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/graphic/graphic_2d/rosen/modules/composer:libcomposer",
51    "//foundation/graphic/graphic_2d/utils:socketpair",
52  ]
53
54  external_deps = [
55    "c_utils:utils",
56    "googletest:gmock_main",
57    "googletest:gtest_main",
58    "graphic_surface:surface",
59    "hilog:libhilog",
60    "ipc:ipc_core",
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/graphic/graphic_2d/rosen/modules/composer:libcomposer",
85    "//foundation/graphic/graphic_2d/utils:socketpair",
86  ]
87
88  external_deps = [
89    "c_utils:utils",
90    "googletest:gmock_main",
91    "googletest:gtest_main",
92    "graphic_surface:surface",
93    "hilog:libhilog",
94    "ipc:ipc_core",
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/graphic/graphic_2d/rosen/modules/composer:libcomposer",
122    "//foundation/graphic/graphic_2d/utils:socketpair",
123  ]
124
125  external_deps = [
126    "c_utils:utils",
127    "googletest:gmock_main",
128    "googletest:gtest_main",
129    "graphic_surface:surface",
130    "hilog:libhilog",
131    "ipc:ipc_core",
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/graphic/graphic_2d/rosen/modules/composer:libcomposer",
159    "//foundation/graphic/graphic_2d/utils:socketpair",
160  ]
161
162  external_deps = [
163    "c_utils:utils",
164    "googletest:gmock_main",
165    "googletest:gtest_main",
166    "graphic_surface:surface",
167    "hilog:libhilog",
168    "ipc:ipc_core",
169  ]
170}
171## SystemTest hdiscreen_sys_test }}}
172