From 13e3282fa75b5789b7bf9504b43b56630b2845ba Mon Sep 17 00:00:00 2001 From: lhc Date: Wed, 20 Aug 2025 11:27:53 +0800 Subject: [PATCH] Modifies the module of ut Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/ICTT0O?from=project-issue Signed-off-by: lhc Change-Id: Ib91a5af065d4e3cf03cc162ec7eecc56da647dca --- common_components/base/tests/BUILD.gn | 2 +- common_components/common/tests/BUILD.gn | 2 +- .../common_runtime/tests/BUILD.gn | 2 +- .../heap/allocator/tests/BUILD.gn | 2 +- .../heap/ark_collector/tests/BUILD.gn | 2 +- common_components/heap/barrier/tests/BUILD.gn | 2 +- .../heap/collector/tests/BUILD.gn | 2 +- common_components/heap/space/tests/BUILD.gn | 2 +- common_components/heap/tests/BUILD.gn | 2 +- common_components/log/tests/BUILD.gn | 2 +- common_components/mutator/tests/BUILD.gn | 2 +- common_components/objects/tests/BUILD.gn | 2 +- .../platform/unix/tests/BUILD.gn | 2 +- common_components/serialize/tests/BUILD.gn | 2 +- common_components/taskpool/tests/BUILD.gn | 2 +- common_components/thread/tests/BUILD.gn | 2 +- test/resource/js_runtime/ohos_test.xml | 215 ++++++++++++++++++ 17 files changed, 231 insertions(+), 16 deletions(-) diff --git a/common_components/base/tests/BUILD.gn b/common_components/base/tests/BUILD.gn index 9fda986046..b539cdb7f8 100755 --- a/common_components/base/tests/BUILD.gn +++ b/common_components/base/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("C_String_Test") { module_out_path = module_output_path diff --git a/common_components/common/tests/BUILD.gn b/common_components/common/tests/BUILD.gn index 20ab11e3bc..09fbabcdd3 100644 --- a/common_components/common/tests/BUILD.gn +++ b/common_components/common/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Page_Cache_Test") { module_out_path = module_output_path diff --git a/common_components/common_runtime/tests/BUILD.gn b/common_components/common_runtime/tests/BUILD.gn index 9e6bbb72a2..6e1eba260b 100644 --- a/common_components/common_runtime/tests/BUILD.gn +++ b/common_components/common_runtime/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Base_Runtime_Test") { module_out_path = module_output_path diff --git a/common_components/heap/allocator/tests/BUILD.gn b/common_components/heap/allocator/tests/BUILD.gn index c63646c823..cd1f06bb2d 100755 --- a/common_components/heap/allocator/tests/BUILD.gn +++ b/common_components/heap/allocator/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Allocator_Test") { module_out_path = module_output_path diff --git a/common_components/heap/ark_collector/tests/BUILD.gn b/common_components/heap/ark_collector/tests/BUILD.gn index dc0b8ae2a2..f3a0377d9d 100755 --- a/common_components/heap/ark_collector/tests/BUILD.gn +++ b/common_components/heap/ark_collector/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Copy_Barrier_Test") { module_out_path = module_output_path diff --git a/common_components/heap/barrier/tests/BUILD.gn b/common_components/heap/barrier/tests/BUILD.gn index e45930c2a1..992543294d 100644 --- a/common_components/heap/barrier/tests/BUILD.gn +++ b/common_components/heap/barrier/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Barrier_Test") { module_out_path = module_output_path diff --git a/common_components/heap/collector/tests/BUILD.gn b/common_components/heap/collector/tests/BUILD.gn index e07b1102b0..7ef6f84db2 100755 --- a/common_components/heap/collector/tests/BUILD.gn +++ b/common_components/heap/collector/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Collector_Test") { module_out_path = module_output_path diff --git a/common_components/heap/space/tests/BUILD.gn b/common_components/heap/space/tests/BUILD.gn index 4b658b0184..deaaa4e3ba 100644 --- a/common_components/heap/space/tests/BUILD.gn +++ b/common_components/heap/space/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("From_Space_Test") { module_out_path = module_output_path diff --git a/common_components/heap/tests/BUILD.gn b/common_components/heap/tests/BUILD.gn index 6f7cecb252..ead18f3761 100644 --- a/common_components/heap/tests/BUILD.gn +++ b/common_components/heap/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Heap_Manager_Test") { module_out_path = module_output_path diff --git a/common_components/log/tests/BUILD.gn b/common_components/log/tests/BUILD.gn index 845e3197eb..2ecfd0aa45 100644 --- a/common_components/log/tests/BUILD.gn +++ b/common_components/log/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Log_Test") { module_out_path = module_output_path diff --git a/common_components/mutator/tests/BUILD.gn b/common_components/mutator/tests/BUILD.gn index aceddb3e8b..af57be74e8 100755 --- a/common_components/mutator/tests/BUILD.gn +++ b/common_components/mutator/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Mutator_Manager_Test") { module_out_path = module_output_path diff --git a/common_components/objects/tests/BUILD.gn b/common_components/objects/tests/BUILD.gn index 54ca762092..f6d6aef286 100755 --- a/common_components/objects/tests/BUILD.gn +++ b/common_components/objects/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Base_String_Test") { module_out_path = module_output_path diff --git a/common_components/platform/unix/tests/BUILD.gn b/common_components/platform/unix/tests/BUILD.gn index 1104b0542e..645bc239e7 100644 --- a/common_components/platform/unix/tests/BUILD.gn +++ b/common_components/platform/unix/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Map_Test") { module_out_path = module_output_path diff --git a/common_components/serialize/tests/BUILD.gn b/common_components/serialize/tests/BUILD.gn index 15390f7da8..bfcdc43839 100644 --- a/common_components/serialize/tests/BUILD.gn +++ b/common_components/serialize/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Serialize_Utils_Test") { module_out_path = module_output_path diff --git a/common_components/taskpool/tests/BUILD.gn b/common_components/taskpool/tests/BUILD.gn index 02373e1603..3c3a88f482 100644 --- a/common_components/taskpool/tests/BUILD.gn +++ b/common_components/taskpool/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Runner_Test") { module_out_path = module_output_path diff --git a/common_components/thread/tests/BUILD.gn b/common_components/thread/tests/BUILD.gn index 44c2de5328..1a57336aaa 100755 --- a/common_components/thread/tests/BUILD.gn +++ b/common_components/thread/tests/BUILD.gn @@ -13,7 +13,7 @@ import("//arkcompiler/ets_runtime/common_components/tests/test_helper.gni") -module_output_path = "common_component" +module_output_path = "ets_runtime" host_unittest_action("Thread_Holder_Test") { module_out_path = module_output_path diff --git a/test/resource/js_runtime/ohos_test.xml b/test/resource/js_runtime/ohos_test.xml index 79593487da..95dc0a91a3 100755 --- a/test/resource/js_runtime/ohos_test.xml +++ b/test/resource/js_runtime/ohos_test.xml @@ -3718,4 +3718,219 @@