From 420efaa4961d64ff4e6bfa31a1f393f93d836c4e Mon Sep 17 00:00:00 2001 From: hu0475 Date: Thu, 13 Jul 2023 14:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9storage=E5=AD=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9Ffs=E6=A8=A1=E5=9D=97=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hu0475 --- storage/BUILD.gn | 2 +- .../crossplatform/storagefsetstest/AppScope/app.json | 2 +- storage/crossplatform/storagefsetstest/BUILD.gn | 10 +++++++--- storage/crossplatform/storagefsetstest/Test.json | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/storage/BUILD.gn b/storage/BUILD.gn index 0c4c15fcd..bceb97907 100644 --- a/storage/BUILD.gn +++ b/storage/BUILD.gn @@ -16,7 +16,7 @@ group("storage") { testonly = true if (is_standard_system) { deps = [ - "crossplatform/storagefsetstest:storagefs_ets_test", + "crossplatform/storagefsetstest:ActsCrossplatformFsTest", "storagefileioerrorjstest:storagefileioerror_js_test", "storagefileiojstest:storagefileio_js_test", "storagefileiov9jstest:storagefileiov9_js_test", diff --git a/storage/crossplatform/storagefsetstest/AppScope/app.json b/storage/crossplatform/storagefsetstest/AppScope/app.json index 393549d7a..94af66e67 100644 --- a/storage/crossplatform/storagefsetstest/AppScope/app.json +++ b/storage/crossplatform/storagefsetstest/AppScope/app.json @@ -6,7 +6,7 @@ "versionName": "1.0.0", "icon": "$media:app_icon", "label": "$string:app_name", - "minAPIVersion": 9, + "minAPIVersion": 10, "targetAPIVersion": 10, "car": { "apiCompatibleVersion": 10, diff --git a/storage/crossplatform/storagefsetstest/BUILD.gn b/storage/crossplatform/storagefsetstest/BUILD.gn index 9820d5376..9d541754e 100644 --- a/storage/crossplatform/storagefsetstest/BUILD.gn +++ b/storage/crossplatform/storagefsetstest/BUILD.gn @@ -13,7 +13,7 @@ import("//test/xts/tools/build/suite.gni") -ohos_js_hap_suite("storagefs_ets_test") { +ohos_js_hap_suite("ActsCrossplatformFsTest") { hap_profile = "src/main/module.json" deps = [ ":windowStage_js_assets", @@ -21,14 +21,16 @@ ohos_js_hap_suite("storagefs_ets_test") { ] ets2abc = true certificate_profile = "./signature/openharmony_sx.p7b" + # hap_name: HAP的名字,可选,默认为目标名 - hap_name = "storagefs_ets_test" + hap_name = "ActsCrossplatformFsTest" subsystem_name = "filemanagement" part_name = "file_api" } ohos_app_scope("windowStage_app_profile") { # app_profile: HAP的AppScope中的app.json,只在Stage模型下使用 app_profile = "AppScope/app.json" + # sources: 资源文件路径 sources = [ "AppScope/resources" ] } @@ -39,8 +41,10 @@ ohos_js_assets("windowStage_js_assets") { ohos_resources("windowStage_resources") { # sources: 资源文件路径 sources = [ "src/main/resources" ] + # deps: 当前目标的依赖 deps = [ ":windowStage_app_profile" ] + # hap_profile: HAP的config.json,Stage模型对应module.json hap_profile = "src/main/module.json" -} \ No newline at end of file +} diff --git a/storage/crossplatform/storagefsetstest/Test.json b/storage/crossplatform/storagefsetstest/Test.json index 8cd18419b..9248e4965 100644 --- a/storage/crossplatform/storagefsetstest/Test.json +++ b/storage/crossplatform/storagefsetstest/Test.json @@ -10,7 +10,7 @@ "kits": [ { "test-file-name": [ - "storagefs_ets_test.hap" + "ActsCrossplatformFsTest.hap" ], "type": "AppInstallKit", "cleanup-apps": true -- GitLab