diff --git a/bundle.json b/bundle.json index f260209ef55b0ba4f5222c38c0577001a44c2d38..d258dc219397806aa20c514b73ea4fa28bbfb13d 100644 --- a/bundle.json +++ b/bundle.json @@ -186,6 +186,12 @@ ] }, "name": "//foundation/bundlemanager/bundle_framework/interfaces/kits/js/common:bundle_napi_common" + }, + { + "name": "//foundation/bundlemanager/bundle_framework/services/bundlemgr:bms_test_head", + "visibility": [ + "bundle_tool" + ] } ], "test": [ diff --git a/services/bundlemgr/BUILD.gn b/services/bundlemgr/BUILD.gn index 68af80921f2c4f570950f006fca7177fdc992323..c5b438b9c23933d67b41a9d21e86695f0c56ddff 100644 --- a/services/bundlemgr/BUILD.gn +++ b/services/bundlemgr/BUILD.gn @@ -201,6 +201,7 @@ ohos_source_set("bundle_parser") { group("bms_target") { deps = [ + ":bms_test_head", ":installs", ":installs.cfg", ":libbms", @@ -570,3 +571,35 @@ ohos_prebuilt_etc("installs.cfg") { subsystem_name = "bundlemanager" part_name = "bundle_framework" } + +config("bms_test_head_config") { + include_dirs = [ + "include", + "include/shared", + "include/sandbox_app", + "include/rdb", + "include/installd", + "include/quick_fix", + "include/uninstall_data_mgr", + "include/navigation", + ] +} + +ohos_shared_library("bms_test_head") { + branch_protector_ret = "pac_ret" + + sanitize = { + boundary_sanitize = true + cfi = true + cfi_cross_dso = true + debug = false + integer_overflow = true + ubsan = true + } + public_configs = [ ":bms_test_head_config" ] + + deps = ["${kits_path}/js/bundlemgr:bundle"] + + subsystem_name = "bundlemanager" + part_name = "bundle_framework" +} diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn index 4abb66a4869053d0bdda9fafe24c09428e27b9e7..5d415f7b070ed5a3ade8a02b08b03c6a87d7cb7b 100755 --- a/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn +++ b/test/sceneProject/tools/bm/pageAbilityBundleForInstall/BUILD.gn @@ -18,7 +18,7 @@ ohos_hap("pageAbilityBundleForInstall") { hap_profile = "./src/main/config.json" hap_name = "pageAbilityBundleForInstall" subsystem_name = "bundlemanager" - final_hap_path = "$root_out_dir/tests/systemtest/bundle_tool/tools/resource/bm/${hap_name}.hap" + final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/tools/resource/bm/${hap_name}.hap" testonly = true deps = [ ":hjs_demo_js_assets", diff --git a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn index 2ec69107e1a5e3400d0c2b6fecba52345ad56e7c..9d0d979c35c30aaa89920531bada5f48c5579c1f 100755 --- a/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn +++ b/test/sceneProject/tools/bm/pageAbilityBundleForUninstall/BUILD.gn @@ -18,7 +18,7 @@ ohos_hap("pageAbilityBundleForUninstall") { hap_profile = "./src/main/config.json" hap_name = "pageAbilityBundleForUninstall" subsystem_name = "bundlemanager" - final_hap_path = "$root_out_dir/tests/systemtest/bundle_tool/tools/resource/bm/${hap_name}.hap" + final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/tools/resource/bm/${hap_name}.hap" testonly = true deps = [ ":hjs_demo_js_assets", diff --git a/test/sceneProject/tools/ohos_test/BUILD.gn b/test/sceneProject/tools/ohos_test/BUILD.gn index bba404b6b25d85a48094955d93ff7b29f95d90f5..6e517632a2b4d0306cbed829d265e84267da5b5b 100755 --- a/test/sceneProject/tools/ohos_test/BUILD.gn +++ b/test/sceneProject/tools/ohos_test/BUILD.gn @@ -16,7 +16,5 @@ import("../../../../appexecfwk.gni") ohos_copy("copy_ohos_test") { sources = [ "./ohos_test.xml" ] - outputs = [ - "$root_out_dir/tests/systemtest/bundle_tool/tools/resource/ohos_test.xml", - ] + outputs = [ "$root_out_dir/tests/systemtest/bundle_framework/tools/resource/ohos_test.xml" ] }