• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2025 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/ohos.gni")
15import("../../../../appexecfwk.gni")
16
17config("bms_system_test_config") {
18  defines = [
19    "APP_LOG_TAG = \"BmsMgrService\"",
20    "LOG_DOMAIN = 0xD00111F",
21  ]
22
23  configs = [
24    "${inner_api_path}/appexecfwk_core:bundlemgr_sdk_config",
25    "${inner_api_path}/appexecfwk_base:appexecfwk_base_sdk_config",
26  ]
27}
28
29ohos_static_library("bms_install_sst_source") {
30  testonly = true
31
32  sources = [
33    "${inner_api_path}/appexecfwk_base/src/ability_info.cpp",
34    "${inner_api_path}/appexecfwk_base/src/application_info.cpp",
35    "${inner_api_path}/appexecfwk_base/src/bundle_info.cpp",
36    "${inner_api_path}/appexecfwk_base/src/bundle_user_info.cpp",
37    "${inner_api_path}/appexecfwk_core/src/bundlemgr/bundle_installer_proxy.cpp",
38    "${inner_api_path}/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp",
39  ]
40
41  public_configs = [ ":bms_system_test_config" ]
42
43  deps = [ "${common_path}:libappexecfwk_common" ]
44  cflags = []
45  if (target_cpu == "arm") {
46    cflags += [ "-DBINDER_IPC_32BIT" ]
47  }
48
49  external_deps = [
50    "ability_base:base",
51    "ability_base:want",
52    "c_utils:utils",
53    "common_event_service:cesfwk_innerkits",
54    "googletest:gtest_main",
55    "hilog:libhilog",
56    "hitrace:hitrace_meter",
57    "ipc:ipc_core",
58    "json:nlohmann_json_static",
59  ]
60
61  part_name = "bundle_framework"
62  subsystem_name = "bundlemanager"
63}
64
65group("systemtest_bms") {
66  testonly = true
67
68  deps = [
69    "acts_bms_kit_system_test:systemtest",
70    "bms_app_control_host_test:systemtest",
71    "bms_bundle_mgr_host_test:systemtest",
72    "bms_bundle_resource_host_test:systemtest",
73    "bms_clean_cache_callback_host_test:systemtest",
74    "bms_client_system_test:systemtest",
75    "bms_code_signature_test:systemtest",
76    "bms_compatible_system_test:systemtest",
77    "bms_default_app_host_test:systemtest",
78    "bms_install_system_test:systemtest",
79    "bms_launcher_service_system_test:systemtest",
80    "bms_match_share_test:systemtest",
81    "bms_overlay_install_test:systemtest",
82    "bms_permission_grant_system_test:systemtest",
83    "bms_sandbox_app_system_test:systemtest",
84    "bms_search_system_test:systemtest",
85    "bms_stream_installer_host_test:systemtest",
86    "bms_uninstall_system_test:systemtest",
87    "bms_verify_manager_host_test:systemtest",
88    "extend_resource_manager_host_test:systemtest",
89    "extend_resource_manager_proxy_test:systemtest",
90  ]
91}
92