• 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/test.gni")
15import("//foundation/appexecfwk/standard/appexecfwk.gni")
16
17module_output_path = "appexecfwk_standard/ams"
18
19ohos_systemtest("ams_data_ability_test") {
20  module_out_path = module_output_path
21
22  include_dirs = [
23    "//foundation/distributedschedule/safwk/services/safwk/include",
24    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/include",
25    "//third_party/jsoncpp/include",
26  ]
27
28  sources = [
29    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/event.cpp",
30    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/module_test_dump_util.cpp",
31    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/stoperator.cpp",
32    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/system_test_ability_util.cpp",
33    "ams_data_ability_test.cpp",
34  ]
35
36  configs = [
37    "${aafwk_path}/services/abilitymgr:abilityms_config",
38    "${appexecfwk_path}/services/appmgr:appmgr_config",
39  ]
40  cflags = []
41  if (target_cpu == "arm") {
42    cflags += [ "-DBINDER_IPC_32BIT" ]
43  }
44  deps = [
45    "${aafwk_path}/frameworks/kits/ability/native:dummy_classes",
46    "${aafwk_path}/interfaces/innerkits/want:want",
47    "${aafwk_path}/services/abilitymgr:abilityms",
48    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
49    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
50    "${appexecfwk_path}/interfaces/innerkits/libeventhandler:libeventhandler",
51    "//foundation/distributedschedule/dmsfwk/interfaces/innerkits/uri:zuri",
52    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
53    "//third_party/googletest:gtest_main",
54    "//third_party/jsoncpp:jsoncpp",
55    "//utils/native/base:utils",
56  ]
57
58  external_deps = [
59    "ces_standard:cesfwk_core",
60    "ces_standard:cesfwk_innerkits",
61    "hiviewdfx_hilog_native:libhilog",
62    "ipc:ipc_core",
63  ]
64}
65
66group("systemtest") {
67  testonly = true
68
69  deps = [ ":ams_data_ability_test" ]
70}
71