• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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")
16module_output_path = "bundle_framework/bundlemgrsst"
17
18ohos_systemtest("BundleMgrClientSystemTest") {
19  module_out_path = module_output_path
20
21  include_dirs = [ "//foundation/aafwk/standard/interfaces/innerkits/want/include/ohos/aafwk/content/" ]
22
23  sources = [ "bundle_mgr_client_system_test.cpp" ]
24  cflags = []
25  if (target_cpu == "arm") {
26    cflags += [ "-DBINDER_IPC_32BIT" ]
27  }
28  deps = [
29    "${common_path}:libappexecfwk_common",
30    "${innerkits_path}/appexecfwk_base:appexecfwk_base",
31    "${innerkits_path}/appexecfwk_core:appexecfwk_core",
32    "${services_path}/test/moduletest/utils:tool_common",
33    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
34    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
35    "//foundation/distributedschedule/safwk/interfaces/innerkits/safwk:system_ability_fwk",
36    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
37    "//third_party/googletest:gtest_main",
38  ]
39
40  defines = [ "APP_LOG_TAG = \"BundleMgrTool\"" ]
41
42  if (bundle_framework_graphics) {
43    public_deps = [
44      "//base/global/i18n_standard/frameworks/intl:intl_util",
45      "//base/global/resmgr_standard/frameworks/resmgr:global_resmgr",
46      "//third_party/icu/icu4c:shared_icuuc",
47      "//third_party/jsoncpp:jsoncpp",
48    ]
49  }
50
51  external_deps = [
52    "ces_standard:cesfwk_innerkits",
53    "hiviewdfx_hilog_native:libhilog",
54    "ipc:ipc_core",
55  ]
56  resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrsst/ohos_test.xml"
57}
58
59group("systemtest") {
60  testonly = true
61
62  deps = [ ":BundleMgrClientSystemTest" ]
63}
64