From c4df4d4ec7c3a138b39685f4e6e864901424580c Mon Sep 17 00:00:00 2001 From: y00314596 Date: Wed, 3 Aug 2022 19:50:47 +0800 Subject: [PATCH] add by yangqing3@huawei.com Signed-off-by: y00314596 --- customization/TestExtensionAbility_001/BUILD.gn | 2 ++ customization/edm_xts_stage/BUILD.gn | 2 ++ global/global_napi_test/BUILD.gn | 2 ++ .../global_napi_test/entry/src/main/cpp/napi/test_string.cpp | 2 +- global/i18n_standard/intljs/BUILD.gn | 4 +++- global/perf/perfjs/BUILD.gn | 4 +++- global/resmgr_standard/resmgrjs/BUILD.gn | 4 +++- 7 files changed, 16 insertions(+), 4 deletions(-) diff --git a/customization/TestExtensionAbility_001/BUILD.gn b/customization/TestExtensionAbility_001/BUILD.gn index 317388a5a..337032000 100644 --- a/customization/TestExtensionAbility_001/BUILD.gn +++ b/customization/TestExtensionAbility_001/BUILD.gn @@ -23,6 +23,8 @@ ohos_js_hap_suite("ExtensionZeroTest") { ets2abc = true certificate_profile = "signature/openharmony_sx.p7b" hap_name = "ExtensionZeroTest" + subsystem_name = "customization" + part_name = "enterprise_device_management" } ohos_app_scope("extensionZeroTest_app_profile") { diff --git a/customization/edm_xts_stage/BUILD.gn b/customization/edm_xts_stage/BUILD.gn index 3ea3356b0..6611cff4e 100644 --- a/customization/edm_xts_stage/BUILD.gn +++ b/customization/edm_xts_stage/BUILD.gn @@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsEdmTest") { ets2abc = true certificate_profile = "signature/openharmony_sx.p7b" hap_name = "ActsEdmTest" + subsystem_name = "customization" + part_name = "enterprise_device_management" } ohos_app_scope("edm_app_profile") { diff --git a/global/global_napi_test/BUILD.gn b/global/global_napi_test/BUILD.gn index 9278b3813..ffd103b04 100644 --- a/global/global_napi_test/BUILD.gn +++ b/global/global_napi_test/BUILD.gn @@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsGlobalNapiTest") { ets2abc = true certificate_profile = "./signature/openharmony_sx.p7b" hap_name = "ActsGlobalNapiTest" + subsystem_name = "global" + part_name = "resource_management" shared_libraries = [ "./entry/src/main/cpp:resmgrndk" ] } diff --git a/global/global_napi_test/entry/src/main/cpp/napi/test_string.cpp b/global/global_napi_test/entry/src/main/cpp/napi/test_string.cpp index 132a1dff2..f67746b4f 100644 --- a/global/global_napi_test/entry/src/main/cpp/napi/test_string.cpp +++ b/global/global_napi_test/entry/src/main/cpp/napi/test_string.cpp @@ -243,7 +243,7 @@ namespace OHOS { static napi_value Init(napi_env env, napi_value exports) { napi_property_descriptor desc[] = { - { "add", nullptr, GetResourceManager, nullptr, nullptr, nullptr, napi_default, nullptr } + { "testRawFile", nullptr, GetResourceManager, nullptr, nullptr, nullptr, napi_default, nullptr } }; napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); return exports; diff --git a/global/i18n_standard/intljs/BUILD.gn b/global/i18n_standard/intljs/BUILD.gn index 8c39313bb..951ddbf1d 100644 --- a/global/i18n_standard/intljs/BUILD.gn +++ b/global/i18n_standard/intljs/BUILD.gn @@ -9,7 +9,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. import("//test/xts/tools/build/suite.gni") @@ -21,6 +21,8 @@ ohos_js_hap_suite("intljs_test") { ] certificate_profile = "./signature/openharmony_sx.p7b" hap_name = "ActsIntlJsTest" + subsystem_name = "global" + part_name = "i18n" } ohos_js_assets("intljs_assets") { js2abc = true diff --git a/global/perf/perfjs/BUILD.gn b/global/perf/perfjs/BUILD.gn index 3315c2110..b79ecd6e3 100644 --- a/global/perf/perfjs/BUILD.gn +++ b/global/perf/perfjs/BUILD.gn @@ -9,7 +9,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. import("//test/xts/tools/build/suite.gni") @@ -21,6 +21,8 @@ ohos_js_hap_suite("perfjs_test") { ] certificate_profile = "./signature/openharmony_sx.p7b" hap_name = "ActsGlobalPerfJsTest" + subsystem_name = "global" + part_name = "i18n" } ohos_js_assets("perfjs_assets") { js2abc = true diff --git a/global/resmgr_standard/resmgrjs/BUILD.gn b/global/resmgr_standard/resmgrjs/BUILD.gn index 6689c401d..2e3e7f178 100644 --- a/global/resmgr_standard/resmgrjs/BUILD.gn +++ b/global/resmgr_standard/resmgrjs/BUILD.gn @@ -9,7 +9,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -# limitations under the License. +# limitations under the License. import("//test/xts/tools/build/suite.gni") @@ -21,6 +21,8 @@ ohos_js_hap_suite("resmgrjs_test") { ] certificate_profile = "./signature/openharmony_sx.p7b" hap_name = "ActsResMgrJsTest" + subsystem_name = "global" + part_name = "resource_management" } ohos_js_assets("resmgrjs_assets") { js2abc = true -- GitLab