• 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  include_dirs = [
30    "//third_party/json/single_include",
31    "//commonlibrary/c_utils/base/include",
32    "//utils/system/safwk/native/include",
33  ]
34
35  cflags = []
36
37  if (target_cpu == "arm") {
38    cflags += [ "-DBINDER_IPC_32BIT" ]
39  }
40
41  deps = [
42    "${bgtaskmgr_services_path}:bgtaskmgr_service",
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    "hiviewdfx_hilog_native:libhilog",
59    "init:libbegetutil",
60    "ipc:ipc_core",
61    "relational_store:native_rdb",
62    "resource_management:global_resmgr",
63    "safwk:system_ability_fwk",
64    "samgr:samgr_proxy",
65  ]
66}
67
68group("systemtest") {
69  testonly = true
70
71  deps = [ ":BgtaskDumpTest" ]
72}
73