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