mirror of
https://gitee.com/openharmony/appexecfwk_standard
synced 2024-11-27 07:00:31 +00:00
增加用例可裁剪部分
Signed-off-by: junyi233 <zhengjun29@huawei.com> Change-Id: I2845029f9f19bbad36472af14b77f8fc61229502
This commit is contained in:
parent
aab07a5071
commit
dc0ea9da64
@ -27,7 +27,6 @@ ohos_unittest("BmsBundleAccessTokenIdTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -95,8 +94,6 @@ ohos_unittest("BmsBundleAccessTokenIdTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -112,6 +109,15 @@ ohos_unittest("BmsBundleAccessTokenIdTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,6 @@ ohos_unittest("BmsBundleCloneTest") {
|
||||
"${innerkits_path}/appexecfwk_base/src/compatible_ability_info.cpp",
|
||||
"${innerkits_path}/appexecfwk_base/src/compatible_application_info.cpp",
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -89,8 +88,6 @@ ohos_unittest("BmsBundleCloneTest") {
|
||||
"ability_runtime:app_manager",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -106,6 +103,17 @@ ohos_unittest("BmsBundleCloneTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
|
@ -27,7 +27,6 @@ ohos_unittest("BmsBundleInstallerTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -95,8 +94,6 @@ ohos_unittest("BmsBundleInstallerTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -116,6 +113,17 @@ ohos_unittest("BmsBundleInstallerTest") {
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
@ -128,7 +136,6 @@ ohos_unittest("BmsMultipleBundleInstallerTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -196,8 +203,6 @@ ohos_unittest("BmsMultipleBundleInstallerTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -217,6 +222,17 @@ ohos_unittest("BmsMultipleBundleInstallerTest") {
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,6 @@ ohos_unittest("BmsBundleKitServiceTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -98,8 +97,6 @@ ohos_unittest("BmsBundleKitServiceTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -115,6 +112,15 @@ ohos_unittest("BmsBundleKitServiceTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,6 @@ ohos_unittest("BmsBundlePermissionGrantTest") {
|
||||
"${innerkits_path}/appexecfwk_base/src/bundle_info.cpp",
|
||||
"${innerkits_path}/appexecfwk_base/src/bundle_user_info.cpp",
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -101,8 +100,6 @@ ohos_unittest("BmsBundlePermissionGrantTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -118,6 +115,15 @@ ohos_unittest("BmsBundlePermissionGrantTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,6 @@ ohos_unittest("BmsBundleUninstallerTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -100,8 +99,6 @@ ohos_unittest("BmsBundleUninstallerTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -118,6 +115,15 @@ ohos_unittest("BmsBundleUninstallerTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,6 @@ ohos_unittest("BmsBundleUpdaterTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -104,8 +103,6 @@ ohos_unittest("BmsBundleUpdaterTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -122,6 +119,15 @@ ohos_unittest("BmsBundleUpdaterTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,6 @@ ohos_unittest("BmsDataMgrTest") {
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -99,8 +98,6 @@ ohos_unittest("BmsDataMgrTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -114,6 +111,15 @@ ohos_unittest("BmsDataMgrTest") {
|
||||
external_deps += [ "config_policy:configpolicy_util" ]
|
||||
defines += [ "CONFIG_POLOCY_ENABLE" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
|
@ -25,10 +25,7 @@ ohos_unittest("BmsDistributedDataStorageTest") {
|
||||
"//third_party/jsoncpp/include",
|
||||
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara/include",
|
||||
]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/distributed_data_storage.cpp",
|
||||
]
|
||||
sources = [ "${services_path}/bundlemgr/src/distributed_data_storage.cpp" ]
|
||||
|
||||
sources += [
|
||||
"${services_path}/bundlemgr/test/mock/src/mock_status_receiver.cpp",
|
||||
@ -69,8 +66,6 @@ ohos_unittest("BmsDistributedDataStorageTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -78,10 +73,19 @@ ohos_unittest("BmsDistributedDataStorageTest") {
|
||||
"samgr_standard:samgr_proxy",
|
||||
]
|
||||
|
||||
defines = []
|
||||
if (bundle_framework_graphics) {
|
||||
external_deps += [ "resmgr_standard:global_resmgr" ]
|
||||
}
|
||||
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/bundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,6 @@ ohos_unittest("BmsServiceBundleScanTest") {
|
||||
include_dirs = [ "//third_party/jsoncpp/include" ]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -85,8 +84,6 @@ ohos_unittest("BmsServiceBundleScanTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -100,6 +97,15 @@ ohos_unittest("BmsServiceBundleScanTest") {
|
||||
external_deps += [ "config_policy:configpolicy_util" ]
|
||||
defines += [ "CONFIG_POLOCY_ENABLE" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
|
@ -24,7 +24,6 @@ ohos_unittest("BmsServiceStartupTest") {
|
||||
include_dirs = [ "//third_party/jsoncpp/include" ]
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -86,8 +85,6 @@ ohos_unittest("BmsServiceStartupTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -101,6 +98,15 @@ ohos_unittest("BmsServiceStartupTest") {
|
||||
external_deps += [ "config_policy:configpolicy_util" ]
|
||||
defines += [ "CONFIG_POLOCY_ENABLE" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
|
@ -40,7 +40,6 @@ ohos_moduletest("BmsBundleInstallerModuleTest") {
|
||||
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -98,8 +97,6 @@ ohos_moduletest("BmsBundleInstallerModuleTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -115,6 +112,15 @@ ohos_moduletest("BmsBundleInstallerModuleTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/mstbundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,6 @@ ohos_moduletest("BmsBundleUninstallerModuleTest") {
|
||||
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -93,8 +92,6 @@ ohos_moduletest("BmsBundleUninstallerModuleTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -110,6 +107,15 @@ ohos_moduletest("BmsBundleUninstallerModuleTest") {
|
||||
external_deps += [ "selinux:libhap_restorecon" ]
|
||||
cflags += [ "-DWITH_SELINUX" ]
|
||||
}
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/mstbundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,6 @@ ohos_moduletest("BmsServiceStartModuleTest") {
|
||||
|
||||
sources = [
|
||||
"${services_path}/bundlemgr/src/account_helper.cpp",
|
||||
"${services_path}/bundlemgr/src/bms_device_manager.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_clone_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_mgr.cpp",
|
||||
"${services_path}/bundlemgr/src/bundle_data_storage_database.cpp",
|
||||
@ -84,8 +83,6 @@ ohos_moduletest("BmsServiceStartModuleTest") {
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"bytrace_standard:bytrace_core",
|
||||
"ces_standard:cesfwk_innerkits",
|
||||
"device_manager_base:devicemanagersdk",
|
||||
"hicollie_native:libhicollie",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
@ -93,10 +90,16 @@ ohos_moduletest("BmsServiceStartModuleTest") {
|
||||
"resmgr_standard:global_resmgr",
|
||||
]
|
||||
defines = []
|
||||
if (configpolicy_enable) {
|
||||
external_deps += [ "config_policy:configpolicy_util" ]
|
||||
defines += [ "CONFIG_POLOCY_ENABLE" ]
|
||||
if (device_manager_enable) {
|
||||
sources += [ "${services_path}/bundlemgr/src/bms_device_manager.cpp" ]
|
||||
external_deps += [ "device_manager_base:devicemanagersdk" ]
|
||||
defines += [ "DEVICE_MANAGER_ENABLE" ]
|
||||
}
|
||||
if (hicollie_enable) {
|
||||
external_deps += [ "hicollie_native:libhicollie" ]
|
||||
defines += [ "HICOLLIE_ENABLE" ]
|
||||
}
|
||||
|
||||
resource_config_file = "//foundation/appexecfwk/standard/test/resource/mstbundlemgrservice/ohos_test.xml"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user