• 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.
13import("//build/test.gni")
14import("//foundation/appexecfwk/standard/appexecfwk.gni")
15
16module_output_path = "appexecfwk_standard/ams"
17
18ohos_systemtest("ams_aa_command_test") {
19  module_out_path = module_output_path
20
21  include_dirs = [
22    "//foundation/distributedschedule/safwk/services/safwk/include",
23    "//foundation/aafwk/standard/tools/aa/include",
24    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/include",
25    "//foundation/distributedschedule/safwk/services/safwk/include",
26    "//third_party/jsoncpp/include",
27  ]
28
29  sources = [
30    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/event.cpp",
31    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/module_test_dump_util.cpp",
32    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/stoperator.cpp",
33    "//foundation/appexecfwk/standard/test/systemtest/common/ams/tool/src/system_test_ability_util.cpp",
34    "ams_aa_command_test.cpp",
35  ]
36
37  configs = [
38    "//foundation/aafwk/standard/services/abilitymgr:abilityms_config",
39    "${appexecfwk_path}/services/appmgr:appmgr_config",
40  ]
41  cflags = []
42  if (target_cpu == "arm") {
43    cflags += [ "-DBINDER_IPC_32BIT" ]
44  }
45  deps = [
46    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
47    "//foundation/aafwk/standard/services/abilitymgr:abilityms",
48    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_base:appexecfwk_base",
49    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core:appexecfwk_core",
50    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler:libeventhandler",
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_aa_command_test" ]
69}
70