1# Copyright (c) 2021-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/ohos.gni") 15import("//foundation/appexecfwk/standard/appexecfwk.gni") 16 17config("bms_system_test_config") { 18 defines = [ 19 "APP_LOG_TAG = \"BmsMgrService\"", 20 "LOG_DOMAIN = 0xD00111F", 21 ] 22 23 configs = [ 24 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:bundlemgr_sdk_config", 25 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base:appexecfwk_base_sdk_config", 26 ] 27} 28 29ohos_source_set("bms_install_sst_source") { 30 testonly = true 31 32 sources = [ 33 "${aafwk_path}/frameworks/kits/content/cpp/src/ohos/aafwk/content/element_name.cpp", 34 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base/src/ability_info.cpp", 35 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base/src/application_info.cpp", 36 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base/src/bundle_info.cpp", 37 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_base/src/bundle_user_info.cpp", 38 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core/src/bundlemgr/bundle_installer_proxy.cpp", 39 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp", 40 "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core/src/bundlemgr/status_receiver_proxy.cpp", 41 ] 42 43 include_dirs = [ 44 "${aafwk_path}/interfaces/innerkits/want/include/ohos/aafwk/content", 45 "//third_party/json/include", 46 ] 47 48 public_configs = [ ":bms_system_test_config" ] 49 50 public_deps = [ 51 "${common_path}:libappexecfwk_common", 52 "//third_party/googletest:gtest_main", 53 ] 54 cflags = [] 55 if (target_cpu == "arm") { 56 cflags += [ "-DBINDER_IPC_32BIT" ] 57 } 58 deps = [ 59 "${innerkits_path}/appexecfwk_core:appexecfwk_core", 60 "${services_path}/test/moduletest/utils:tool_common", 61 "//foundation/aafwk/standard/interfaces/innerkits/base:base", 62 "//foundation/aafwk/standard/interfaces/innerkits/want:want", 63 "//third_party/googletest:gtest_main", 64 "//utils/native/base:utils", 65 ] 66 67 external_deps = [ 68 "hiviewdfx_hilog_native:libhilog", 69 "ipc:ipc_core", 70 ] 71 72 part_name = "bundle_framework" 73} 74 75group("systemtest_bms") { 76 testonly = true 77 78 deps = [ 79 "acts_bms_kit_system_test:systemtest", 80 "bms_client_system_test:systemtest", 81 "bms_compatible_system_test:systemtest", 82 "bms_install_system_test:systemtest", 83 "bms_launcher_service_system_test:systemtest", 84 "bms_search_system_test:systemtest", 85 "bms_uninstall_system_test:systemtest", 86 ] 87} 88