• 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_service_ability_test") {
20  module_out_path = module_output_path
21
22  include_dirs = [
23    "//foundation/distributedschedule/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_service_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}/interfaces/innerkits/want:want",
46    "${aafwk_path}/services/abilitymgr:abilityms",
47    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
48    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
49    "${appexecfwk_path}/interfaces/innerkits/libeventhandler:libeventhandler",
50    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
51    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
52    "//third_party/googletest:gtest_main",
53    "//third_party/jsoncpp:jsoncpp",
54    "//utils/native/base:utils",
55  ]
56
57  external_deps = [
58    "ces_standard:cesfwk_core",
59    "ces_standard:cesfwk_innerkits",
60    "hiviewdfx_hilog_native:libhilog",
61    "ipc:ipc_core",
62  ]
63}
64
65group("systemtest") {
66  testonly = true
67
68  deps = [ ":ams_service_ability_test" ]
69}
70