11ebd3d54Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 21ebd3d54Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 31ebd3d54Sopenharmony_ci# you may not use this file except in compliance with the License. 41ebd3d54Sopenharmony_ci# You may obtain a copy of the License at 51ebd3d54Sopenharmony_ci# 61ebd3d54Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 71ebd3d54Sopenharmony_ci# 81ebd3d54Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 91ebd3d54Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 101ebd3d54Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 111ebd3d54Sopenharmony_ci# See the License for the specific language governing permissions and 121ebd3d54Sopenharmony_ci# limitations under the License. 131ebd3d54Sopenharmony_ci 141ebd3d54Sopenharmony_ciimport("//build/test.gni") 151ebd3d54Sopenharmony_ciimport("//foundation/resourceschedule/background_task_mgr/bgtaskmgr.gni") 161ebd3d54Sopenharmony_ci 171ebd3d54Sopenharmony_ciconfig("system_test_config") { 181ebd3d54Sopenharmony_ci include_dirs = [ "//third_party/json/include" ] 191ebd3d54Sopenharmony_ci 201ebd3d54Sopenharmony_ci configs = [] 211ebd3d54Sopenharmony_ci} 221ebd3d54Sopenharmony_ci 231ebd3d54Sopenharmony_cimodule_output_path = "background_task_mgr/systemtest" 241ebd3d54Sopenharmony_ciohos_systemtest("BgtaskDumpTest") { 251ebd3d54Sopenharmony_ci module_out_path = module_output_path 261ebd3d54Sopenharmony_ci 271ebd3d54Sopenharmony_ci sources = [ "bgtask_dump_test.cpp" ] 281ebd3d54Sopenharmony_ci 291ebd3d54Sopenharmony_ci include_dirs = [ "//third_party/json/single_include" ] 301ebd3d54Sopenharmony_ci 311ebd3d54Sopenharmony_ci cflags = [ 321ebd3d54Sopenharmony_ci "-Dprivate=public", 331ebd3d54Sopenharmony_ci "-Dprotected=public", 341ebd3d54Sopenharmony_ci ] 351ebd3d54Sopenharmony_ci 361ebd3d54Sopenharmony_ci if (target_cpu == "arm") { 371ebd3d54Sopenharmony_ci cflags += [ "-DBINDER_IPC_32BIT" ] 381ebd3d54Sopenharmony_ci } 391ebd3d54Sopenharmony_ci 401ebd3d54Sopenharmony_ci deps = [ 411ebd3d54Sopenharmony_ci "${bgtaskmgr_interfaces_path}/innerkits:bgtaskmgr_innerkits", 421ebd3d54Sopenharmony_ci "${bgtaskmgr_services_path}:bgtaskmgr_service_static", 431ebd3d54Sopenharmony_ci "//third_party/googletest:gtest_main", 441ebd3d54Sopenharmony_ci ] 451ebd3d54Sopenharmony_ci 461ebd3d54Sopenharmony_ci external_deps = [ 471ebd3d54Sopenharmony_ci "ability_base:want", 481ebd3d54Sopenharmony_ci "ability_base:zuri", 491ebd3d54Sopenharmony_ci "ability_runtime:ability_manager", 501ebd3d54Sopenharmony_ci "ability_runtime:app_manager", 511ebd3d54Sopenharmony_ci "ability_runtime:wantagent_innerkits", 521ebd3d54Sopenharmony_ci "access_token:libaccesstoken_sdk", 531ebd3d54Sopenharmony_ci "bundle_framework:appexecfwk_base", 541ebd3d54Sopenharmony_ci "bundle_framework:appexecfwk_core", 551ebd3d54Sopenharmony_ci "c_utils:utils", 561ebd3d54Sopenharmony_ci "common_event_service:cesfwk_innerkits", 571ebd3d54Sopenharmony_ci "eventhandler:libeventhandler", 581ebd3d54Sopenharmony_ci "hilog:libhilog", 591ebd3d54Sopenharmony_ci "hisysevent:libhisysevent", 601ebd3d54Sopenharmony_ci "init:libbegetutil", 611ebd3d54Sopenharmony_ci "ipc:ipc_single", 621ebd3d54Sopenharmony_ci "relational_store:native_rdb", 631ebd3d54Sopenharmony_ci "resource_management:global_resmgr", 641ebd3d54Sopenharmony_ci "safwk:system_ability_fwk", 651ebd3d54Sopenharmony_ci "samgr:samgr_proxy", 661ebd3d54Sopenharmony_ci ] 671ebd3d54Sopenharmony_ci} 681ebd3d54Sopenharmony_ci 691ebd3d54Sopenharmony_cigroup("systemtest") { 701ebd3d54Sopenharmony_ci testonly = true 711ebd3d54Sopenharmony_ci 721ebd3d54Sopenharmony_ci deps = [ ":BgtaskDumpTest" ] 731ebd3d54Sopenharmony_ci} 74