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