• 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  # "same_methodname",
19  "class_inheritance",
20  "class_mem_func",
21  "class_same_mem_func",
22  "class_mem_var",
23  "class_name",
24  "closure",
25  "global_func",
26  "global_var",
27  "import_export",
28  "print_string",
29  "record_not_same",
30  "module_var",
31  "module_func",
32  "module_class",
33  "module_class_inheritance",
34]
35
36hot_reload_cold_patch_test_list = []
37
38if (!is_debug) {
39  hot_reload_cold_patch_test_list += [
40    "cold_classmemfunc",
41    "cold_closure",
42    "cold_printstring",
43    "cold_classmemvar",
44  ]
45
46  hot_reload_test_list += [
47    "multi_classconstpool",
48    "multi_closureconstpool",
49    "multi_constructorconstpool",
50    "multi_funccallconstpool",
51    "multi_funcconstpool",
52    "multiconstpool_multifunc",
53  ]
54}
55
56hot_patch_test_list = [
57  "add_callfunction",
58  # "external_method",
59]
60
61host_quickfix_test_action("multi_patch") {
62  extra_patches = [
63    "patch1",
64    "patch2",
65  ]
66  entry_point = "--entry-point=base"
67}
68
69foreach(testcase, hot_reload_test_list) {
70  host_quickfix_test_action("${testcase}") {
71    entry_point = "--entry-point=base"
72  }
73}
74
75foreach(testcase, hot_patch_test_list) {
76  host_quickfix_test_action("${testcase}") {
77    entry_point = "--entry-point=base"
78    is_hotpatch = true
79  }
80}
81
82foreach(testcase, hot_reload_cold_patch_test_list) {
83  host_quickfix_test_action("${testcase}") {
84    entry_point = "--entry-point=base:coldpatch"
85  }
86}
87
88group("ark_quickfix_test") {
89  testonly = true
90
91  deps = []
92  foreach(testcase, hot_reload_test_list) {
93    deps += [ ":${testcase}QuickfixAction" ]
94  }
95
96  foreach(testcase, hot_patch_test_list) {
97    deps += [ ":${testcase}QuickfixAction" ]
98  }
99
100  foreach(testcase, hot_reload_cold_patch_test_list) {
101    deps += [ ":${testcase}QuickfixAction" ]
102  }
103
104  deps += [ ":multi_patchQuickfixAction" ]
105}
106