• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/ohos.gni")
15import("//build/test.gni")
16import("//foundation/appexecfwk/standard/appexecfwk.gni")
17module_output_path = "appexecfwk_standard/task_dispatcher/"
18
19config("system_test_task_dispatcher_config") {
20  include_dirs = [
21    "//foundation/aafwk/standard/common/task_dispatcher/include/threading",
22    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/include/task",
23    "//foundation/aafwk/standard/frameworks/kits/appkit/native/app/include",
24    "${aafwk_path}/interfaces/innerkits/intent/include",
25    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core/include/bundlemgr",
26    "${aafwk_path}/interfaces/innerkits/want/include",
27    "//utils/system/safwk/native/include",
28    "${aafwk_path}/interfaces/innerkits/app_manager/include/appmgr",
29    "${aafwk_path}/frameworks/kits/ability/native/include",
30    "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content",
31    "//third_party/json/include",
32    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
33  ]
34  cflags = []
35  if (target_cpu == "arm") {
36    cflags += [ "-DBINDER_IPC_32BIT" ]
37  }
38}
39
40ohos_systemtest("task_dispatcher_test") {
41  module_out_path = module_output_path
42
43  include_dirs = [
44    "//foundation/distributedschedule/safwk/services/safwk/include",
45    "//foundation/appexecfwk/standard/test/systemtest/common/task_dispatcher/include",
46    "//third_party/jsoncpp/include",
47    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/include",
48    "//base/notification/ces_standard/test/systemtest/common/resource",
49  ]
50
51  sources = [
52    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/event.cpp",
53    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/module_test_dump_util.cpp",
54    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/st_ability_util.cpp",
55    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/stoperator.cpp",
56    "src/task_dispatcher_test.cpp",
57    "src/task_dispatcher_tools.cpp",
58  ]
59
60  configs = [
61    "${aafwk_path}/services/abilitymgr:abilityms_config",
62    "${aafwk_path}/services/appmgr:appmgr_config",
63
64    # "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_config",
65
66    ":system_test_task_dispatcher_config",
67    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/:system_test_ability_util_config",
68    "//foundation/appexecfwk/standard/libs/libeventhandler:libeventhandler_config",
69  ]
70  cflags = []
71  if (target_cpu == "arm") {
72    cflags += [ "-DBINDER_IPC_32BIT" ]
73  }
74  deps = [
75    "${aafwk_path}/interfaces/innerkits/app_manager:app_manager",
76    "${aafwk_path}/interfaces/innerkits/uri:zuri",
77    "${aafwk_path}/interfaces/innerkits/want:want",
78    "${aafwk_path}/services/abilitymgr:abilityms",
79    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
80    "//foundation/aafwk/standard/frameworks/kits/appkit:appkit_native",
81    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
82    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
83    "//third_party/googletest:gtest_main",
84    "//third_party/jsoncpp:jsoncpp",
85    "//utils/native/base:utils",
86  ]
87
88  external_deps = [
89    "bundle_framework:appexecfwk_core",
90    "ces_standard:cesfwk_innerkits",
91    "hiviewdfx_hilog_native:libhilog",
92    "ipc:ipc_core",
93  ]
94}
95
96group("systemtest_task") {
97  testonly = true
98
99  deps = [ ":task_dispatcher_test" ]
100}
101