1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/lite/config/component/lite_component.gni") 15import("//third_party/jerryscript/engine.gni") 16import("//third_party/jerryscript/tests/jerry/test_helper.gni") 17 18host_unittest_action("JsEs2015Test") { 19 module_out_path = module_output_path 20 sources = [] 21 deps = [ 22 "//third_party/jerryscript:jerry", 23 "//third_party/jerryscript:jerry-snapshot", 24 "//third_party/jerryscript:libjerryscript", 25 ] 26} 27host_unittest_action("JsEsTest") { 28 module_out_path = module_output_path 29 sources = [] 30 deps = [ 31 "//third_party/jerryscript:jerry", 32 "//third_party/jerryscript:jerry-snapshot", 33 "//third_party/jerryscript:libjerryscript", 34 ] 35} 36 37group("jerry_js_test_es5.1") { 38 testonly = true 39 deps = [ ":JsEsTest" ] 40} 41 42group("jerry_host_js_test_es5.1") { 43 testonly = true 44 deps = [ ":JsEsTestAction" ] 45} 46 47group("jerry_js_test_es2015") { 48 testonly = true 49 deps = [ ":JsEs2015Test" ] 50} 51 52group("jerry_host_js_test_es2015") { 53 testonly = true 54 deps = [ ":JsEs2015TestAction" ] 55} 56