• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//arkcompiler/ets_runtime/test/test_helper.gni")
15
16hot_reload_test_list = [
17  # "check_import",
18  "class_inheritance",
19  "class_mem_func",
20  "class_mem_var",
21  "class_name",
22  "closure",
23  "global_func",
24  "global_var",
25  "import_export",
26  "print_string",
27  "record_not_same",
28  "same_methodname",
29]
30
31if (!is_debug) {
32  hot_reload_test_list += [
33    "multi_classconstpool",
34    "multi_closureconstpool",
35    "multi_constructorconstpool",
36    "multi_funccallconstpool",
37    "multi_funcconstpool",
38    "multiconstpool_multifunc",
39  ]
40}
41
42hot_patch_test_list = [
43  "add_callfunction",
44  # "external_method",
45]
46
47host_quickfix_test_action("multi_patch") {
48  extra_patches = [
49    "patch1",
50    "patch2",
51  ]
52  entry_point = "--entry-point=base:module"
53}
54
55foreach(testcase, hot_reload_test_list) {
56  host_quickfix_test_action("${testcase}") {
57    entry_point = "--entry-point=base:module"
58  }
59}
60
61foreach(testcase, hot_patch_test_list) {
62  host_quickfix_test_action("${testcase}") {
63    entry_point = "--entry-point=base:module"
64    is_hotpatch = true
65  }
66}
67
68group("ark_quickfix_test") {
69  testonly = true
70
71  deps = []
72  foreach(testcase, hot_reload_test_list) {
73    deps += [ ":${testcase}QuickfixAction" ]
74  }
75
76  foreach(testcase, hot_patch_test_list) {
77    deps += [ ":${testcase}QuickfixAction" ]
78  }
79
80  deps += [ ":multi_patchQuickfixAction" ]
81}
82