1# Copyright (c) 2022 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/resourceschedule/background_task_mgr/bgtaskmgr.gni") 16 17config("system_test_config") { 18 include_dirs = [ "//third_party/json/include" ] 19 20 configs = [] 21} 22 23module_output_path = "background_task_mgr/systemtest" 24ohos_systemtest("BgtaskDumpTest") { 25 module_out_path = module_output_path 26 27 sources = [ "bgtask_dump_test.cpp" ] 28 29 include_dirs = [ "//third_party/json/single_include" ] 30 31 cflags = [ 32 "-Dprivate=public", 33 "-Dprotected=public", 34 ] 35 36 if (target_cpu == "arm") { 37 cflags += [ "-DBINDER_IPC_32BIT" ] 38 } 39 40 deps = [ 41 "${bgtaskmgr_interfaces_path}/innerkits:bgtaskmgr_innerkits", 42 "${bgtaskmgr_services_path}:bgtaskmgr_service_static", 43 "//third_party/googletest:gtest_main", 44 ] 45 46 external_deps = [ 47 "ability_base:want", 48 "ability_base:zuri", 49 "ability_runtime:ability_manager", 50 "ability_runtime:app_manager", 51 "ability_runtime:wantagent_innerkits", 52 "access_token:libaccesstoken_sdk", 53 "bundle_framework:appexecfwk_base", 54 "bundle_framework:appexecfwk_core", 55 "c_utils:utils", 56 "common_event_service:cesfwk_innerkits", 57 "eventhandler:libeventhandler", 58 "hilog:libhilog", 59 "hisysevent:libhisysevent", 60 "init:libbegetutil", 61 "ipc:ipc_single", 62 "relational_store:native_rdb", 63 "resource_management:global_resmgr", 64 "safwk:system_ability_fwk", 65 "samgr:samgr_proxy", 66 ] 67} 68 69group("systemtest") { 70 testonly = true 71 72 deps = [ ":BgtaskDumpTest" ] 73} 74