From e38ac43c3de043862efae4260b51ccc561b4b16e Mon Sep 17 00:00:00 2001 From: tangbin <2387440390@qq.com> Date: Wed, 19 Feb 2025 20:28:14 +0800 Subject: [PATCH] =?UTF-8?q?jerry=E6=B5=8B=E8=AF=95=E5=A5=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tangbin <2387440390@qq.com> --- bundle.json | 2 +- tests/unit-core/BUILD.gn | 34 +++++++++++++++++++++++++--------- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/bundle.json b/bundle.json index 6bbeaf57..853c09c5 100644 --- a/bundle.json +++ b/bundle.json @@ -52,7 +52,7 @@ "rom": "", "ram": "", "deps": { - "components": [], + "components": ["bounds_checking_function"], "third_party": [] }, "build": { diff --git a/tests/unit-core/BUILD.gn b/tests/unit-core/BUILD.gn index b14804fa..b4b29913 100755 --- a/tests/unit-core/BUILD.gn +++ b/tests/unit-core/BUILD.gn @@ -18,7 +18,6 @@ import("//third_party/jerryscript/tests/test_helper.gni") host_unittest_action("TddTest") { module_out_path = module_output_path include_dirs = [ - "//commonlibrary/c_utils/base/include", "${core_path}/include", "${core_path}/api", "${core_path}/debugger", @@ -53,16 +52,15 @@ host_unittest_action("TddTest") { "${core_path}/ecma/builtin-objects", "//commonlibrary/utils_lite/memory/include", "//commonlibrary/utils_lite/include", - "//third_party/googletest/googletest/include/gtest", - "//third_party/googletest/include", - "//commonlibrary/c_utils/base/include", - "//third_party/node/src", ] - configs = [ "//third_party/bounds_checking_function:libsec_public_config" ] + + external_deps = [ + "bounds_checking_function:libsec_static", + "googletest:gtest", + "googletest:gtest_main", + ] + deps = [ - "//third_party/bounds_checking_function:libsec_static", - "//third_party/googletest:gtest", - "//third_party/googletest:gtest_main", "//third_party/jerryscript:jerry", "//third_party/jerryscript:jerry-snapshot", "//third_party/jerryscript:libjerryscript", @@ -155,3 +153,21 @@ group("jerry_tdd_host_test") { testonly = true deps = [ ":TddTestAction" ] } + +#jerry es2015 test for host running +group("jerry_host_jstest_es2015") { + testonly = true + deps = [ + "//third_party/jerryscript/tests/jerry:jerry_host_js_test_es2015", + "//third_party/jerryscript/tests/unit-core:jerry_tdd_host_test", + ] +} + +#jerry es5.1 test for host running +group("jerry_host_jstest_es5.1") { + testonly = true + deps = [ + "//third_party/jerryscript/tests/jerry:jerry_host_js_test_es5.1", + "//third_party/jerryscript/tests/unit-core:jerry_tdd_host_test", + ] +} \ No newline at end of file -- Gitee