1# Copyright (c) 2024 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") 15import("//foundation/graphic/graphic_surface/graphic_surface_config.gni") 16 17module_out_path = "graphic_surface/surface" 18 19group("systemtest") { 20 testonly = true 21 22 deps = [ 23 ":native_window_buffer_test", 24 ":native_window_test", 25 ":surface_ipc_test", 26 ] 27} 28 29## SystemTest native_window_buffer_test {{{ 30ohos_systemtest("native_window_buffer_test") { 31 module_out_path = module_out_path 32 33 sources = [ "native_window_buffer_test.cpp" ] 34 35 include_dirs = [ "$graphic_surface_root/surface/include" ] 36 37 cflags = [ 38 "-Wall", 39 "-Werror", 40 "-g3", 41 "-Dprivate=public", 42 "-Dprotected=public", 43 ] 44 45 deps = [ 46 "$graphic_surface_root/buffer_handle:buffer_handle", 47 "$graphic_surface_root/surface:surface", 48 ] 49 50 external_deps = [ 51 "access_token:libaccesstoken_sdk", 52 "access_token:libnativetoken", 53 "access_token:libtoken_setproc", 54 "c_utils:utils", 55 "googletest:gtest_main", 56 "hilog:libhilog", 57 "ipc:ipc_core", 58 "samgr:samgr_proxy", 59 ] 60} 61 62## SystemTest native_window_buffer_test }}} 63 64## SystemTest native_window_test {{{ 65ohos_systemtest("native_window_test") { 66 module_out_path = module_out_path 67 68 sources = [ "native_window_test.cpp" ] 69 70 include_dirs = [ "$graphic_surface_root/surface/include" ] 71 72 cflags = [ 73 "-Wall", 74 "-Werror", 75 "-g3", 76 "-Dprivate=public", 77 "-Dprotected=public", 78 ] 79 80 deps = [ 81 "$graphic_surface_root/buffer_handle:buffer_handle", 82 "$graphic_surface_root/surface:surface", 83 ] 84 85 external_deps = [ 86 "c_utils:utils", 87 "googletest:gtest_main", 88 "hilog:libhilog", 89 "ipc:ipc_core", 90 ] 91} 92 93## SystemTest native_window_test }}} 94 95## SystemTest surface_ipc_test {{{ 96ohos_systemtest("surface_ipc_test") { 97 module_out_path = module_out_path 98 99 sources = [ "surface_ipc_test.cpp" ] 100 101 include_dirs = [ "$graphic_surface_root/surface/include" ] 102 103 cflags = [ 104 "-Wall", 105 "-Werror", 106 "-g3", 107 ] 108 109 deps = [ "$graphic_surface_root/surface:surface" ] 110 111 external_deps = [ 112 "access_token:libaccesstoken_sdk", 113 "access_token:libnativetoken", 114 "access_token:libtoken_setproc", 115 "c_utils:utils", 116 "googletest:gtest_main", 117 "hilog:libhilog", 118 "ipc:ipc_core", 119 "samgr:samgr_proxy", 120 ] 121} 122## SystemTest surface_ipc_test }}} 123