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    ":vsync_ltpo_test",
23    ":vsync_test",
24  ]
25}
26
27## SystemTest vsync_test {{{
28ohos_systemtest("vsync_test") {
29  module_out_path = module_out_path
30
31  sources = [ "vsync_test.cpp" ]
32
33  include_dirs = [
34    "//foundation/graphic/graphic_2d/interfaces/inner_api/common",
35    "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include",
36    "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test",
37    "//utils/system/safwk/native/include",
38    "//base/security/access_token/interfaces/innerkits/nativetoken/include",
39    "//base/security/access_token/interfaces/innerkits/accesstoken/include",
40    "//base/security/access_token/interfaces/innerkits/token_setproc/include",
41  ]
42
43  cflags = [
44    "-Wall",
45    "-Werror",
46    "-g3",
47  ]
48
49  deps = [
50    "//base/security/access_token/interfaces/innerkits/accesstoken:libaccesstoken_sdk",
51    "//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
52    "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
53    "//foundation/communication/ipc/interfaces/innerkits/ipc_core:ipc_core",
54    "//foundation/graphic/graphic_2d/rosen/modules/composer/vsync:libvsync",
55    "//foundation/graphic/graphic_2d/utils:socketpair",
56    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
57    "//third_party/googletest:gtest_main",
58  ]
59  external_deps = [ "c_utils:utils" ]
60}
61
62## SystemTest vsync_test }}}
63
64## SystemTest vsync_ltpo_test {{{
65ohos_systemtest("vsync_ltpo_test") {
66  module_out_path = module_out_path
67
68  sources = [ "vsync_ltpo_test.cpp" ]
69
70  include_dirs = [
71    "../../../../../../interfaces/inner_api/common",
72    "../../include",
73  ]
74
75  cflags = [
76    "-Wall",
77    "-Werror",
78    "-g3",
79  ]
80
81  deps = [
82    "../../../../../../utils:socketpair",
83    "../../../vsync:libvsync",
84    "//third_party/googletest:gtest_main",
85  ]
86  external_deps = [
87    "access_token:libaccesstoken_sdk",
88    "access_token:libnativetoken",
89    "access_token:libtoken_setproc",
90    "c_utils:utils",
91    "ipc:ipc_core",
92    "samgr:samgr_proxy",
93  ]
94}
95## SystemTest vsync_ltpo_test }}}
96