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 33 if (target_cpu == "arm") { 34 cflags += [ "-DBINDER_IPC_32BIT" ] 35 } 36 37 deps = [ 38 "${bgtaskmgr_services_path}:bgtaskmgr_service_static", 39 "//third_party/googletest:gtest_main", 40 ] 41 42 external_deps = [ 43 "ability_base:want", 44 "ability_base:zuri", 45 "ability_runtime:ability_manager", 46 "ability_runtime:app_manager", 47 "ability_runtime:wantagent_innerkits", 48 "access_token:libaccesstoken_sdk", 49 "bundle_framework:appexecfwk_base", 50 "bundle_framework:appexecfwk_core", 51 "c_utils:utils", 52 "common_event_service:cesfwk_innerkits", 53 "eventhandler:libeventhandler", 54 "hilog:libhilog", 55 "hisysevent:libhisysevent", 56 "init:libbegetutil", 57 "ipc:ipc_single", 58 "relational_store:native_rdb", 59 "resource_management:global_resmgr", 60 "safwk:system_ability_fwk", 61 "samgr:samgr_proxy", 62 ] 63} 64 65group("systemtest") { 66 testonly = true 67 68 deps = [ ":BgtaskDumpTest" ] 69} 70