• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/js_runtime_config.gni")
15import("//arkcompiler/ets_runtime/test/test_helper.gni")
16
17module_output_path = "ets_runtime"
18
19host_unittest_action("JS_AccessorData_Test") {
20  module_out_path = module_output_path
21
22  sources = [
23    # test file
24    "accessor_data_test.cpp",
25  ]
26
27  configs = [
28    "../../:asm_interp_enable_config",
29    "../../:ecma_test_config",
30  ]
31
32  deps = [ "../../:libark_jsruntime_test" ]
33
34  # hiviewdfx libraries
35  external_deps = hiviewdfx_ext_deps
36  external_deps += [
37    "icu:shared_icui18n",
38    "icu:shared_icuuc",
39    "runtime_core:libarkassembler_static",
40    "runtime_core:libarkverifier",
41    "zlib:libz",
42  ]
43  deps += hiviewdfx_deps
44}
45
46host_unittest_action("JS_AssertScope_Test") {
47  module_out_path = module_output_path
48
49  sources = [
50    # test file
51    "assert_scope_test.cpp",
52  ]
53
54  configs = [
55    "../../:asm_interp_enable_config",
56    "../../:ecma_test_config",
57  ]
58
59  deps = [ "../../:libark_jsruntime_test" ]
60
61  # hiviewdfx libraries
62  external_deps = hiviewdfx_ext_deps
63  external_deps += [
64    "icu:shared_icui18n",
65    "icu:shared_icuuc",
66    "runtime_core:libarkassembler_static",
67    "runtime_core:libarkverifier",
68    "zlib:libz",
69  ]
70  deps += hiviewdfx_deps
71}
72
73host_unittest_action("Builtins_Test") {
74  module_out_path = module_output_path
75
76  sources = [
77    # test file
78    "builtins_test.cpp",
79  ]
80
81  configs = [
82    "../../:asm_interp_enable_config",
83    "../../:ecma_test_config",
84  ]
85
86  deps = [ "../../:libark_jsruntime_test" ]
87
88  # hiviewdfx libraries
89  external_deps = hiviewdfx_ext_deps
90  external_deps += [
91    "icu:shared_icui18n",
92    "icu:shared_icuuc",
93    "runtime_core:libarkassembler_static",
94    "runtime_core:libarkverifier",
95    "zlib:libz",
96  ]
97  deps += hiviewdfx_deps
98}
99
100host_unittest_action("JS_ByteArray_Test") {
101  module_out_path = module_output_path
102
103  sources = [
104    # test file
105    "byte_array_test.cpp",
106  ]
107
108  configs = [
109    "../../:asm_interp_enable_config",
110    "../../:ecma_test_config",
111  ]
112
113  deps = [ "../../:libark_jsruntime_test" ]
114
115  # hiviewdfx libraries
116  external_deps = hiviewdfx_ext_deps
117  external_deps += [
118    "icu:shared_icui18n",
119    "icu:shared_icuuc",
120    "runtime_core:libarkassembler_static",
121    "runtime_core:libarkverifier",
122    "zlib:libz",
123  ]
124  deps += hiviewdfx_deps
125}
126
127host_unittest_action("JS_Dump_Test") {
128  module_out_path = module_output_path
129
130  sources = [
131    # test file
132    "dump_test.cpp",
133  ]
134
135  configs = [
136    "../../:asm_interp_enable_config",
137    "../../:ecma_test_config",
138  ]
139
140  deps = [ "../../:libark_jsruntime_test" ]
141
142  # hiviewdfx libraries
143  external_deps = hiviewdfx_ext_deps
144  external_deps += [
145    "icu:shared_icui18n",
146    "icu:shared_icuuc",
147    "runtime_core:libarkassembler_static",
148    "runtime_core:libarkverifier",
149    "zlib:libz",
150  ]
151  deps += hiviewdfx_deps
152}
153
154host_unittest_action("JS_DynamicTypeConverter_Test") {
155  module_out_path = module_output_path
156
157  sources = [
158    # test file
159    "dynamic_type_converter_test.cpp",
160  ]
161
162  configs = [
163    "../../:asm_interp_enable_config",
164    "../../:ecma_test_config",
165  ]
166
167  deps = [ "../../:libark_jsruntime_test" ]
168
169  # hiviewdfx libraries
170  external_deps = hiviewdfx_ext_deps
171  external_deps += [
172    "icu:shared_icui18n",
173    "icu:shared_icuuc",
174    "runtime_core:libarkassembler_static",
175    "runtime_core:libarkverifier",
176    "zlib:libz",
177  ]
178  deps += hiviewdfx_deps
179}
180
181host_unittest_action("ECMA_StringHash_Test") {
182  module_out_path = module_output_path
183
184  sources = [
185    # test file
186    "ecma_string_hash_test.cpp",
187  ]
188
189  configs = [
190    "../../:asm_interp_enable_config",
191    "../../:ecma_test_config",
192  ]
193
194  deps = [ "../../:libark_jsruntime_test" ]
195
196  # hiviewdfx libraries
197  external_deps = hiviewdfx_ext_deps
198  external_deps += [
199    "icu:shared_icui18n",
200    "icu:shared_icuuc",
201    "runtime_core:libarkassembler_static",
202    "runtime_core:libarkverifier",
203    "zlib:libz",
204  ]
205  deps += hiviewdfx_deps
206}
207
208host_unittest_action("BASE_String_Test") {
209  module_out_path = module_output_path
210
211  sources = [
212    # test file
213    "base_string_test.cpp",
214  ]
215
216  configs = [
217    "../../:asm_interp_enable_config",
218    "../../:ecma_test_config",
219  ]
220
221  deps = [ "../../:libark_jsruntime_test" ]
222
223  # hiviewdfx libraries
224  external_deps = hiviewdfx_ext_deps
225  external_deps += [
226    "icu:shared_icui18n",
227    "icu:shared_icuuc",
228    "runtime_core:libarkassembler_static",
229    "runtime_core:libarkverifier",
230    "zlib:libz",
231  ]
232  deps += hiviewdfx_deps
233}
234
235host_unittest_action("ECMA_StringAccessor_Test") {
236  module_out_path = module_output_path
237
238  sources = [
239    # test file
240    "ecma_string_accessor_test.cpp",
241  ]
242
243  configs = [
244    "../../:asm_interp_enable_config",
245    "../../:ecma_test_config",
246  ]
247
248  deps = [ "../../:libark_jsruntime_test" ]
249
250  # hiviewdfx libraries
251  external_deps = hiviewdfx_ext_deps
252  external_deps += [
253    "icu:shared_icui18n",
254    "icu:shared_icuuc",
255    "runtime_core:libarkassembler_static",
256    "runtime_core:libarkverifier",
257    "zlib:libz",
258  ]
259  deps += hiviewdfx_deps
260}
261
262host_unittest_action("ECMA_StringEquals_Test") {
263  module_out_path = module_output_path
264
265  sources = [
266    # test file
267    "ecma_string_equals_test.cpp",
268  ]
269
270  configs = [
271    "../../:asm_interp_enable_config",
272    "../../:ecma_test_config",
273  ]
274
275  deps = [ "../../:libark_jsruntime_test" ]
276
277  # hiviewdfx libraries
278  external_deps = hiviewdfx_ext_deps
279  external_deps += [
280    "icu:shared_icui18n",
281    "icu:shared_icuuc",
282    "runtime_core:libarkassembler_static",
283    "runtime_core:libarkverifier",
284    "zlib:libz",
285  ]
286  deps += hiviewdfx_deps
287}
288
289host_unittest_action("ECMA_StringTable_Test") {
290  module_out_path = module_output_path
291
292  sources = [
293    # test file
294    "ecma_string_table_test.cpp",
295    "base_string_table_test.cpp",
296  ]
297
298  configs = [
299    "../../:asm_interp_enable_config",
300    "../../:ecma_test_config",
301  ]
302
303  deps = [ "../../:libark_jsruntime_test" ]
304
305  # hiviewdfx libraries
306  external_deps = hiviewdfx_ext_deps
307  external_deps += [
308    "icu:shared_icui18n",
309    "icu:shared_icuuc",
310    "runtime_core:libarkassembler_static",
311    "runtime_core:libarkverifier",
312    "zlib:libz",
313  ]
314  deps += hiviewdfx_deps
315}
316
317host_unittest_action("JS_GlueRegs_Test") {
318  module_out_path = module_output_path
319
320  sources = [
321    # test file
322    "glue_regs_test.cpp",
323  ]
324
325  configs = [
326    "../../:asm_interp_enable_config",
327    "../../:ecma_test_config",
328  ]
329
330  deps = [ "../../:libark_jsruntime_test" ]
331
332  # hiviewdfx libraries
333  external_deps = hiviewdfx_ext_deps
334  external_deps += [
335    "icu:shared_icui18n",
336    "icu:shared_icuuc",
337    "runtime_core:libarkassembler_static",
338    "runtime_core:libarkverifier",
339    "zlib:libz",
340  ]
341  deps += hiviewdfx_deps
342}
343
344host_unittest_action("JS_APIArrayListIterator_Test") {
345  module_out_path = module_output_path
346
347  sources = [
348    # test file
349    "js_api_arraylist_iterator_test.cpp",
350  ]
351
352  configs = [
353    "../../:asm_interp_enable_config",
354    "../../:ecma_test_config",
355  ]
356
357  deps = [ "../../:libark_jsruntime_test" ]
358
359  # hiviewdfx libraries
360  external_deps = hiviewdfx_ext_deps
361  external_deps += [
362    "icu:shared_icui18n",
363    "icu:shared_icuuc",
364    "runtime_core:libarkassembler_static",
365    "runtime_core:libarkverifier",
366  ]
367  deps += hiviewdfx_deps
368}
369
370host_unittest_action("JS_APIArrayList_Test") {
371  module_out_path = module_output_path
372
373  sources = [
374    # test file
375    "js_api_arraylist_test.cpp",
376  ]
377
378  configs = [
379    "../../:asm_interp_enable_config",
380    "../../:ecma_test_config",
381  ]
382
383  deps = [ "../../:libark_jsruntime_test" ]
384
385  # hiviewdfx libraries
386  external_deps = hiviewdfx_ext_deps
387  external_deps += [
388    "icu:shared_icui18n",
389    "icu:shared_icuuc",
390    "runtime_core:libarkassembler_static",
391    "runtime_core:libarkverifier",
392  ]
393  deps += hiviewdfx_deps
394}
395
396host_unittest_action("JS_APIDequeIterator_Test") {
397  module_out_path = module_output_path
398
399  sources = [
400    # test file
401    "js_api_deque_iterator_test.cpp",
402  ]
403
404  configs = [
405    "../../:asm_interp_enable_config",
406    "../../:ecma_test_config",
407  ]
408
409  deps = [ "../../:libark_jsruntime_test" ]
410
411  # hiviewdfx libraries
412  external_deps = hiviewdfx_ext_deps
413  external_deps += [
414    "icu:shared_icui18n",
415    "icu:shared_icuuc",
416    "runtime_core:libarkassembler_static",
417    "runtime_core:libarkverifier",
418  ]
419  deps += hiviewdfx_deps
420}
421
422host_unittest_action("JS_APIDeque_Test") {
423  module_out_path = module_output_path
424
425  sources = [
426    # test file
427    "js_api_deque_test.cpp",
428  ]
429
430  configs = [
431    "../../:asm_interp_enable_config",
432    "../../:ecma_test_config",
433  ]
434
435  deps = [ "../../:libark_jsruntime_test" ]
436
437  # hiviewdfx libraries
438  external_deps = hiviewdfx_ext_deps
439  external_deps += [
440    "icu:shared_icui18n",
441    "icu:shared_icuuc",
442    "runtime_core:libarkassembler_static",
443    "runtime_core:libarkverifier",
444  ]
445  deps += hiviewdfx_deps
446}
447
448host_unittest_action("JS_APIHashMapIterator_Test") {
449  module_out_path = module_output_path
450
451  sources = [
452    # test file
453    "js_api_hashmap_iterator_test.cpp",
454  ]
455
456  configs = [
457    "../../:asm_interp_enable_config",
458    "../../:ecma_test_config",
459  ]
460
461  deps = [ "../../:libark_jsruntime_test" ]
462
463  # hiviewdfx libraries
464  external_deps = hiviewdfx_ext_deps
465  external_deps += [
466    "icu:shared_icui18n",
467    "icu:shared_icuuc",
468    "runtime_core:libarkassembler_static",
469    "runtime_core:libarkverifier",
470  ]
471  deps += hiviewdfx_deps
472}
473
474host_unittest_action("JS_APIHashMap_Test") {
475  module_out_path = module_output_path
476
477  sources = [
478    # test file
479    "js_api_hashmap_test.cpp",
480  ]
481
482  configs = [
483    "../../:asm_interp_enable_config",
484    "../../:ecma_test_config",
485  ]
486
487  deps = [ "../../:libark_jsruntime_test" ]
488
489  # hiviewdfx libraries
490  external_deps = hiviewdfx_ext_deps
491  external_deps += [
492    "icu:shared_icui18n",
493    "icu:shared_icuuc",
494    "runtime_core:libarkassembler_static",
495    "runtime_core:libarkverifier",
496  ]
497  deps += hiviewdfx_deps
498}
499
500host_unittest_action("JS_APIHashSetIterator_Test") {
501  module_out_path = module_output_path
502
503  sources = [
504    # test file
505    "js_api_hashset_iterator_test.cpp",
506  ]
507
508  configs = [
509    "../../:asm_interp_enable_config",
510    "../../:ecma_test_config",
511  ]
512
513  deps = [ "../../:libark_jsruntime_test" ]
514
515  # hiviewdfx libraries
516  external_deps = hiviewdfx_ext_deps
517  external_deps += [
518    "icu:shared_icui18n",
519    "icu:shared_icuuc",
520    "runtime_core:libarkassembler_static",
521    "runtime_core:libarkverifier",
522  ]
523  deps += hiviewdfx_deps
524}
525
526host_unittest_action("JS_APIHashSet_Test") {
527  module_out_path = module_output_path
528
529  sources = [
530    # test file
531    "js_api_hashset_test.cpp",
532  ]
533
534  configs = [
535    "../../:asm_interp_enable_config",
536    "../../:ecma_test_config",
537  ]
538
539  deps = [ "../../:libark_jsruntime_test" ]
540
541  # hiviewdfx libraries
542  external_deps = hiviewdfx_ext_deps
543  external_deps += [
544    "icu:shared_icui18n",
545    "icu:shared_icuuc",
546    "runtime_core:libarkassembler_static",
547    "runtime_core:libarkverifier",
548  ]
549  deps += hiviewdfx_deps
550}
551
552host_unittest_action("JS_APILightWeightMapIteraotr_Test") {
553  module_out_path = module_output_path
554
555  sources = [
556    # test file
557    "js_api_lightweightmap_iterator_test.cpp",
558  ]
559
560  configs = [
561    "../../:asm_interp_enable_config",
562    "../../:ecma_test_config",
563  ]
564
565  deps = [ "../../:libark_jsruntime_test" ]
566
567  # hiviewdfx libraries
568  external_deps = hiviewdfx_ext_deps
569  external_deps += [
570    "icu:shared_icui18n",
571    "icu:shared_icuuc",
572    "runtime_core:libarkassembler_static",
573    "runtime_core:libarkverifier",
574  ]
575  deps += hiviewdfx_deps
576}
577
578host_unittest_action("JS_APILightWeightMap_Test") {
579  module_out_path = module_output_path
580
581  sources = [
582    # test file
583    "js_api_lightweightmap_test.cpp",
584  ]
585
586  configs = [
587    "../../:asm_interp_enable_config",
588    "../../:ecma_test_config",
589  ]
590
591  deps = [ "../../:libark_jsruntime_test" ]
592
593  # hiviewdfx libraries
594  external_deps = hiviewdfx_ext_deps
595  external_deps += [
596    "icu:shared_icui18n",
597    "icu:shared_icuuc",
598    "runtime_core:libarkassembler_static",
599    "runtime_core:libarkverifier",
600  ]
601  deps += hiviewdfx_deps
602}
603
604host_unittest_action("JS_APILightWeightSetIterator_Test") {
605  module_out_path = module_output_path
606
607  sources = [
608    # test file
609    "js_api_lightweightset_iterator_test.cpp",
610  ]
611
612  configs = [
613    "../../:asm_interp_enable_config",
614    "../../:ecma_test_config",
615  ]
616
617  deps = [ "../../:libark_jsruntime_test" ]
618
619  # hiviewdfx libraries
620  external_deps = hiviewdfx_ext_deps
621  external_deps += [
622    "icu:shared_icui18n",
623    "icu:shared_icuuc",
624    "runtime_core:libarkassembler_static",
625    "runtime_core:libarkverifier",
626  ]
627  deps += hiviewdfx_deps
628}
629
630host_unittest_action("JS_APILightWeightSet_Test") {
631  module_out_path = module_output_path
632
633  sources = [
634    # test file
635    "js_api_lightweightset_test.cpp",
636  ]
637
638  configs = [
639    "../../:asm_interp_enable_config",
640    "../../:ecma_test_config",
641  ]
642
643  deps = [ "../../:libark_jsruntime_test" ]
644
645  # hiviewdfx libraries
646  external_deps = hiviewdfx_ext_deps
647  external_deps += [
648    "icu:shared_icui18n",
649    "icu:shared_icuuc",
650    "runtime_core:libarkassembler_static",
651    "runtime_core:libarkverifier",
652  ]
653  deps += hiviewdfx_deps
654}
655
656host_unittest_action("JS_APILinkListIterator_Test") {
657  module_out_path = module_output_path
658
659  sources = [
660    # test file
661    "js_api_linked_list_iterator_test.cpp",
662  ]
663
664  configs = [
665    "../../:asm_interp_enable_config",
666    "../../:ecma_test_config",
667  ]
668
669  deps = [ "../../:libark_jsruntime_test" ]
670
671  # hiviewdfx libraries
672  external_deps = hiviewdfx_ext_deps
673  external_deps += [
674    "icu:shared_icui18n",
675    "icu:shared_icuuc",
676    "runtime_core:libarkassembler_static",
677    "runtime_core:libarkverifier",
678  ]
679  deps += hiviewdfx_deps
680}
681
682host_unittest_action("JS_APILinkList_Test") {
683  module_out_path = module_output_path
684
685  sources = [
686    # test file
687    "js_api_linked_list_test.cpp",
688  ]
689
690  configs = [
691    "../../:asm_interp_enable_config",
692    "../../:ecma_test_config",
693  ]
694
695  deps = [ "../../:libark_jsruntime_test" ]
696
697  # hiviewdfx libraries
698  external_deps = hiviewdfx_ext_deps
699  external_deps += [
700    "icu:shared_icui18n",
701    "icu:shared_icuuc",
702    "runtime_core:libarkassembler_static",
703    "runtime_core:libarkverifier",
704  ]
705  deps += hiviewdfx_deps
706}
707
708host_unittest_action("JS_APIListIterator_Test") {
709  module_out_path = module_output_path
710
711  sources = [
712    # test file
713    "js_api_list_iterator_test.cpp",
714  ]
715
716  configs = [
717    "../../:asm_interp_enable_config",
718    "../../:ecma_test_config",
719  ]
720
721  deps = [ "../../:libark_jsruntime_test" ]
722
723  # hiviewdfx libraries
724  external_deps = hiviewdfx_ext_deps
725  external_deps += [
726    "icu:shared_icui18n",
727    "icu:shared_icuuc",
728    "runtime_core:libarkassembler_static",
729    "runtime_core:libarkverifier",
730  ]
731  deps += hiviewdfx_deps
732}
733
734host_unittest_action("JS_APIList_Test") {
735  module_out_path = module_output_path
736
737  sources = [
738    # test file
739    "js_api_list_test.cpp",
740  ]
741
742  configs = [
743    "../../:asm_interp_enable_config",
744    "../../:ecma_test_config",
745  ]
746
747  deps = [ "../../:libark_jsruntime_test" ]
748
749  # hiviewdfx libraries
750  external_deps = hiviewdfx_ext_deps
751  external_deps += [
752    "icu:shared_icui18n",
753    "icu:shared_icuuc",
754    "runtime_core:libarkassembler_static",
755    "runtime_core:libarkverifier",
756  ]
757  deps += hiviewdfx_deps
758}
759
760host_unittest_action("JS_APIPlainArrayIterator_Test") {
761  module_out_path = module_output_path
762
763  sources = [
764    # test file
765    "js_api_plain_array_iterator_test.cpp",
766  ]
767
768  configs = [
769    "../../:asm_interp_enable_config",
770    "../../:ecma_test_config",
771  ]
772
773  deps = [ "../../:libark_jsruntime_test" ]
774
775  # hiviewdfx libraries
776  external_deps = hiviewdfx_ext_deps
777  external_deps += [
778    "icu:shared_icui18n",
779    "icu:shared_icuuc",
780    "runtime_core:libarkassembler_static",
781    "runtime_core:libarkverifier",
782  ]
783  deps += hiviewdfx_deps
784}
785
786host_unittest_action("JS_APIPlainArray_Test") {
787  module_out_path = module_output_path
788
789  sources = [
790    # test file
791    "js_api_plain_array_test.cpp",
792  ]
793
794  configs = [
795    "../../:asm_interp_enable_config",
796    "../../:ecma_test_config",
797  ]
798
799  deps = [ "../../:libark_jsruntime_test" ]
800
801  # hiviewdfx libraries
802  external_deps = hiviewdfx_ext_deps
803  external_deps += [
804    "icu:shared_icui18n",
805    "icu:shared_icuuc",
806    "runtime_core:libarkassembler_static",
807    "runtime_core:libarkverifier",
808  ]
809  deps += hiviewdfx_deps
810}
811
812host_unittest_action("JS_APIQueueIterator_Test") {
813  module_out_path = module_output_path
814
815  sources = [
816    # test file
817    "js_api_queue_iterator_test.cpp",
818  ]
819
820  configs = [
821    "../../:asm_interp_enable_config",
822    "../../:ecma_test_config",
823  ]
824
825  deps = [ "../../:libark_jsruntime_test" ]
826
827  # hiviewdfx libraries
828  external_deps = hiviewdfx_ext_deps
829  external_deps += [
830    "icu:shared_icui18n",
831    "icu:shared_icuuc",
832    "runtime_core:libarkassembler_static",
833    "runtime_core:libarkverifier",
834  ]
835  deps += hiviewdfx_deps
836}
837
838host_unittest_action("JS_APIQueue_Test") {
839  module_out_path = module_output_path
840
841  sources = [
842    # test file
843    "js_api_queue_test.cpp",
844  ]
845
846  configs = [
847    "../../:asm_interp_enable_config",
848    "../../:ecma_test_config",
849  ]
850
851  deps = [ "../../:libark_jsruntime_test" ]
852
853  # hiviewdfx libraries
854  external_deps = hiviewdfx_ext_deps
855  external_deps += [
856    "icu:shared_icui18n",
857    "icu:shared_icuuc",
858    "runtime_core:libarkassembler_static",
859    "runtime_core:libarkverifier",
860  ]
861  deps += hiviewdfx_deps
862}
863
864host_unittest_action("JS_APIStackIterator_Test") {
865  module_out_path = module_output_path
866
867  sources = [
868    # test file
869    "js_api_stack_iterator_test.cpp",
870  ]
871
872  configs = [
873    "../../:asm_interp_enable_config",
874    "../../:ecma_test_config",
875  ]
876
877  deps = [ "../../:libark_jsruntime_test" ]
878
879  # hiviewdfx libraries
880  external_deps = hiviewdfx_ext_deps
881  external_deps += [
882    "icu:shared_icui18n",
883    "icu:shared_icuuc",
884    "runtime_core:libarkassembler_static",
885    "runtime_core:libarkverifier",
886    "zlib:libz",
887  ]
888  deps += hiviewdfx_deps
889}
890
891host_unittest_action("JS_APIStack_Test") {
892  module_out_path = module_output_path
893
894  sources = [
895    # test file
896    "js_api_stack_test.cpp",
897  ]
898
899  configs = [
900    "../../:asm_interp_enable_config",
901    "../../:ecma_test_config",
902  ]
903
904  deps = [ "../../:libark_jsruntime_test" ]
905
906  # hiviewdfx libraries
907  external_deps = hiviewdfx_ext_deps
908  external_deps += [
909    "icu:shared_icui18n",
910    "icu:shared_icuuc",
911    "runtime_core:libarkassembler_static",
912    "runtime_core:libarkverifier",
913  ]
914  deps += hiviewdfx_deps
915}
916
917host_unittest_action("JS_APITreeMapIterator_Test") {
918  module_out_path = module_output_path
919
920  sources = [
921    # test file
922    "js_api_tree_map_iterator_test.cpp",
923  ]
924
925  configs = [
926    "../../:asm_interp_enable_config",
927    "../../:ecma_test_config",
928  ]
929
930  deps = [ "../../:libark_jsruntime_test" ]
931
932  # hiviewdfx libraries
933  external_deps = hiviewdfx_ext_deps
934  external_deps += [
935    "icu:shared_icui18n",
936    "icu:shared_icuuc",
937    "runtime_core:libarkassembler_static",
938    "runtime_core:libarkverifier",
939  ]
940  deps += hiviewdfx_deps
941}
942
943host_unittest_action("JS_APITreeMap_Test") {
944  module_out_path = module_output_path
945
946  sources = [
947    # test file
948    "js_api_tree_map_test.cpp",
949  ]
950
951  configs = [
952    "../../:asm_interp_enable_config",
953    "../../:ecma_test_config",
954  ]
955
956  deps = [ "../../:libark_jsruntime_test" ]
957
958  # hiviewdfx libraries
959  external_deps = hiviewdfx_ext_deps
960  external_deps += [
961    "icu:shared_icui18n",
962    "icu:shared_icuuc",
963    "runtime_core:libarkassembler_static",
964    "runtime_core:libarkverifier",
965  ]
966  deps += hiviewdfx_deps
967}
968
969host_unittest_action("JS_APITreeSetIterator_Test") {
970  module_out_path = module_output_path
971
972  sources = [
973    # test file
974    "js_api_tree_set_iterator_test.cpp",
975  ]
976
977  configs = [
978    "../../:asm_interp_enable_config",
979    "../../:ecma_test_config",
980  ]
981
982  deps = [ "../../:libark_jsruntime_test" ]
983
984  # hiviewdfx libraries
985  external_deps = hiviewdfx_ext_deps
986  external_deps += [
987    "icu:shared_icui18n",
988    "icu:shared_icuuc",
989    "runtime_core:libarkassembler_static",
990    "runtime_core:libarkverifier",
991  ]
992  deps += hiviewdfx_deps
993}
994
995host_unittest_action("JS_APITreeSet_Test") {
996  module_out_path = module_output_path
997
998  sources = [
999    # test file
1000    "js_api_tree_set_test.cpp",
1001  ]
1002
1003  configs = [
1004    "../../:asm_interp_enable_config",
1005    "../../:ecma_test_config",
1006  ]
1007
1008  deps = [ "../../:libark_jsruntime_test" ]
1009
1010  # hiviewdfx libraries
1011  external_deps = hiviewdfx_ext_deps
1012  external_deps += [
1013    "icu:shared_icui18n",
1014    "icu:shared_icuuc",
1015    "runtime_core:libarkassembler_static",
1016    "runtime_core:libarkverifier",
1017  ]
1018  deps += hiviewdfx_deps
1019}
1020
1021host_unittest_action("JS_APIVectorIterator_Test") {
1022  module_out_path = module_output_path
1023
1024  sources = [
1025    # test file
1026    "js_api_vector_iterator_test.cpp",
1027  ]
1028
1029  configs = [
1030    "../../:asm_interp_enable_config",
1031    "../../:ecma_test_config",
1032  ]
1033
1034  deps = [ "../../:libark_jsruntime_test" ]
1035
1036  # hiviewdfx libraries
1037  external_deps = hiviewdfx_ext_deps
1038  external_deps += [
1039    "icu:shared_icui18n",
1040    "icu:shared_icuuc",
1041    "runtime_core:libarkassembler_static",
1042    "runtime_core:libarkverifier",
1043  ]
1044  deps += hiviewdfx_deps
1045}
1046
1047host_unittest_action("JS_APIVector_Test") {
1048  module_out_path = module_output_path
1049
1050  sources = [
1051    # test file
1052    "js_api_vector_test.cpp",
1053  ]
1054
1055  configs = [
1056    "../../:asm_interp_enable_config",
1057    "../../:ecma_test_config",
1058  ]
1059
1060  deps = [ "../../:libark_jsruntime_test" ]
1061
1062  # hiviewdfx libraries
1063  external_deps = hiviewdfx_ext_deps
1064  external_deps += [
1065    "icu:shared_icui18n",
1066    "icu:shared_icuuc",
1067    "runtime_core:libarkassembler_static",
1068    "runtime_core:libarkverifier",
1069  ]
1070  deps += hiviewdfx_deps
1071}
1072
1073host_unittest_action("JS_Arguments_Test") {
1074  module_out_path = module_output_path
1075
1076  sources = [
1077    # test file
1078    "js_arguments_test.cpp",
1079  ]
1080
1081  configs = [
1082    "../../:asm_interp_enable_config",
1083    "../../:ecma_test_config",
1084  ]
1085
1086  deps = [ "../../:libark_jsruntime_test" ]
1087
1088  # hiviewdfx libraries
1089  external_deps = hiviewdfx_ext_deps
1090  external_deps += [
1091    "icu:shared_icui18n",
1092    "icu:shared_icuuc",
1093    "runtime_core:libarkassembler_static",
1094    "runtime_core:libarkverifier",
1095  ]
1096  deps += hiviewdfx_deps
1097}
1098
1099host_unittest_action("JS_ArrayBuffer_Test") {
1100  module_out_path = module_output_path
1101
1102  sources = [
1103    # test file
1104    "js_array_buffer_test.cpp",
1105  ]
1106
1107  configs = [
1108    "../../:asm_interp_enable_config",
1109    "../../:ecma_test_config",
1110  ]
1111
1112  deps = [ "../../:libark_jsruntime_test" ]
1113
1114  # hiviewdfx libraries
1115  external_deps = hiviewdfx_ext_deps
1116  external_deps += [
1117    "icu:shared_icui18n",
1118    "icu:shared_icuuc",
1119    "runtime_core:libarkassembler_static",
1120    "runtime_core:libarkverifier",
1121  ]
1122  deps += hiviewdfx_deps
1123}
1124
1125host_unittest_action("JS_ArrayIterator_Test") {
1126  module_out_path = module_output_path
1127
1128  sources = [
1129    # test file
1130    "js_array_iterator_test.cpp",
1131  ]
1132
1133  configs = [
1134    "../../:asm_interp_enable_config",
1135    "../../:ecma_test_config",
1136  ]
1137
1138  deps = [ "../../:libark_jsruntime_test" ]
1139
1140  # hiviewdfx libraries
1141  external_deps = hiviewdfx_ext_deps
1142  external_deps += [
1143    "icu:shared_icui18n",
1144    "icu:shared_icuuc",
1145    "runtime_core:libarkassembler_static",
1146    "runtime_core:libarkverifier",
1147  ]
1148  deps += hiviewdfx_deps
1149}
1150
1151host_unittest_action("JS_Array_Test") {
1152  module_out_path = module_output_path
1153
1154  sources = [
1155    # test file
1156    "js_array_test.cpp",
1157  ]
1158
1159  configs = [
1160    "../../:asm_interp_enable_config",
1161    "../../:ecma_test_config",
1162  ]
1163
1164  deps = [ "../../:libark_jsruntime_test" ]
1165
1166  # hiviewdfx libraries
1167  external_deps = hiviewdfx_ext_deps
1168  external_deps += [
1169    "icu:shared_icui18n",
1170    "icu:shared_icuuc",
1171    "runtime_core:libarkassembler_static",
1172    "runtime_core:libarkverifier",
1173  ]
1174  deps += hiviewdfx_deps
1175}
1176
1177host_unittest_action("JS_AsyncFunction_Test") {
1178  module_out_path = module_output_path
1179
1180  sources = [
1181    # test file
1182    "js_async_function_test.cpp",
1183  ]
1184
1185  configs = [
1186    "../../:asm_interp_enable_config",
1187    "../../:ecma_test_config",
1188  ]
1189
1190  deps = [ "../../:libark_jsruntime_test" ]
1191
1192  # hiviewdfx libraries
1193  external_deps = hiviewdfx_ext_deps
1194  external_deps += [
1195    "icu:shared_icui18n",
1196    "icu:shared_icuuc",
1197    "runtime_core:libarkassembler_static",
1198    "runtime_core:libarkverifier",
1199  ]
1200  deps += hiviewdfx_deps
1201}
1202
1203host_unittest_action("JS_BigInt_Test") {
1204  module_out_path = module_output_path
1205
1206  sources = [
1207    # test file
1208    "js_bigint_test.cpp",
1209  ]
1210
1211  configs = [
1212    "../../:asm_interp_enable_config",
1213    "../../:ecma_test_config",
1214  ]
1215
1216  deps = [ "../../:libark_jsruntime_test" ]
1217
1218  # hiviewdfx libraries
1219  external_deps = hiviewdfx_ext_deps
1220  external_deps += [
1221    "icu:shared_icui18n",
1222    "icu:shared_icuuc",
1223    "runtime_core:libarkassembler_static",
1224    "runtime_core:libarkverifier",
1225  ]
1226  deps += hiviewdfx_deps
1227}
1228
1229host_unittest_action("JS_AsyncGengeratorObject_Test") {
1230  module_out_path = module_output_path
1231
1232  sources = [
1233    # test file
1234    "js_async_generator_object_test.cpp",
1235  ]
1236
1237  configs = [
1238    "../../:asm_interp_enable_config",
1239    "../../:ecma_test_config",
1240  ]
1241
1242  deps = [ "../../:libark_jsruntime_test" ]
1243
1244  # hiviewdfx libraries
1245  external_deps = hiviewdfx_ext_deps
1246  external_deps += [
1247    "icu:shared_icui18n",
1248    "icu:shared_icuuc",
1249    "runtime_core:libarkassembler_static",
1250    "runtime_core:libarkverifier",
1251  ]
1252  deps += hiviewdfx_deps
1253}
1254
1255host_unittest_action("JS_DisPlayNames_Test") {
1256  module_out_path = module_output_path
1257
1258  sources = [
1259    # test file
1260    "js_displaynames_test.cpp",
1261  ]
1262
1263  configs = [
1264    "../../:ecma_test_config",
1265    "../../:icu_path_test_config",
1266  ]
1267
1268  deps = [ "../../:libark_jsruntime_test" ]
1269
1270  # hiviewdfx libraries
1271  external_deps = hiviewdfx_ext_deps
1272  external_deps += [
1273    "icu:shared_icui18n",
1274    "icu:shared_icuuc",
1275    "runtime_core:libarkassembler_static",
1276    "runtime_core:libarkverifier",
1277    "zlib:libz",
1278  ]
1279  deps += hiviewdfx_deps
1280}
1281
1282host_unittest_action("JS_FinalizationRegistry_Test") {
1283  module_out_path = module_output_path
1284
1285  sources = [
1286    # test file
1287    "js_finalization_registry_test.cpp",
1288  ]
1289
1290  configs = [
1291    "../../:ecma_test_config",
1292    "../../:icu_path_test_config",
1293  ]
1294
1295  deps = [ "../../:libark_jsruntime_test" ]
1296
1297  # hiviewdfx libraries
1298  external_deps = hiviewdfx_ext_deps
1299  external_deps += [
1300    "icu:shared_icui18n",
1301    "icu:shared_icuuc",
1302    "runtime_core:libarkassembler_static",
1303    "runtime_core:libarkverifier",
1304    "zlib:libz",
1305  ]
1306  deps += hiviewdfx_deps
1307}
1308
1309host_unittest_action("JS_ForinIterator_Test") {
1310  module_out_path = module_output_path
1311
1312  sources = [
1313    # test file
1314    "js_forin_iterator_test.cpp",
1315  ]
1316
1317  configs = [
1318    "../../:ecma_test_config",
1319    "../../:icu_path_test_config",
1320  ]
1321
1322  deps = [ "../../:libark_jsruntime_test" ]
1323
1324  # hiviewdfx libraries
1325  external_deps = hiviewdfx_ext_deps
1326  external_deps += [
1327    "icu:shared_icui18n",
1328    "icu:shared_icuuc",
1329    "runtime_core:libarkassembler_static",
1330    "runtime_core:libarkverifier",
1331    "zlib:libz",
1332  ]
1333  deps += hiviewdfx_deps
1334}
1335
1336host_unittest_action("JS_Function_Test") {
1337  module_out_path = module_output_path
1338
1339  sources = [
1340    # test file
1341    "js_function_test.cpp",
1342  ]
1343
1344  configs = [
1345    "../../:ecma_test_config",
1346    "../../:icu_path_test_config",
1347  ]
1348
1349  deps = [ "../../:libark_jsruntime_test" ]
1350
1351  # hiviewdfx libraries
1352  external_deps = hiviewdfx_ext_deps
1353  external_deps += [
1354    "icu:shared_icui18n",
1355    "icu:shared_icuuc",
1356    "runtime_core:libarkassembler_static",
1357    "runtime_core:libarkverifier",
1358    "zlib:libz",
1359  ]
1360  deps += hiviewdfx_deps
1361}
1362
1363host_unittest_action("JS_GeneratorObject_Test") {
1364  module_out_path = module_output_path
1365
1366  sources = [
1367    # test file
1368    "js_generator_object_test.cpp",
1369  ]
1370
1371  configs = [
1372    "../../:ecma_test_config",
1373    "../../:icu_path_test_config",
1374  ]
1375
1376  deps = [ "../../:libark_jsruntime_test" ]
1377
1378  # hiviewdfx libraries
1379  external_deps = hiviewdfx_ext_deps
1380  external_deps += [
1381    "icu:shared_icui18n",
1382    "icu:shared_icuuc",
1383    "runtime_core:libarkassembler_static",
1384    "runtime_core:libarkverifier",
1385    "zlib:libz",
1386  ]
1387  deps += hiviewdfx_deps
1388}
1389
1390host_unittest_action("JS_Handle_Test") {
1391  module_out_path = module_output_path
1392
1393  sources = [
1394    # test file
1395    "js_handle_test.cpp",
1396  ]
1397
1398  configs = [
1399    "../../:ecma_test_config",
1400    "../../:icu_path_test_config",
1401  ]
1402
1403  deps = [ "../../:libark_jsruntime_test" ]
1404
1405  # hiviewdfx libraries
1406  external_deps = hiviewdfx_ext_deps
1407  external_deps += [
1408    "icu:shared_icui18n",
1409    "icu:shared_icuuc",
1410    "runtime_core:libarkassembler_static",
1411    "runtime_core:libarkverifier",
1412    "zlib:libz",
1413  ]
1414  deps += hiviewdfx_deps
1415}
1416
1417host_unittest_action("JS_MapIterator_Test") {
1418  module_out_path = module_output_path
1419
1420  sources = [
1421    # test file
1422    "js_map_iterator_test.cpp",
1423  ]
1424
1425  configs = [
1426    "../../:ecma_test_config",
1427    "../../:icu_path_test_config",
1428  ]
1429
1430  deps = [ "../../:libark_jsruntime_test" ]
1431
1432  # hiviewdfx libraries
1433  external_deps = hiviewdfx_ext_deps
1434  external_deps += [
1435    "icu:shared_icui18n",
1436    "icu:shared_icuuc",
1437    "runtime_core:libarkassembler_static",
1438    "runtime_core:libarkverifier",
1439  ]
1440  deps += hiviewdfx_deps
1441}
1442
1443host_unittest_action("JS_Map_Test") {
1444  module_out_path = module_output_path
1445
1446  sources = [
1447    # test file
1448    "js_map_test.cpp",
1449  ]
1450
1451  configs = [
1452    "../../:ecma_test_config",
1453    "../../:icu_path_test_config",
1454  ]
1455
1456  deps = [ "../../:libark_jsruntime_test" ]
1457
1458  # hiviewdfx libraries
1459  external_deps = hiviewdfx_ext_deps
1460  external_deps += [
1461    "icu:shared_icui18n",
1462    "icu:shared_icuuc",
1463    "runtime_core:libarkassembler_static",
1464    "runtime_core:libarkverifier",
1465  ]
1466  deps += hiviewdfx_deps
1467}
1468
1469host_unittest_action("JS_NumberFormat_Test") {
1470  module_out_path = module_output_path
1471
1472  sources = [
1473    # test file
1474    "js_number_format_test.cpp",
1475  ]
1476
1477  configs = [
1478    "../../:ecma_test_config",
1479    "../../:icu_path_test_config",
1480  ]
1481
1482  deps = [ "../../:libark_jsruntime_test" ]
1483
1484  # hiviewdfx libraries
1485  external_deps = hiviewdfx_ext_deps
1486  external_deps += [
1487    "icu:shared_icui18n",
1488    "icu:shared_icuuc",
1489    "runtime_core:libarkassembler_static",
1490    "runtime_core:libarkverifier",
1491  ]
1492  deps += hiviewdfx_deps
1493}
1494
1495host_unittest_action("Dynamic_Object_Accessor_Test") {
1496  module_out_path = module_output_path
1497
1498  sources = [
1499    # test file
1500    "dynamic_object_accessor_test.cpp",
1501  ]
1502
1503  configs = [
1504    "../../:ecma_test_config",
1505    "../../:icu_path_test_config",
1506  ]
1507
1508  deps = [ "../../:libark_jsruntime_test" ]
1509
1510  # hiviewdfx libraries
1511  external_deps = hiviewdfx_ext_deps
1512  external_deps += [
1513    "icu:shared_icui18n",
1514    "icu:shared_icuuc",
1515    "runtime_core:libarkassembler_static",
1516    "runtime_core:libarkverifier",
1517  ]
1518  deps += hiviewdfx_deps
1519}
1520
1521host_unittest_action("JS_Object_Test") {
1522  module_out_path = module_output_path
1523
1524  sources = [
1525    # test file
1526    "js_object_test.cpp",
1527  ]
1528
1529  configs = [
1530    "../../:ecma_test_config",
1531    "../../:icu_path_test_config",
1532  ]
1533
1534  deps = [ "../../:libark_jsruntime_test" ]
1535
1536  # hiviewdfx libraries
1537  external_deps = hiviewdfx_ext_deps
1538  external_deps += [
1539    "icu:shared_icui18n",
1540    "icu:shared_icuuc",
1541    "runtime_core:libarkassembler_static",
1542    "runtime_core:libarkverifier",
1543  ]
1544  deps += hiviewdfx_deps
1545}
1546
1547host_unittest_action("JS_PluralRules_Test") {
1548  module_out_path = module_output_path
1549
1550  sources = [
1551    # test file
1552    "js_plural_rules_test.cpp",
1553  ]
1554
1555  configs = [
1556    "../../:ecma_test_config",
1557    "../../:icu_path_test_config",
1558  ]
1559
1560  deps = [ "../../:libark_jsruntime_test" ]
1561
1562  # hiviewdfx libraries
1563  external_deps = hiviewdfx_ext_deps
1564  external_deps += [
1565    "icu:shared_icui18n",
1566    "icu:shared_icuuc",
1567    "runtime_core:libarkassembler_static",
1568    "runtime_core:libarkverifier",
1569  ]
1570  deps += hiviewdfx_deps
1571}
1572
1573host_unittest_action("JS_PrimitiveRef_Test") {
1574  module_out_path = module_output_path
1575
1576  sources = [
1577    # test file
1578    "js_primitive_ref_test.cpp",
1579  ]
1580
1581  configs = [
1582    "../../:ecma_test_config",
1583    "../../:icu_path_test_config",
1584  ]
1585
1586  deps = [ "../../:libark_jsruntime_test" ]
1587
1588  # hiviewdfx libraries
1589  external_deps = hiviewdfx_ext_deps
1590  external_deps += [
1591    "icu:shared_icui18n",
1592    "icu:shared_icuuc",
1593    "runtime_core:libarkassembler_static",
1594    "runtime_core:libarkverifier",
1595  ]
1596  deps += hiviewdfx_deps
1597}
1598
1599host_unittest_action("JS_Promise_Test") {
1600  module_out_path = module_output_path
1601
1602  sources = [
1603    # test file
1604    "js_promise_test.cpp",
1605  ]
1606
1607  configs = [
1608    "../../:ecma_test_config",
1609    "../../:icu_path_test_config",
1610  ]
1611
1612  deps = [ "../../:libark_jsruntime_test" ]
1613
1614  # hiviewdfx libraries
1615  external_deps = hiviewdfx_ext_deps
1616  external_deps += [
1617    "icu:shared_icui18n",
1618    "icu:shared_icuuc",
1619    "runtime_core:libarkassembler_static",
1620    "runtime_core:libarkverifier",
1621  ]
1622  deps += hiviewdfx_deps
1623}
1624
1625host_unittest_action("JS_Proxy_Test") {
1626  module_out_path = module_output_path
1627
1628  sources = [
1629    # test file
1630    "js_proxy_test.cpp",
1631  ]
1632
1633  configs = [
1634    "../../:ecma_test_config",
1635    "../../:icu_path_test_config",
1636  ]
1637
1638  deps = [ "../../:libark_jsruntime_test" ]
1639
1640  # hiviewdfx libraries
1641  external_deps = hiviewdfx_ext_deps
1642  external_deps += [
1643    "icu:shared_icui18n",
1644    "icu:shared_icuuc",
1645    "runtime_core:libarkassembler_static",
1646    "runtime_core:libarkverifier",
1647  ]
1648  deps += hiviewdfx_deps
1649}
1650
1651host_unittest_action("JS_RegexpIterator_Test") {
1652  module_out_path = module_output_path
1653
1654  sources = [
1655    # test file
1656    "js_regexp_iterator_test.cpp",
1657  ]
1658
1659  configs = [
1660    "../../:ecma_test_config",
1661    "../../:icu_path_test_config",
1662  ]
1663
1664  deps = [ "../../:libark_jsruntime_test" ]
1665
1666  # hiviewdfx libraries
1667  external_deps = hiviewdfx_ext_deps
1668  external_deps += [
1669    "icu:shared_icui18n",
1670    "icu:shared_icuuc",
1671    "runtime_core:libarkassembler_static",
1672    "runtime_core:libarkverifier",
1673  ]
1674  deps += hiviewdfx_deps
1675}
1676
1677host_unittest_action("JS_RelativeTimeFormat_Test") {
1678  module_out_path = module_output_path
1679
1680  sources = [
1681    # test file
1682    "js_relative_time_format_test.cpp",
1683  ]
1684
1685  configs = [
1686    "../../:ecma_test_config",
1687    "../../:icu_path_test_config",
1688  ]
1689
1690  deps = [ "../../:libark_jsruntime_test" ]
1691
1692  # hiviewdfx libraries
1693  external_deps = hiviewdfx_ext_deps
1694  external_deps += [
1695    "icu:shared_icui18n",
1696    "icu:shared_icuuc",
1697    "runtime_core:libarkassembler_static",
1698    "runtime_core:libarkverifier",
1699  ]
1700  deps += hiviewdfx_deps
1701}
1702
1703host_unittest_action("JS_LocaleHelper_Test") {
1704  module_out_path = module_output_path
1705
1706  sources = [
1707    # test file
1708    "locale_helper_test.cpp",
1709  ]
1710
1711  configs = [
1712    "../../:ecma_test_config",
1713    "../../:icu_path_test_config",
1714  ]
1715
1716  deps = [ "../../:libark_jsruntime_test" ]
1717
1718  # hiviewdfx libraries
1719  external_deps = hiviewdfx_ext_deps
1720  external_deps += [
1721    "icu:shared_icui18n",
1722    "icu:shared_icuuc",
1723    "runtime_core:libarkassembler_static",
1724    "runtime_core:libarkverifier",
1725  ]
1726  deps += hiviewdfx_deps
1727}
1728
1729host_unittest_action("JS_SetIterator_Test") {
1730  module_out_path = module_output_path
1731
1732  sources = [
1733    # test file
1734    "js_set_iterator_test.cpp",
1735  ]
1736
1737  configs = [
1738    "../../:ecma_test_config",
1739    "../../:icu_path_test_config",
1740  ]
1741
1742  deps = [ "../../:libark_jsruntime_test" ]
1743
1744  # hiviewdfx libraries
1745  external_deps = hiviewdfx_ext_deps
1746  external_deps += [
1747    "icu:shared_icui18n",
1748    "icu:shared_icuuc",
1749    "runtime_core:libarkassembler_static",
1750    "runtime_core:libarkverifier",
1751  ]
1752  deps += hiviewdfx_deps
1753}
1754
1755host_unittest_action("JS_Set_Test") {
1756  module_out_path = module_output_path
1757
1758  sources = [
1759    # test file
1760    "js_set_test.cpp",
1761  ]
1762
1763  configs = [
1764    "../../:ecma_test_config",
1765    "../../:icu_path_test_config",
1766  ]
1767
1768  deps = [ "../../:libark_jsruntime_test" ]
1769
1770  # hiviewdfx libraries
1771  external_deps = hiviewdfx_ext_deps
1772  external_deps += [
1773    "icu:shared_icui18n",
1774    "icu:shared_icuuc",
1775    "runtime_core:libarkassembler_static",
1776    "runtime_core:libarkverifier",
1777  ]
1778  deps += hiviewdfx_deps
1779}
1780
1781host_unittest_action("JS_StableArray_Test") {
1782  module_out_path = module_output_path
1783
1784  sources = [
1785    # test file
1786    "js_stable_array_test.cpp",
1787  ]
1788
1789  configs = [
1790    "../../:ecma_test_config",
1791    "../../:icu_path_test_config",
1792  ]
1793
1794  deps = [ "../../:libark_jsruntime_test" ]
1795
1796  # hiviewdfx libraries
1797  external_deps = hiviewdfx_ext_deps
1798  external_deps += [
1799    "icu:shared_icui18n",
1800    "icu:shared_icuuc",
1801    "runtime_core:libarkassembler_static",
1802    "runtime_core:libarkverifier",
1803  ]
1804  deps += hiviewdfx_deps
1805}
1806
1807host_unittest_action("JS_Symbol_Test") {
1808  module_out_path = module_output_path
1809
1810  sources = [
1811    # test file
1812    "js_symbol_test.cpp",
1813  ]
1814
1815  configs = [
1816    "../../:ecma_test_config",
1817    "../../:icu_path_test_config",
1818  ]
1819
1820  deps = [ "../../:libark_jsruntime_test" ]
1821
1822  # hiviewdfx libraries
1823  external_deps = hiviewdfx_ext_deps
1824  external_deps += [
1825    "icu:shared_icui18n",
1826    "icu:shared_icuuc",
1827    "runtime_core:libarkassembler_static",
1828    "runtime_core:libarkverifier",
1829  ]
1830  deps += hiviewdfx_deps
1831}
1832
1833host_unittest_action("JS_TaggedNumber_Test") {
1834  module_out_path = module_output_path
1835
1836  sources = [
1837    # test file
1838    "js_tagged_number_test.cpp",
1839  ]
1840
1841  configs = [
1842    "../../:ecma_test_config",
1843    "../../:icu_path_test_config",
1844  ]
1845
1846  deps = [ "../../:libark_jsruntime_test" ]
1847
1848  # hiviewdfx libraries
1849  external_deps = hiviewdfx_ext_deps
1850  external_deps += [
1851    "icu:shared_icui18n",
1852    "icu:shared_icuuc",
1853    "runtime_core:libarkassembler_static",
1854    "runtime_core:libarkverifier",
1855  ]
1856  deps += hiviewdfx_deps
1857}
1858
1859host_unittest_action("JS_TaggedQueue_Test") {
1860  module_out_path = module_output_path
1861
1862  sources = [
1863    # test file
1864    "js_tagged_queue_test.cpp",
1865  ]
1866
1867  configs = [
1868    "../../:ecma_test_config",
1869    "../../:icu_path_test_config",
1870  ]
1871
1872  deps = [ "../../:libark_jsruntime_test" ]
1873
1874  # hiviewdfx libraries
1875  external_deps = hiviewdfx_ext_deps
1876  external_deps += [
1877    "icu:shared_icui18n",
1878    "icu:shared_icuuc",
1879    "runtime_core:libarkassembler_static",
1880    "runtime_core:libarkverifier",
1881  ]
1882  deps += hiviewdfx_deps
1883}
1884
1885host_unittest_action("JS_TypedArray_Test") {
1886  module_out_path = module_output_path
1887
1888  sources = [
1889    # test file
1890    "js_typed_array_test.cpp",
1891  ]
1892
1893  configs = [
1894    "../../:ecma_test_config",
1895    "../../:icu_path_test_config",
1896  ]
1897
1898  deps = [ "../../:libark_jsruntime_test" ]
1899
1900  # hiviewdfx libraries
1901  external_deps = hiviewdfx_ext_deps
1902  external_deps += [
1903    "icu:shared_icui18n",
1904    "icu:shared_icuuc",
1905    "runtime_core:libarkassembler_static",
1906    "runtime_core:libarkverifier",
1907  ]
1908  deps += hiviewdfx_deps
1909}
1910
1911host_unittest_action("JS_LayoutInfo_Test") {
1912  module_out_path = module_output_path
1913
1914  sources = [
1915    # test file
1916    "layout_info_test.cpp",
1917  ]
1918
1919  configs = [
1920    "../../:ecma_test_config",
1921    "../../:icu_path_test_config",
1922  ]
1923
1924  deps = [ "../../:libark_jsruntime_test" ]
1925
1926  # hiviewdfx libraries
1927  external_deps = hiviewdfx_ext_deps
1928  external_deps += [
1929    "icu:shared_icui18n",
1930    "icu:shared_icuuc",
1931    "runtime_core:libarkassembler_static",
1932    "runtime_core:libarkverifier",
1933  ]
1934  deps += hiviewdfx_deps
1935}
1936
1937host_unittest_action("JS_LexicalEnv_Test") {
1938  module_out_path = module_output_path
1939
1940  sources = [
1941    # test file
1942    "lexical_env_test.cpp",
1943  ]
1944
1945  configs = [ "../../:ecma_test_config" ]
1946
1947  deps = [ "../../:libark_jsruntime_test" ]
1948
1949  # hiviewdfx libraries
1950  external_deps = hiviewdfx_ext_deps
1951  external_deps += [
1952    "icu:shared_icui18n",
1953    "icu:shared_icuuc",
1954    "runtime_core:libarkassembler_static",
1955    "runtime_core:libarkverifier",
1956    "zlib:libz",
1957  ]
1958  deps += hiviewdfx_deps
1959}
1960
1961host_unittest_action("JS_LinkHashTable_Test") {
1962  module_out_path = module_output_path
1963
1964  sources = [
1965    # test file
1966    "linked_hash_table_test.cpp",
1967  ]
1968
1969  configs = [ "../../:ecma_test_config" ]
1970
1971  deps = [ "../../:libark_jsruntime_test" ]
1972
1973  # hiviewdfx libraries
1974  external_deps = hiviewdfx_ext_deps
1975  external_deps += [
1976    "icu:shared_icui18n",
1977    "icu:shared_icuuc",
1978    "runtime_core:libarkassembler_static",
1979    "runtime_core:libarkverifier",
1980    "zlib:libz",
1981  ]
1982  deps += hiviewdfx_deps
1983}
1984
1985host_unittest_action("JS_LinkNode_Test") {
1986  module_out_path = module_output_path
1987
1988  sources = [
1989    # test file
1990    "linked_node_test.cpp",
1991  ]
1992
1993  configs = [ "../../:ecma_test_config" ]
1994
1995  deps = [ "../../:libark_jsruntime_test" ]
1996
1997  # hiviewdfx libraries
1998  external_deps = hiviewdfx_ext_deps
1999  external_deps += [
2000    "icu:shared_icui18n",
2001    "icu:shared_icuuc",
2002    "runtime_core:libarkassembler_static",
2003    "runtime_core:libarkverifier",
2004    "zlib:libz",
2005  ]
2006  deps += hiviewdfx_deps
2007}
2008
2009host_unittest_action("JS_NativePoint_Test") {
2010  module_out_path = module_output_path
2011
2012  sources = [
2013    # test file
2014    "native_pointer_test.cpp",
2015  ]
2016
2017  configs = [ "../../:ecma_test_config" ]
2018
2019  deps = [ "../../:libark_jsruntime_test" ]
2020
2021  # hiviewdfx libraries
2022  external_deps = hiviewdfx_ext_deps
2023  external_deps += [
2024    "icu:shared_icui18n",
2025    "icu:shared_icuuc",
2026    "runtime_core:libarkassembler_static",
2027    "runtime_core:libarkverifier",
2028  ]
2029  deps += hiviewdfx_deps
2030}
2031
2032host_unittest_action("JS_SymbolTable_Test") {
2033  module_out_path = module_output_path
2034
2035  sources = [
2036    # test file
2037    "symbol_table_test.cpp",
2038  ]
2039
2040  configs = [ "../../:ecma_test_config" ]
2041
2042  deps = [ "../../:libark_jsruntime_test" ]
2043
2044  # hiviewdfx libraries
2045  external_deps = hiviewdfx_ext_deps
2046  external_deps += [
2047    "icu:shared_icui18n",
2048    "icu:shared_icuuc",
2049    "runtime_core:libarkassembler_static",
2050    "runtime_core:libarkverifier",
2051  ]
2052  deps += hiviewdfx_deps
2053}
2054
2055host_unittest_action("JS_TaggedArray_Test") {
2056  module_out_path = module_output_path
2057
2058  sources = [
2059    # test file
2060    "tagged_array_test.cpp",
2061  ]
2062
2063  configs = [ "../../:ecma_test_config" ]
2064
2065  deps = [ "../../:libark_jsruntime_test" ]
2066
2067  # hiviewdfx libraries
2068  external_deps = hiviewdfx_ext_deps
2069  external_deps += [
2070    "icu:shared_icui18n",
2071    "icu:shared_icuuc",
2072    "runtime_core:libarkassembler_static",
2073    "runtime_core:libarkverifier",
2074  ]
2075  deps += hiviewdfx_deps
2076}
2077
2078host_unittest_action("JS_TaggedDictionary_Test") {
2079  module_out_path = module_output_path
2080
2081  sources = [
2082    # test file
2083    "tagged_dictionary_test.cpp",
2084  ]
2085
2086  configs = [ "../../:ecma_test_config" ]
2087
2088  deps = [ "../../:libark_jsruntime_test" ]
2089
2090  # hiviewdfx libraries
2091  external_deps = hiviewdfx_ext_deps
2092  external_deps += [
2093    "icu:shared_icui18n",
2094    "icu:shared_icuuc",
2095    "runtime_core:libarkassembler_static",
2096    "runtime_core:libarkverifier",
2097  ]
2098  deps += hiviewdfx_deps
2099}
2100
2101host_unittest_action("JS_TaggedHashArray_Test") {
2102  module_out_path = module_output_path
2103
2104  sources = [
2105    # test file
2106    "tagged_hash_array_test.cpp",
2107  ]
2108
2109  configs = [ "../../:ecma_test_config" ]
2110
2111  deps = [ "../../:libark_jsruntime_test" ]
2112
2113  # hiviewdfx libraries
2114  external_deps = hiviewdfx_ext_deps
2115  external_deps += [
2116    "icu:shared_icui18n",
2117    "icu:shared_icuuc",
2118    "runtime_core:libarkassembler_static",
2119    "runtime_core:libarkverifier",
2120  ]
2121  deps += hiviewdfx_deps
2122}
2123
2124host_unittest_action("JS_TaggedTree_Test") {
2125  module_out_path = module_output_path
2126
2127  sources = [
2128    # test file
2129    "tagged_tree_test.cpp",
2130  ]
2131
2132  configs = [ "../../:ecma_test_config" ]
2133
2134  deps = [ "../../:libark_jsruntime_test" ]
2135
2136  # hiviewdfx libraries
2137  external_deps = hiviewdfx_ext_deps
2138  external_deps += [
2139    "icu:shared_icui18n",
2140    "icu:shared_icuuc",
2141    "runtime_core:libarkassembler_static",
2142    "runtime_core:libarkverifier",
2143  ]
2144  deps += hiviewdfx_deps
2145}
2146
2147host_unittest_action("JS_TaggedValue_Test") {
2148  module_out_path = module_output_path
2149
2150  sources = [
2151    # test file
2152    "tagged_value_test.cpp",
2153  ]
2154
2155  configs = [ "../../:ecma_test_config" ]
2156
2157  deps = [ "../../:libark_jsruntime_test" ]
2158
2159  # hiviewdfx libraries
2160  external_deps = hiviewdfx_ext_deps
2161  external_deps += [
2162    "icu:shared_icui18n",
2163    "icu:shared_icuuc",
2164    "runtime_core:libarkassembler_static",
2165    "runtime_core:libarkverifier",
2166  ]
2167  deps += hiviewdfx_deps
2168}
2169
2170host_unittest_action("JS_TemplateMap_Test") {
2171  module_out_path = module_output_path
2172
2173  sources = [
2174    # test file
2175    "template_map_test.cpp",
2176  ]
2177
2178  configs = [ "../../:ecma_test_config" ]
2179
2180  deps = [ "../../:libark_jsruntime_test" ]
2181
2182  # hiviewdfx libraries
2183  external_deps = hiviewdfx_ext_deps
2184  external_deps += [
2185    "icu:shared_icui18n",
2186    "icu:shared_icuuc",
2187    "runtime_core:libarkassembler_static",
2188    "runtime_core:libarkverifier",
2189  ]
2190  deps += hiviewdfx_deps
2191}
2192
2193host_unittest_action("JS_TemplateString_Test") {
2194  module_out_path = module_output_path
2195
2196  sources = [
2197    # test file
2198    "template_string_test.cpp",
2199  ]
2200
2201  configs = [ "../../:ecma_test_config" ]
2202
2203  deps = [ "../../:libark_jsruntime_test" ]
2204
2205  # hiviewdfx libraries
2206  external_deps = hiviewdfx_ext_deps
2207  external_deps += [
2208    "icu:shared_icui18n",
2209    "icu:shared_icuuc",
2210    "runtime_core:libarkassembler_static",
2211    "runtime_core:libarkverifier",
2212  ]
2213  deps += hiviewdfx_deps
2214}
2215
2216host_unittest_action("JS_TransitionsDictionary_Test") {
2217  module_out_path = module_output_path
2218
2219  sources = [
2220    # test file
2221    "transitions_dictionary_test.cpp",
2222  ]
2223
2224  configs = [ "../../:ecma_test_config" ]
2225
2226  deps = [ "../../:libark_jsruntime_test" ]
2227
2228  # hiviewdfx libraries
2229  external_deps = hiviewdfx_ext_deps
2230  external_deps += [
2231    "icu:shared_icui18n",
2232    "icu:shared_icuuc",
2233    "runtime_core:libarkassembler_static",
2234    "runtime_core:libarkverifier",
2235  ]
2236  deps += hiviewdfx_deps
2237}
2238
2239host_unittest_action("JS_WaiterList_Test") {
2240  module_out_path = module_output_path
2241
2242  sources = [
2243    # test file
2244    "waiter_list_test.cpp",
2245  ]
2246
2247  configs = [ "../../:ecma_test_config" ]
2248
2249  deps = [ "../../:libark_jsruntime_test" ]
2250
2251  # hiviewdfx libraries
2252  external_deps = hiviewdfx_ext_deps
2253  external_deps += [
2254    "icu:shared_icui18n",
2255    "icu:shared_icuuc",
2256    "runtime_core:libarkassembler_static",
2257    "runtime_core:libarkverifier",
2258  ]
2259  deps += hiviewdfx_deps
2260}
2261
2262host_unittest_action("JS_Collator_Test") {
2263  module_out_path = module_output_path
2264
2265  sources = [
2266    # test file
2267    "js_collator_test.cpp",
2268  ]
2269
2270  configs = [
2271    "../../:ecma_test_config",
2272    "../../:icu_path_test_config",
2273  ]
2274
2275  deps = [ "../../:libark_jsruntime_test" ]
2276
2277  # hiviewdfx libraries
2278  external_deps = hiviewdfx_ext_deps
2279  external_deps += [
2280    "icu:shared_icui18n",
2281    "icu:shared_icuuc",
2282    "runtime_core:libarkassembler_static",
2283    "runtime_core:libarkverifier",
2284  ]
2285  deps += hiviewdfx_deps
2286}
2287
2288host_unittest_action("JS_DateView_Test") {
2289  module_out_path = module_output_path
2290
2291  sources = [
2292    # test file
2293    "js_dataview_test.cpp",
2294  ]
2295
2296  configs = [
2297    "../../:ecma_test_config",
2298    "../../:icu_path_test_config",
2299  ]
2300
2301  deps = [ "../../:libark_jsruntime_test" ]
2302
2303  # hiviewdfx libraries
2304  external_deps = hiviewdfx_ext_deps
2305  external_deps += [
2306    "icu:shared_icui18n",
2307    "icu:shared_icuuc",
2308    "runtime_core:libarkassembler_static",
2309    "runtime_core:libarkverifier",
2310  ]
2311  deps += hiviewdfx_deps
2312}
2313
2314host_unittest_action("JS_Date_Test") {
2315  module_out_path = module_output_path
2316
2317  sources = [
2318    # test file
2319    "js_date_test.cpp",
2320  ]
2321
2322  configs = [
2323    "../../:ecma_test_config",
2324    "../../:icu_path_test_config",
2325  ]
2326
2327  deps = [ "../../:libark_jsruntime_test" ]
2328
2329  # hiviewdfx libraries
2330  external_deps = hiviewdfx_ext_deps
2331  external_deps += [
2332    "icu:shared_icui18n",
2333    "icu:shared_icuuc",
2334    "runtime_core:libarkassembler_static",
2335    "runtime_core:libarkverifier",
2336  ]
2337  deps += hiviewdfx_deps
2338}
2339
2340host_unittest_action("JS_DateTimeFormat_First_Test") {
2341  module_out_path = module_output_path
2342
2343  sources = [
2344    # test file
2345    "js_date_time_format_first_test.cpp",
2346  ]
2347
2348  configs = [
2349    "../../:ecma_test_config",
2350    "../../:icu_path_test_config",
2351  ]
2352
2353  deps = [ "../../:libark_jsruntime_test" ]
2354
2355  # hiviewdfx libraries
2356  external_deps = hiviewdfx_ext_deps
2357  external_deps += [
2358    "icu:shared_icui18n",
2359    "icu:shared_icuuc",
2360    "runtime_core:libarkassembler_static",
2361    "runtime_core:libarkverifier",
2362  ]
2363  deps += hiviewdfx_deps
2364}
2365
2366host_unittest_action("JS_Hclass_Test") {
2367  module_out_path = module_output_path
2368
2369  sources = [
2370    # test file
2371    "js_hclass_test.cpp",
2372  ]
2373
2374  configs = [
2375    "../../:ecma_test_config",
2376    "../../:icu_path_test_config",
2377  ]
2378
2379  deps = [ "../../:libark_jsruntime_test" ]
2380
2381  # hiviewdfx libraries
2382  external_deps = hiviewdfx_ext_deps
2383  external_deps += [
2384    "icu:shared_icui18n",
2385    "icu:shared_icuuc",
2386    "runtime_core:libarkassembler_static",
2387    "runtime_core:libarkverifier",
2388  ]
2389  deps += hiviewdfx_deps
2390}
2391
2392host_unittest_action("JS_Iterator_Test") {
2393  module_out_path = module_output_path
2394
2395  sources = [
2396    # test file
2397    "js_iterator_test.cpp",
2398  ]
2399
2400  configs = [
2401    "../../:ecma_test_config",
2402    "../../:icu_path_test_config",
2403  ]
2404
2405  deps = [ "../../:libark_jsruntime_test" ]
2406
2407  # hiviewdfx libraries
2408  external_deps = hiviewdfx_ext_deps
2409  external_deps += [
2410    "icu:shared_icui18n",
2411    "icu:shared_icuuc",
2412    "runtime_core:libarkassembler_static",
2413    "runtime_core:libarkverifier",
2414  ]
2415  deps += hiviewdfx_deps
2416}
2417
2418host_unittest_action("JS_ListFormat_Test") {
2419  module_out_path = module_output_path
2420
2421  sources = [
2422    # test file
2423    "js_list_format_test.cpp",
2424  ]
2425
2426  configs = [
2427    "../../:ecma_test_config",
2428    "../../:icu_path_test_config",
2429  ]
2430
2431  deps = [ "../../:libark_jsruntime_test" ]
2432
2433  # hiviewdfx libraries
2434  external_deps = hiviewdfx_ext_deps
2435  external_deps += [
2436    "icu:shared_icui18n",
2437    "icu:shared_icuuc",
2438    "runtime_core:libarkassembler_static",
2439    "runtime_core:libarkverifier",
2440  ]
2441  deps += hiviewdfx_deps
2442}
2443
2444host_unittest_action("JS_Locale_Test") {
2445  module_out_path = module_output_path
2446
2447  sources = [
2448    # test file
2449    "js_locale_test.cpp",
2450  ]
2451
2452  configs = [
2453    "../../:ecma_test_config",
2454    "../../:icu_path_test_config",
2455  ]
2456
2457  deps = [ "../../:libark_jsruntime_test" ]
2458
2459  # hiviewdfx libraries
2460  external_deps = hiviewdfx_ext_deps
2461  external_deps += [
2462    "icu:shared_icui18n",
2463    "icu:shared_icuuc",
2464    "runtime_core:libarkassembler_static",
2465    "runtime_core:libarkverifier",
2466  ]
2467  deps += hiviewdfx_deps
2468}
2469
2470host_unittest_action("ECMA_VM_Test") {
2471  module_out_path = module_output_path
2472
2473  sources = [
2474    # test file
2475    "ecma_vm_test.cpp",
2476  ]
2477
2478  configs = [
2479    "../../:asm_interp_enable_config",
2480    "../../:ecma_test_config",
2481  ]
2482
2483  deps = [ "../../:libark_jsruntime_test" ]
2484
2485  # hiviewdfx libraries
2486  external_deps = hiviewdfx_ext_deps
2487  external_deps += [
2488    "icu:shared_icui18n",
2489    "icu:shared_icuuc",
2490    "runtime_core:libarkassembler_static",
2491    "runtime_core:libarkverifier",
2492  ]
2493  deps += hiviewdfx_deps
2494}
2495
2496host_unittest_action("JS_GlobalDictionary_Test") {
2497  module_out_path = module_output_path
2498
2499  sources = [
2500    # test file
2501    "global_dictionary_test.cpp",
2502  ]
2503
2504  configs = [
2505    "../../:asm_interp_enable_config",
2506    "../../:ecma_test_config",
2507  ]
2508
2509  deps = [ "../../:libark_jsruntime_test" ]
2510
2511  # hiviewdfx libraries
2512  external_deps = hiviewdfx_ext_deps
2513  external_deps += [
2514    "icu:shared_icui18n",
2515    "icu:shared_icuuc",
2516    "runtime_core:libarkassembler_static",
2517    "runtime_core:libarkverifier",
2518  ]
2519  deps += hiviewdfx_deps
2520}
2521
2522host_unittest_action("JS_ObjectFactory_Test") {
2523  module_out_path = module_output_path
2524
2525  sources = [
2526    # test file
2527    "object_factory_test.cpp",
2528  ]
2529
2530  configs = [ "../../:ecma_test_config" ]
2531
2532  deps = [ "../../:libark_jsruntime_test" ]
2533
2534  # hiviewdfx libraries
2535  external_deps = hiviewdfx_ext_deps
2536  external_deps += [
2537    "icu:shared_icui18n",
2538    "icu:shared_icuuc",
2539    "runtime_core:libarkassembler_static",
2540    "runtime_core:libarkverifier",
2541  ]
2542  deps += hiviewdfx_deps
2543}
2544
2545host_unittest_action("JS_ObjectOperator_First_Test") {
2546  module_out_path = module_output_path
2547
2548  sources = [
2549    # test file
2550    "object_operator_first_test.cpp",
2551  ]
2552
2553  configs = [ "../../:ecma_test_config" ]
2554
2555  deps = [ "../../:libark_jsruntime_test" ]
2556
2557  # hiviewdfx libraries
2558  external_deps = hiviewdfx_ext_deps
2559  external_deps += [
2560    "icu:shared_icui18n",
2561    "icu:shared_icuuc",
2562    "runtime_core:libarkassembler_static",
2563    "runtime_core:libarkverifier",
2564  ]
2565  deps += hiviewdfx_deps
2566}
2567
2568host_unittest_action("JS_RbTreeNode_Test") {
2569  module_out_path = module_output_path
2570
2571  sources = [
2572    # test file
2573    "rb_tree_node_test.cpp",
2574  ]
2575
2576  configs = [ "../../:ecma_test_config" ]
2577
2578  deps = [ "../../:libark_jsruntime_test" ]
2579
2580  # hiviewdfx libraries
2581  external_deps = hiviewdfx_ext_deps
2582  external_deps += [
2583    "icu:shared_icui18n",
2584    "icu:shared_icuuc",
2585    "runtime_core:libarkassembler_static",
2586    "runtime_core:libarkverifier",
2587  ]
2588  deps += hiviewdfx_deps
2589}
2590
2591host_unittest_action("JS_ObjectOperator_Second_Test") {
2592  module_out_path = module_output_path
2593
2594  sources = [
2595    # test file
2596    "object_operator_second_test.cpp",
2597  ]
2598
2599  configs = [ "../../:ecma_test_config" ]
2600
2601  deps = [ "../../:libark_jsruntime_test" ]
2602
2603  # hiviewdfx libraries
2604  external_deps = hiviewdfx_ext_deps
2605  external_deps += [
2606    "icu:shared_icui18n",
2607    "icu:shared_icuuc",
2608    "runtime_core:libarkassembler_static",
2609    "runtime_core:libarkverifier",
2610  ]
2611  deps += hiviewdfx_deps
2612}
2613
2614host_unittest_action("JS_DateTimeFormat_Second_Test") {
2615  module_out_path = module_output_path
2616
2617  sources = [
2618    # test file
2619    "js_date_time_format_second_test.cpp",
2620  ]
2621
2622  configs = [
2623    "../../:ecma_test_config",
2624    "../../:icu_path_test_config",
2625  ]
2626
2627  deps = [ "../../:libark_jsruntime_test" ]
2628
2629  # hiviewdfx libraries
2630  external_deps = hiviewdfx_ext_deps
2631  external_deps += [
2632    "icu:shared_icui18n",
2633    "icu:shared_icuuc",
2634    "runtime_core:libarkassembler_static",
2635    "runtime_core:libarkverifier",
2636  ]
2637  deps += hiviewdfx_deps
2638}
2639
2640host_unittest_action("JS_ObjectOperator_Third_Test") {
2641  module_out_path = module_output_path
2642
2643  sources = [
2644    # test file
2645    "object_operator_third_test.cpp",
2646  ]
2647
2648  configs = [ "../../:ecma_test_config" ]
2649
2650  deps = [ "../../:libark_jsruntime_test" ]
2651
2652  # hiviewdfx libraries
2653  external_deps = hiviewdfx_ext_deps
2654  external_deps += [
2655    "icu:shared_icui18n",
2656    "icu:shared_icuuc",
2657    "runtime_core:libarkassembler_static",
2658    "runtime_core:libarkverifier",
2659  ]
2660  deps += hiviewdfx_deps
2661}
2662
2663host_unittest_action("JS_ThreadState_Test") {
2664  module_out_path = module_output_path
2665
2666  sources = [
2667    # test file
2668    "js_thread_state_test.cpp",
2669  ]
2670
2671  configs = [
2672    "../../:asm_interp_enable_config",
2673    "../../:ecma_test_config",
2674  ]
2675
2676  deps = [ "../../:libark_jsruntime_test" ]
2677
2678  # hiviewdfx libraries
2679  external_deps = hiviewdfx_ext_deps
2680  external_deps += [
2681    "icu:shared_icui18n",
2682    "icu:shared_icuuc",
2683    "runtime_core:libarkassembler_static",
2684    "runtime_core:libarkverifier",
2685  ]
2686  deps += hiviewdfx_deps
2687}
2688
2689host_unittest_action("JS_APIBitVectorIterator_Test") {
2690  module_out_path = module_output_path
2691
2692  sources = [
2693    # test file
2694    "js_api_bitvector_iterator_test.cpp",
2695  ]
2696
2697  configs = [
2698    "../../:asm_interp_enable_config",
2699    "../../:ecma_test_config",
2700  ]
2701
2702  deps = [ "../../:libark_jsruntime_test" ]
2703
2704  # hiviewdfx libraries
2705  external_deps = hiviewdfx_ext_deps
2706  external_deps += [
2707    "icu:shared_icui18n",
2708    "icu:shared_icuuc",
2709    "runtime_core:libarkassembler_static",
2710    "runtime_core:libarkverifier",
2711  ]
2712  deps += hiviewdfx_deps
2713}
2714
2715host_unittest_action("JS_APIBitVector_Test") {
2716  module_out_path = module_output_path
2717
2718  sources = [
2719    # test file
2720    "js_api_bitvector_test.cpp",
2721  ]
2722
2723  configs = [
2724    "../../:asm_interp_enable_config",
2725    "../../:ecma_test_config",
2726  ]
2727
2728  deps = [ "../../:libark_jsruntime_test" ]
2729
2730  # hiviewdfx libraries
2731  external_deps = hiviewdfx_ext_deps
2732  external_deps += [
2733    "icu:shared_icui18n",
2734    "icu:shared_icuuc",
2735    "runtime_core:libarkassembler_static",
2736    "runtime_core:libarkverifier",
2737  ]
2738  deps += hiviewdfx_deps
2739}
2740
2741host_unittest_action("JS_Barrier_Test") {
2742  module_out_path = module_output_path
2743
2744  sources = [
2745    # test file
2746    "barrier_test.cpp",
2747  ]
2748
2749  configs = [ "../../:ecma_test_config" ]
2750
2751  deps = [ "../../:libark_jsruntime_test" ]
2752
2753  # hiviewdfx libraries
2754  external_deps = hiviewdfx_ext_deps
2755  external_deps += [
2756    "icu:shared_icui18n",
2757    "icu:shared_icuuc",
2758    "runtime_core:libarkassembler_static",
2759    "runtime_core:libarkverifier",
2760  ]
2761  deps += hiviewdfx_deps
2762}
2763
2764host_unittest_action("GC_ModuleManagerMap_Test") {
2765  module_out_path = module_output_path
2766
2767  sources = [
2768    # test file
2769    "module_manager_map_test.cpp",
2770  ]
2771
2772  configs = [
2773    "../../:asm_interp_enable_config",
2774    "../../:ecma_test_config",
2775  ]
2776
2777  deps = [ "../../:libark_jsruntime_test" ]
2778
2779  # hiviewdfx libraries
2780  external_deps = hiviewdfx_ext_deps
2781  external_deps += [
2782    "icu:shared_icui18n",
2783    "icu:shared_icuuc",
2784    "runtime_core:libarkassembler_static",
2785    "runtime_core:libarkverifier",
2786    "zlib:libz",
2787  ]
2788  deps += hiviewdfx_deps
2789}
2790
2791host_unittest_action("GC_ConcurrentMarking_Test") {
2792  module_out_path = module_output_path
2793
2794  sources = [
2795    # test file
2796    "concurrent_marking_test.cpp",
2797  ]
2798
2799  configs = [
2800    "../../:asm_interp_enable_config",
2801    "../../:ecma_test_config",
2802  ]
2803
2804  deps = [ "../../:libark_jsruntime_test" ]
2805
2806  # hiviewdfx libraries
2807  external_deps = hiviewdfx_ext_deps
2808  external_deps += [
2809    "icu:shared_icui18n",
2810    "icu:shared_icuuc",
2811    "runtime_core:libarkassembler_static",
2812    "runtime_core:libarkverifier",
2813    "zlib:libz",
2814  ]
2815  deps += hiviewdfx_deps
2816}
2817
2818host_unittest_action("GC_ConcurrentSweep_Test") {
2819  module_out_path = module_output_path
2820
2821  sources = [
2822    # test file
2823    "concurrent_sweep_test.cpp",
2824  ]
2825
2826  configs = [
2827    "../../:asm_interp_enable_config",
2828    "../../:ecma_test_config",
2829  ]
2830
2831  deps = [ "../../:libark_jsruntime_test" ]
2832
2833  # hiviewdfx libraries
2834  external_deps = hiviewdfx_ext_deps
2835  external_deps += [
2836    "icu:shared_icui18n",
2837    "icu:shared_icuuc",
2838    "runtime_core:libarkassembler_static",
2839    "runtime_core:libarkverifier",
2840    "zlib:libz",
2841  ]
2842  deps += hiviewdfx_deps
2843}
2844
2845host_unittest_action("GC_First_Test") {
2846  module_out_path = module_output_path
2847
2848  sources = [
2849    # test file
2850    "gc_first_test.cpp",
2851  ]
2852
2853  configs = [
2854    "../../:asm_interp_enable_config",
2855    "../../:ecma_test_config",
2856  ]
2857
2858  deps = [ "../../:libark_jsruntime_test" ]
2859
2860  # hiviewdfx libraries
2861  external_deps = hiviewdfx_ext_deps
2862  external_deps += [
2863    "icu:shared_icui18n",
2864    "icu:shared_icuuc",
2865    "runtime_core:libarkassembler_static",
2866    "runtime_core:libarkverifier",
2867    "zlib:libz",
2868  ]
2869  deps += hiviewdfx_deps
2870}
2871
2872host_unittest_action("GC_ReadOnlySpace_Test") {
2873  module_out_path = module_output_path
2874
2875  sources = [
2876    # test file
2877    "read_only_space_test.cpp",
2878  ]
2879
2880  configs = [
2881    "../../:asm_interp_enable_config",
2882    "../../:ecma_test_config",
2883  ]
2884
2885  deps = [ "../../:libark_jsruntime_test" ]
2886
2887  # hiviewdfx libraries
2888  external_deps = hiviewdfx_ext_deps
2889  external_deps += [
2890    "icu:shared_icui18n",
2891    "icu:shared_icuuc",
2892    "runtime_core:libarkassembler_static",
2893    "runtime_core:libarkverifier",
2894    "zlib:libz",
2895  ]
2896  deps += hiviewdfx_deps
2897}
2898
2899host_unittest_action("GC_Second_Test") {
2900  module_out_path = module_output_path
2901
2902  sources = [
2903    # test file
2904    "gc_second_test.cpp",
2905  ]
2906
2907  configs = [
2908    "../../:asm_interp_enable_config",
2909    "../../:ecma_test_config",
2910  ]
2911
2912  deps = [ "../../:libark_jsruntime_test" ]
2913
2914  # hiviewdfx libraries
2915  external_deps = hiviewdfx_ext_deps
2916  external_deps += [
2917    "icu:shared_icui18n",
2918    "icu:shared_icuuc",
2919    "runtime_core:libarkassembler_static",
2920    "runtime_core:libarkverifier",
2921    "zlib:libz",
2922  ]
2923  deps += hiviewdfx_deps
2924}
2925
2926host_unittest_action("GC_Taskpool_Test") {
2927  module_out_path = module_output_path
2928
2929  sources = [
2930    # test file
2931    "gc_taskpool_test.cpp",
2932  ]
2933
2934  configs = [
2935    "../../:asm_interp_enable_config",
2936    "../../:ecma_test_config",
2937  ]
2938
2939  deps = [ "../../:libark_jsruntime_test" ]
2940
2941  # hiviewdfx libraries
2942  external_deps = hiviewdfx_ext_deps
2943  external_deps += [
2944    "icu:shared_icui18n",
2945    "icu:shared_icuuc",
2946    "runtime_core:libarkassembler_static",
2947    "runtime_core:libarkverifier",
2948    "zlib:libz",
2949  ]
2950  deps += hiviewdfx_deps
2951}
2952
2953host_unittest_action("GC_Third_Test") {
2954  module_out_path = module_output_path
2955
2956  sources = [
2957    # test file
2958    "gc_third_test.cpp",
2959  ]
2960
2961  configs = [
2962    "../../:asm_interp_enable_config",
2963    "../../:ecma_test_config",
2964  ]
2965
2966  deps = [ "../../:libark_jsruntime_test" ]
2967
2968  # hiviewdfx libraries
2969  external_deps = hiviewdfx_ext_deps
2970  external_deps += [
2971    "icu:shared_icui18n",
2972    "icu:shared_icuuc",
2973    "runtime_core:libarkassembler_static",
2974    "runtime_core:libarkverifier",
2975    "zlib:libz",
2976  ]
2977  deps += hiviewdfx_deps
2978}
2979
2980host_unittest_action("GC_Verify_Test") {
2981  module_out_path = module_output_path
2982
2983  sources = [
2984    # test file
2985    "gc_verify_test.cpp",
2986  ]
2987
2988  configs = [
2989    "../../:asm_interp_enable_config",
2990    "../../:ecma_test_config",
2991  ]
2992
2993  deps = [ "../../:libark_jsruntime_test" ]
2994
2995  # hiviewdfx libraries
2996  external_deps = hiviewdfx_ext_deps
2997  external_deps += [
2998    "icu:shared_icui18n",
2999    "icu:shared_icuuc",
3000    "runtime_core:libarkassembler_static",
3001    "runtime_core:libarkverifier",
3002    "zlib:libz",
3003  ]
3004  deps += hiviewdfx_deps
3005}
3006
3007host_unittest_action("GC_HandleLeak_Test") {
3008  module_out_path = module_output_path
3009
3010  sources = [
3011    # test file
3012    "handle_leak_test.cpp",
3013  ]
3014
3015  configs = [
3016    "../../:asm_interp_enable_config",
3017    "../../:ecma_test_config",
3018  ]
3019
3020  deps = [ "../../:libark_jsruntime_test" ]
3021
3022  # hiviewdfx libraries
3023  external_deps = hiviewdfx_ext_deps
3024  external_deps += [
3025    "icu:shared_icui18n",
3026    "icu:shared_icuuc",
3027    "runtime_core:libarkassembler_static",
3028    "runtime_core:libarkverifier",
3029    "zlib:libz",
3030  ]
3031  deps += hiviewdfx_deps
3032}
3033
3034host_unittest_action("GC_HeapHelper_Test") {
3035  module_out_path = module_output_path
3036
3037  sources = [
3038    # test file
3039    "heap_helper_test.cpp",
3040  ]
3041
3042  configs = [
3043    "../../:asm_interp_enable_config",
3044    "../../:ecma_test_config",
3045  ]
3046
3047  deps = [ "../../:libark_jsruntime_test" ]
3048
3049  # hiviewdfx libraries
3050  external_deps = hiviewdfx_ext_deps
3051  external_deps += [
3052    "icu:shared_icui18n",
3053    "icu:shared_icuuc",
3054    "runtime_core:libarkassembler_static",
3055    "runtime_core:libarkverifier",
3056    "zlib:libz",
3057  ]
3058  deps += hiviewdfx_deps
3059}
3060
3061host_unittest_action("GC_HugeObject_Test") {
3062  module_out_path = module_output_path
3063
3064  sources = [
3065    # test file
3066    "huge_object_test.cpp",
3067  ]
3068
3069  configs = [
3070    "../../:asm_interp_enable_config",
3071    "../../:ecma_test_config",
3072  ]
3073
3074  deps = [ "../../:libark_jsruntime_test" ]
3075
3076  # hiviewdfx libraries
3077  external_deps = hiviewdfx_ext_deps
3078  external_deps += [
3079    "icu:shared_icui18n",
3080    "icu:shared_icuuc",
3081    "runtime_core:libarkassembler_static",
3082    "runtime_core:libarkverifier",
3083    "zlib:libz",
3084  ]
3085  deps += hiviewdfx_deps
3086}
3087
3088host_unittest_action("GC_IdleGCTrigger_Test") {
3089  module_out_path = module_output_path
3090
3091  sources = [
3092    # test file
3093    "idle_gc_trigger_test.cpp",
3094  ]
3095
3096  configs = [
3097    "../../:asm_interp_enable_config",
3098    "../../:ecma_test_config",
3099  ]
3100
3101  deps = [ "../../:libark_jsruntime_test" ]
3102
3103  # hiviewdfx libraries
3104  external_deps = hiviewdfx_ext_deps
3105  external_deps += [
3106    "icu:shared_icui18n",
3107    "icu:shared_icuuc",
3108    "runtime_core:libarkassembler_static",
3109    "runtime_core:libarkverifier",
3110    "zlib:libz",
3111  ]
3112  deps += hiviewdfx_deps
3113}
3114
3115host_unittest_action("GC_IncrementalMarking_Test") {
3116  module_out_path = module_output_path
3117
3118  sources = [
3119    # test file
3120    "incremental_marking_test.cpp",
3121  ]
3122
3123  configs = [
3124    "../../:asm_interp_enable_config",
3125    "../../:ecma_test_config",
3126  ]
3127
3128  deps = [ "../../:libark_jsruntime_test" ]
3129
3130  # hiviewdfx libraries
3131  external_deps = hiviewdfx_ext_deps
3132  external_deps += [
3133    "icu:shared_icui18n",
3134    "icu:shared_icuuc",
3135    "runtime_core:libarkassembler_static",
3136    "runtime_core:libarkverifier",
3137    "zlib:libz",
3138  ]
3139  deps += hiviewdfx_deps
3140}
3141
3142host_unittest_action("GC_JitFort_Test") {
3143  module_out_path = module_output_path
3144
3145  sources = [
3146    # test file
3147    "jit_fort_test.cpp",
3148  ]
3149
3150  configs = [
3151    "../../:asm_interp_enable_config",
3152    "../../:ecma_test_config",
3153  ]
3154
3155  deps = [ "../../:libark_jsruntime_test" ]
3156
3157  # hiviewdfx libraries
3158  external_deps = hiviewdfx_ext_deps
3159  external_deps += [
3160    "icu:shared_icui18n",
3161    "icu:shared_icuuc",
3162    "runtime_core:libarkassembler_static",
3163    "runtime_core:libarkverifier",
3164    "zlib:libz",
3165  ]
3166  deps += hiviewdfx_deps
3167}
3168
3169host_unittest_action("Sendable_JsSendableArrayBuffer_Test") {
3170  module_out_path = module_output_path
3171
3172  sources = [
3173    # test file
3174    "js_sendable_arraybuffer_test.cpp",
3175  ]
3176
3177  configs = [
3178    "../../:asm_interp_enable_config",
3179    "../../:ecma_test_config",
3180  ]
3181
3182  deps = [ "../../:libark_jsruntime_test" ]
3183
3184  # hiviewdfx libraries
3185  external_deps = hiviewdfx_ext_deps
3186  external_deps += [
3187    "icu:shared_icui18n",
3188    "icu:shared_icuuc",
3189    "runtime_core:libarkassembler_static",
3190    "runtime_core:libarkverifier",
3191    "zlib:libz",
3192  ]
3193  deps += hiviewdfx_deps
3194}
3195
3196host_unittest_action("Sendable_JsSharedArray_Test") {
3197  module_out_path = module_output_path
3198
3199  sources = [
3200    # test file
3201    "barrier_test.cpp",
3202    "ecma_global_storage_test.cpp",
3203    "js_shared_array_test.cpp",
3204  ]
3205
3206  configs = [
3207    "../../:asm_interp_enable_config",
3208    "../../:ecma_test_config",
3209  ]
3210
3211  deps = [ "../../:libark_jsruntime_test" ]
3212
3213  # hiviewdfx libraries
3214  external_deps = hiviewdfx_ext_deps
3215  external_deps += [
3216    "icu:shared_icui18n",
3217    "icu:shared_icuuc",
3218    "runtime_core:libarkassembler_static",
3219    "runtime_core:libarkverifier",
3220    "zlib:libz",
3221  ]
3222  deps += hiviewdfx_deps
3223}
3224
3225host_unittest_action("Unified_GC_Test") {
3226  module_out_path = module_output_path
3227
3228  sources = [
3229    # test file
3230    "unified_gc_multi_vm_test.cpp",
3231    "unified_gc_test.cpp",
3232  ]
3233
3234  configs = [
3235    "../../:asm_interp_enable_config",
3236    "../../:ecma_test_config",
3237  ]
3238
3239  deps = [ "../../:libark_jsruntime_test" ]
3240
3241  # hiviewdfx libraries
3242  external_deps = hiviewdfx_ext_deps
3243  external_deps += [
3244    "icu:shared_icui18n",
3245    "icu:shared_icuuc",
3246    "runtime_core:libarkassembler_static",
3247    "runtime_core:libarkverifier",
3248    "zlib:libz",
3249  ]
3250  deps += hiviewdfx_deps
3251}
3252
3253host_unittest_action("GC_Verification_Test") {
3254  module_out_path = module_output_path
3255
3256  sources = [
3257    # test file
3258    "js_verification_test.cpp",
3259  ]
3260
3261  configs = [
3262    "../../:asm_interp_enable_config",
3263    "../../:ecma_test_config",
3264  ]
3265
3266  deps = [ "../../:libark_jsruntime_test" ]
3267
3268  # hiviewdfx libraries
3269  external_deps = hiviewdfx_ext_deps
3270  external_deps += [
3271    "icu:shared_icui18n",
3272    "icu:shared_icuuc",
3273    "runtime_core:libarkassembler_static",
3274    "runtime_core:libarkverifier",
3275    "zlib:libz",
3276  ]
3277  deps += hiviewdfx_deps
3278}
3279
3280host_unittest_action("GC_MachineCode_Test") {
3281  module_out_path = module_output_path
3282
3283  sources = [
3284    # test file
3285    "machine_code_test.cpp",
3286  ]
3287
3288  configs = [
3289    "../../:asm_interp_enable_config",
3290    "../../:ecma_test_config",
3291  ]
3292
3293  deps = [ "../../:libark_jsruntime_test" ]
3294
3295  # hiviewdfx libraries
3296  external_deps = hiviewdfx_ext_deps
3297  external_deps += [
3298    "icu:shared_icui18n",
3299    "icu:shared_icuuc",
3300    "runtime_core:libarkassembler_static",
3301    "runtime_core:libarkverifier",
3302    "zlib:libz",
3303  ]
3304  deps += hiviewdfx_deps
3305}
3306
3307host_unittest_action("GC_MemController_Test") {
3308  module_out_path = module_output_path
3309
3310  sources = [
3311    # test file
3312    "mem_controller_test.cpp",
3313  ]
3314
3315  configs = [
3316    "../../:asm_interp_enable_config",
3317    "../../:ecma_test_config",
3318  ]
3319
3320  deps = [ "../../:libark_jsruntime_test" ]
3321
3322  # hiviewdfx libraries
3323  external_deps = hiviewdfx_ext_deps
3324  external_deps += [
3325    "icu:shared_icui18n",
3326    "icu:shared_icuuc",
3327    "runtime_core:libarkassembler_static",
3328    "runtime_core:libarkverifier",
3329    "zlib:libz",
3330  ]
3331  deps += hiviewdfx_deps
3332}
3333
3334host_unittest_action("GC_MemMapAllocator_Test") {
3335  module_out_path = module_output_path
3336
3337  sources = [
3338    # test file
3339    "mem_map_allocator_test.cpp",
3340  ]
3341
3342  configs = [
3343    "../../:asm_interp_enable_config",
3344    "../../:ecma_test_config",
3345  ]
3346
3347  deps = [ "../../:libark_jsruntime_test" ]
3348
3349  # hiviewdfx libraries
3350  external_deps = hiviewdfx_ext_deps
3351  external_deps += [
3352    "icu:shared_icui18n",
3353    "icu:shared_icuuc",
3354    "runtime_core:libarkassembler_static",
3355    "runtime_core:libarkverifier",
3356    "zlib:libz",
3357  ]
3358  deps += hiviewdfx_deps
3359}
3360
3361host_unittest_action("GC_NewToOldPromotion_Test") {
3362  module_out_path = module_output_path
3363
3364  sources = [
3365    # test file
3366    "gc_region_promotion_test.cpp",
3367  ]
3368
3369  configs = [
3370    "../../:asm_interp_enable_config",
3371    "../../:ecma_test_config",
3372  ]
3373
3374  deps = [ "../../:libark_jsruntime_test" ]
3375
3376  # hiviewdfx libraries
3377  external_deps = hiviewdfx_ext_deps
3378  external_deps += [
3379    "icu:shared_icui18n",
3380    "icu:shared_icuuc",
3381    "runtime_core:libarkassembler_static",
3382    "runtime_core:libarkverifier",
3383    "zlib:libz",
3384  ]
3385  deps += hiviewdfx_deps
3386}
3387
3388host_unittest_action("GC_SharedPartialGC_Test") {
3389  module_out_path = module_output_path
3390
3391  sources = [
3392    # test file
3393    "gc_shared_partial_test.cpp",
3394  ]
3395
3396  configs = [
3397    "../../:asm_interp_enable_config",
3398    "../../:ecma_test_config",
3399  ]
3400
3401  deps = [ "../../:libark_jsruntime_test" ]
3402
3403  # hiviewdfx libraries
3404  external_deps = hiviewdfx_ext_deps
3405  external_deps += [
3406    "icu:shared_icui18n",
3407    "icu:shared_icuuc",
3408    "runtime_core:libarkassembler_static",
3409    "runtime_core:libarkverifier",
3410    "zlib:libz",
3411  ]
3412  deps += hiviewdfx_deps
3413}
3414
3415host_unittest_action("Sendable_SharedObjectFactory_Test") {
3416  module_out_path = module_output_path
3417
3418  sources = [
3419    # test file
3420    "shared_object_factory_test.cpp",
3421  ]
3422
3423  configs = [
3424    "../../:asm_interp_enable_config",
3425    "../../:ecma_test_config",
3426  ]
3427
3428  deps = [ "../../:libark_jsruntime_test" ]
3429
3430  # hiviewdfx libraries
3431  external_deps = hiviewdfx_ext_deps
3432  external_deps += [
3433    "icu:shared_icui18n",
3434    "icu:shared_icuuc",
3435    "runtime_core:libarkassembler_static",
3436    "runtime_core:libarkverifier",
3437    "zlib:libz",
3438  ]
3439  deps += hiviewdfx_deps
3440}
3441
3442host_unittest_action("GC_WeakRefOldGC_Test") {
3443  module_out_path = module_output_path
3444
3445  sources = [
3446    # test file
3447    "weak_ref_old_gc_test.cpp",
3448  ]
3449
3450  configs = [
3451    "../../:asm_interp_enable_config",
3452    "../../:ecma_test_config",
3453  ]
3454
3455  deps = [ "../../:libark_jsruntime_test" ]
3456
3457  # hiviewdfx libraries
3458  external_deps = hiviewdfx_ext_deps
3459  external_deps += [
3460    "icu:shared_icui18n",
3461    "icu:shared_icuuc",
3462    "runtime_core:libarkassembler_static",
3463    "runtime_core:libarkverifier",
3464    "zlib:libz",
3465  ]
3466  deps += hiviewdfx_deps
3467}
3468
3469host_unittest_action("GC_WeakRefSemiGC_Test") {
3470  module_out_path = module_output_path
3471
3472  sources = [
3473    # test file
3474    "weak_ref_semi_gc_test.cpp",
3475  ]
3476
3477  configs = [
3478    "../../:asm_interp_enable_config",
3479    "../../:ecma_test_config",
3480  ]
3481
3482  deps = [ "../../:libark_jsruntime_test" ]
3483
3484  # hiviewdfx libraries
3485  external_deps = hiviewdfx_ext_deps
3486  external_deps += [
3487    "icu:shared_icui18n",
3488    "icu:shared_icuuc",
3489    "runtime_core:libarkassembler_static",
3490    "runtime_core:libarkverifier",
3491    "zlib:libz",
3492  ]
3493  deps += hiviewdfx_deps
3494}
3495
3496group("unittest") {
3497  testonly = true
3498
3499  # deps file
3500  deps = [
3501    ":Builtins_Test",
3502    ":ECMA_StringAccessor_Test",
3503    ":ECMA_StringEquals_Test",
3504    ":ECMA_StringHash_Test",
3505    ":ECMA_StringTable_Test",
3506
3507    ":BASE_String_Test",
3508    ":ECMA_VM_Test",
3509    ":GC_ModuleManagerMap_Test",
3510    ":GC_ConcurrentMarking_Test",
3511    ":GC_ConcurrentSweep_Test",
3512    ":GC_First_Test",
3513    ":GC_HandleLeak_Test",
3514    ":GC_HeapHelper_Test",
3515    ":GC_HugeObject_Test",
3516    ":GC_IdleGCTrigger_Test",
3517    ":GC_IncrementalMarking_Test",
3518    ":GC_JitFort_Test",
3519    ":GC_MachineCode_Test",
3520    ":GC_MemController_Test",
3521    ":GC_MemMapAllocator_Test",
3522    ":GC_NewToOldPromotion_Test",
3523    ":GC_ReadOnlySpace_Test",
3524    ":GC_Second_Test",
3525    ":GC_SharedPartialGC_Test",
3526    ":GC_Taskpool_Test",
3527    ":GC_Third_Test",
3528    ":GC_Verification_Test",
3529    ":GC_Verify_Test",
3530    ":GC_WeakRefOldGC_Test",
3531    ":GC_WeakRefSemiGC_Test",
3532    ":JS_APIArrayListIterator_Test",
3533    ":JS_APIArrayList_Test",
3534    ":JS_APIBitVectorIterator_Test",
3535    ":JS_APIBitVector_Test",
3536    ":JS_APIDequeIterator_Test",
3537    ":JS_APIDeque_Test",
3538    ":JS_APIHashMapIterator_Test",
3539    ":JS_APIHashMap_Test",
3540    ":JS_APIHashSetIterator_Test",
3541    ":JS_APIHashSet_Test",
3542    ":JS_APILightWeightMapIteraotr_Test",
3543    ":JS_APILightWeightMap_Test",
3544    ":JS_APILightWeightSetIterator_Test",
3545    ":JS_APILightWeightSet_Test",
3546    ":JS_APILinkListIterator_Test",
3547    ":JS_APILinkList_Test",
3548    ":JS_APIListIterator_Test",
3549    ":JS_APIList_Test",
3550    ":JS_APIPlainArrayIterator_Test",
3551    ":JS_APIPlainArray_Test",
3552    ":JS_APIQueueIterator_Test",
3553    ":JS_APIQueue_Test",
3554    ":JS_APIStackIterator_Test",
3555    ":JS_APIStack_Test",
3556    ":JS_APITreeMapIterator_Test",
3557    ":JS_APITreeMap_Test",
3558    ":JS_APITreeSetIterator_Test",
3559    ":JS_APITreeSet_Test",
3560    ":JS_APIVectorIterator_Test",
3561    ":JS_APIVector_Test",
3562    ":JS_AccessorData_Test",
3563    ":JS_Arguments_Test",
3564    ":JS_ArrayBuffer_Test",
3565    ":JS_ArrayIterator_Test",
3566    ":JS_Array_Test",
3567    ":JS_AssertScope_Test",
3568    ":JS_AsyncFunction_Test",
3569    ":JS_AsyncGengeratorObject_Test",
3570    ":JS_Barrier_Test",
3571    ":JS_BigInt_Test",
3572    ":JS_ByteArray_Test",
3573    ":JS_Collator_Test",
3574    ":JS_DateTimeFormat_First_Test",
3575    ":JS_DateTimeFormat_Second_Test",
3576    ":JS_DateView_Test",
3577    ":JS_Date_Test",
3578    ":JS_DisPlayNames_Test",
3579    ":JS_Dump_Test",
3580    ":JS_FinalizationRegistry_Test",
3581    ":JS_ForinIterator_Test",
3582    ":JS_Function_Test",
3583    ":JS_GeneratorObject_Test",
3584    ":JS_GlobalDictionary_Test",
3585    ":JS_GlueRegs_Test",
3586    ":JS_Handle_Test",
3587    ":JS_Hclass_Test",
3588    ":JS_Iterator_Test",
3589    ":JS_LayoutInfo_Test",
3590    ":JS_LexicalEnv_Test",
3591    ":JS_LinkHashTable_Test",
3592    ":JS_LinkNode_Test",
3593    ":JS_ListFormat_Test",
3594    ":JS_LocaleHelper_Test",
3595    ":JS_Locale_Test",
3596    ":JS_MapIterator_Test",
3597    ":JS_Map_Test",
3598    ":JS_NativePoint_Test",
3599    ":JS_NumberFormat_Test",
3600    ":JS_ObjectFactory_Test",
3601    ":JS_ObjectOperator_First_Test",
3602    ":JS_ObjectOperator_Second_Test",
3603    ":JS_ObjectOperator_Third_Test",
3604    ":JS_Object_Test",
3605    ":JS_PluralRules_Test",
3606    ":JS_PrimitiveRef_Test",
3607    ":JS_Promise_Test",
3608    ":JS_Proxy_Test",
3609    ":JS_RbTreeNode_Test",
3610    ":JS_RegexpIterator_Test",
3611    ":JS_RelativeTimeFormat_Test",
3612    ":JS_SetIterator_Test",
3613    ":JS_Set_Test",
3614    ":JS_StableArray_Test",
3615    ":JS_SymbolTable_Test",
3616    ":JS_Symbol_Test",
3617    ":JS_TaggedArray_Test",
3618    ":JS_TaggedDictionary_Test",
3619    ":JS_TaggedHashArray_Test",
3620    ":JS_TaggedNumber_Test",
3621    ":JS_TaggedQueue_Test",
3622    ":JS_TaggedTree_Test",
3623    ":JS_TaggedValue_Test",
3624    ":JS_TemplateMap_Test",
3625    ":JS_TemplateString_Test",
3626    ":JS_ThreadState_Test",
3627    ":JS_TransitionsDictionary_Test",
3628    ":JS_TypedArray_Test",
3629    ":JS_WaiterList_Test",
3630    ":Sendable_JsSendableArrayBuffer_Test",
3631    ":Sendable_JsSharedArray_Test",
3632    ":Sendable_SharedObjectFactory_Test",
3633  ]
3634
3635 # TODO: CMC-GC UT FIX LATER
3636  if (ets_runtime_enable_cmc_gc) {
3637    deps -= [
3638      ":GC_ConcurrentMarking_Test",
3639      ":GC_First_Test",
3640      ":GC_IdleGCTrigger_Test",
3641      ":GC_MachineCode_Test",
3642      ":GC_MemController_Test",
3643      ":GC_NewToOldPromotion_Test",
3644      ":GC_ReadOnlySpace_Test",
3645      ":GC_Second_Test",
3646      ":GC_SharedPartialGC_Test",
3647      ":GC_Third_Test",
3648      ":GC_Verification_Test",
3649      ":GC_Verify_Test",
3650      ":GC_WeakRefOldGC_Test",
3651      ":GC_WeakRefSemiGC_Test",
3652      ":JS_Barrier_Test",
3653      ":JS_FinalizationRegistry_Test",
3654      ":JS_GlueRegs_Test",
3655      ":JS_Handle_Test",
3656      ":JS_Object_Test",
3657      ":JS_TaggedArray_Test",
3658      ":JS_ThreadState_Test",
3659      ":Sendable_JsSharedArray_Test",
3660    ]
3661
3662    deps += [
3663      ":Dynamic_Object_Accessor_Test",
3664      ":JS_DynamicTypeConverter_Test",
3665    ]
3666  }
3667}
3668
3669group("host_unittest") {
3670  testonly = true
3671
3672  # deps file
3673  deps = [
3674    ":Builtins_TestAction",
3675    ":ECMA_StringAccessor_TestAction",
3676    ":ECMA_StringEquals_TestAction",
3677    ":ECMA_StringHash_TestAction",
3678    ":ECMA_StringTable_TestAction",
3679
3680    ":BASE_String_TestAction",
3681    ":ECMA_VM_TestAction",
3682    ":GC_ModuleManagerMap_TestAction",
3683    ":GC_ConcurrentMarking_TestAction",
3684    ":GC_ConcurrentSweep_TestAction",
3685    ":GC_First_TestAction",
3686    ":GC_HandleLeak_TestAction",
3687    ":GC_HeapHelper_TestAction",
3688    ":GC_HugeObject_TestAction",
3689    ":GC_IdleGCTrigger_TestAction",
3690    ":GC_IncrementalMarking_TestAction",
3691    ":GC_JitFort_TestAction",
3692    ":GC_MachineCode_TestAction",
3693    ":GC_MemController_TestAction",
3694    ":GC_MemMapAllocator_TestAction",
3695    ":GC_NewToOldPromotion_TestAction",
3696    ":GC_ReadOnlySpace_TestAction",
3697    ":GC_Second_TestAction",
3698    ":GC_SharedPartialGC_TestAction",
3699    ":GC_Taskpool_TestAction",
3700    ":GC_Third_TestAction",
3701    ":GC_Verification_TestAction",
3702    ":GC_Verify_TestAction",
3703    ":GC_WeakRefOldGC_TestAction",
3704    ":GC_WeakRefSemiGC_TestAction",
3705    ":JS_APIArrayListIterator_TestAction",
3706    ":JS_APIArrayList_TestAction",
3707    ":JS_APIBitVectorIterator_TestAction",
3708    ":JS_APIBitVector_TestAction",
3709    ":JS_APIDequeIterator_TestAction",
3710    ":JS_APIDeque_TestAction",
3711    ":JS_APIHashMapIterator_TestAction",
3712    ":JS_APIHashMap_TestAction",
3713    ":JS_APIHashSetIterator_TestAction",
3714    ":JS_APIHashSet_TestAction",
3715    ":JS_APILightWeightMapIteraotr_TestAction",
3716    ":JS_APILightWeightMap_TestAction",
3717    ":JS_APILightWeightSetIterator_TestAction",
3718    ":JS_APILightWeightSet_TestAction",
3719    ":JS_APILinkListIterator_TestAction",
3720    ":JS_APILinkList_TestAction",
3721    ":JS_APIListIterator_TestAction",
3722    ":JS_APIList_TestAction",
3723    ":JS_APIPlainArrayIterator_TestAction",
3724    ":JS_APIPlainArray_TestAction",
3725    ":JS_APIQueueIterator_TestAction",
3726    ":JS_APIQueue_TestAction",
3727    ":JS_APIStackIterator_TestAction",
3728    ":JS_APIStack_TestAction",
3729    ":JS_APITreeMapIterator_TestAction",
3730    ":JS_APITreeMap_TestAction",
3731    ":JS_APITreeSetIterator_TestAction",
3732    ":JS_APITreeSet_TestAction",
3733    ":JS_APIVectorIterator_TestAction",
3734    ":JS_APIVector_TestAction",
3735    ":JS_AccessorData_TestAction",
3736    ":JS_Arguments_TestAction",
3737    ":JS_ArrayBuffer_TestAction",
3738    ":JS_ArrayIterator_TestAction",
3739    ":JS_Array_TestAction",
3740    ":JS_AssertScope_TestAction",
3741    ":JS_AsyncFunction_TestAction",
3742    ":JS_AsyncGengeratorObject_TestAction",
3743    ":JS_Barrier_TestAction",
3744    ":JS_BigInt_TestAction",
3745    ":JS_ByteArray_TestAction",
3746    ":JS_Collator_TestAction",
3747    ":JS_DateTimeFormat_First_TestAction",
3748    ":JS_DateTimeFormat_Second_TestAction",
3749    ":JS_DateView_TestAction",
3750    ":JS_Date_TestAction",
3751    ":JS_DisPlayNames_TestAction",
3752    ":JS_Dump_TestAction",
3753    ":JS_FinalizationRegistry_TestAction",
3754    ":JS_ForinIterator_TestAction",
3755    ":JS_Function_TestAction",
3756    ":JS_GeneratorObject_TestAction",
3757    ":JS_GlobalDictionary_TestAction",
3758    ":JS_GlueRegs_TestAction",
3759    ":JS_Handle_TestAction",
3760    ":JS_Hclass_TestAction",
3761    ":JS_Iterator_TestAction",
3762    ":JS_LayoutInfo_TestAction",
3763    ":JS_LexicalEnv_TestAction",
3764    ":JS_LinkHashTable_TestAction",
3765    ":JS_LinkNode_TestAction",
3766    ":JS_ListFormat_TestAction",
3767    ":JS_LocaleHelper_TestAction",
3768    ":JS_Locale_TestAction",
3769    ":JS_MapIterator_TestAction",
3770    ":JS_Map_TestAction",
3771    ":JS_NativePoint_TestAction",
3772    ":JS_NumberFormat_TestAction",
3773    ":JS_ObjectFactory_TestAction",
3774    ":JS_ObjectOperator_First_TestAction",
3775    ":JS_ObjectOperator_Second_TestAction",
3776    ":JS_ObjectOperator_Third_TestAction",
3777    ":JS_Object_TestAction",
3778    ":JS_PluralRules_TestAction",
3779    ":JS_PrimitiveRef_TestAction",
3780    ":JS_Promise_TestAction",
3781    ":JS_Proxy_TestAction",
3782    ":JS_RbTreeNode_TestAction",
3783    ":JS_RegexpIterator_TestAction",
3784    ":JS_RelativeTimeFormat_TestAction",
3785    ":JS_SetIterator_TestAction",
3786    ":JS_Set_TestAction",
3787    ":JS_StableArray_TestAction",
3788    ":JS_SymbolTable_TestAction",
3789    ":JS_Symbol_TestAction",
3790    ":JS_TaggedArray_TestAction",
3791    ":JS_TaggedDictionary_TestAction",
3792    ":JS_TaggedHashArray_TestAction",
3793    ":JS_TaggedNumber_TestAction",
3794    ":JS_TaggedQueue_TestAction",
3795    ":JS_TaggedTree_TestAction",
3796    ":JS_TaggedValue_TestAction",
3797    ":JS_TemplateMap_TestAction",
3798    ":JS_TemplateString_TestAction",
3799    ":JS_ThreadState_TestAction",
3800    ":JS_TransitionsDictionary_TestAction",
3801    ":JS_TypedArray_TestAction",
3802    ":JS_WaiterList_TestAction",
3803    ":Sendable_JsSendableArrayBuffer_TestAction",
3804    ":Sendable_JsSharedArray_TestAction",
3805    ":Sendable_SharedObjectFactory_TestAction",
3806  ]
3807
3808  if (is_mac) {
3809    deps -= [
3810      ":Builtins_TestAction",
3811      ":ECMA_StringAccessor_TestAction",
3812      ":ECMA_StringEquals_TestAction",
3813      ":ECMA_StringHash_TestAction",
3814      ":ECMA_StringTable_TestAction",
3815
3816      ":BASE_String_TestAction",
3817      ":ECMA_VM_TestAction",
3818      ":GC_ConcurrentMarking_TestAction",
3819      ":GC_ConcurrentSweep_TestAction",
3820      ":GC_First_TestAction",
3821      ":GC_HandleLeak_TestAction",
3822      ":GC_HeapHelper_TestAction",
3823      ":GC_HugeObject_TestAction",
3824      ":GC_IdleGCTrigger_TestAction",
3825      ":GC_IncrementalMarking_TestAction",
3826      ":GC_JitFort_TestAction",
3827      ":GC_MachineCode_TestAction",
3828      ":GC_MemController_TestAction",
3829      ":GC_MemMapAllocator_TestAction",
3830      ":GC_NewToOldPromotion_TestAction",
3831      ":GC_ReadOnlySpace_TestAction",
3832      ":GC_Second_TestAction",
3833      ":GC_SharedPartialGC_TestAction",
3834      ":GC_Taskpool_TestAction",
3835      ":GC_Third_TestAction",
3836      ":GC_Verification_TestAction",
3837      ":GC_Verify_TestAction",
3838      ":GC_WeakRefOldGC_TestAction",
3839      ":GC_WeakRefSemiGC_TestAction",
3840      ":JS_APIArrayListIterator_TestAction",
3841      ":JS_APIArrayList_TestAction",
3842      ":JS_APIBitVectorIterator_TestAction",
3843      ":JS_APIBitVector_TestAction",
3844      ":JS_APIDequeIterator_TestAction",
3845      ":JS_APIDeque_TestAction",
3846      ":JS_APIHashMapIterator_TestAction",
3847      ":JS_APIHashMap_TestAction",
3848      ":JS_APIHashSetIterator_TestAction",
3849      ":JS_APIHashSet_TestAction",
3850      ":JS_APILightWeightMapIteraotr_TestAction",
3851      ":JS_APILightWeightMap_TestAction",
3852      ":JS_APILightWeightSetIterator_TestAction",
3853      ":JS_APILightWeightSet_TestAction",
3854      ":JS_APILinkListIterator_TestAction",
3855      ":JS_APILinkList_TestAction",
3856      ":JS_APIListIterator_TestAction",
3857      ":JS_APIList_TestAction",
3858      ":JS_APIPlainArrayIterator_TestAction",
3859      ":JS_APIPlainArray_TestAction",
3860      ":JS_APIQueueIterator_TestAction",
3861      ":JS_APIQueue_TestAction",
3862      ":JS_APIStackIterator_TestAction",
3863      ":JS_APIStack_TestAction",
3864      ":JS_APITreeMapIterator_TestAction",
3865      ":JS_APITreeMap_TestAction",
3866      ":JS_APITreeSetIterator_TestAction",
3867      ":JS_APITreeSet_TestAction",
3868      ":JS_APIVectorIterator_TestAction",
3869      ":JS_APIVector_TestAction",
3870      ":JS_AccessorData_TestAction",
3871      ":JS_Arguments_TestAction",
3872      ":JS_ArrayBuffer_TestAction",
3873      ":JS_ArrayIterator_TestAction",
3874      ":JS_Array_TestAction",
3875      ":JS_AssertScope_TestAction",
3876      ":JS_AsyncFunction_TestAction",
3877      ":JS_AsyncGengeratorObject_TestAction",
3878      ":JS_Barrier_TestAction",
3879      ":JS_BigInt_TestAction",
3880      ":JS_ByteArray_TestAction",
3881      ":JS_Collator_TestAction",
3882      ":JS_DateTimeFormat_First_TestAction",
3883      ":JS_DateTimeFormat_Second_TestAction",
3884      ":JS_DateView_TestAction",
3885      ":JS_Date_TestAction",
3886      ":JS_DisPlayNames_TestAction",
3887      ":JS_Dump_TestAction",
3888      ":JS_FinalizationRegistry_TestAction",
3889      ":JS_ForinIterator_TestAction",
3890      ":JS_Function_TestAction",
3891      ":JS_GeneratorObject_TestAction",
3892      ":JS_GlobalDictionary_TestAction",
3893      ":JS_GlueRegs_TestAction",
3894      ":JS_Handle_TestAction",
3895      ":JS_Hclass_TestAction",
3896      ":JS_Iterator_TestAction",
3897      ":JS_LayoutInfo_TestAction",
3898      ":JS_LexicalEnv_TestAction",
3899      ":JS_LinkHashTable_TestAction",
3900      ":JS_LinkNode_TestAction",
3901      ":JS_ListFormat_TestAction",
3902      ":JS_LocaleHelper_TestAction",
3903      ":JS_Locale_TestAction",
3904      ":JS_MapIterator_TestAction",
3905      ":JS_Map_TestAction",
3906      ":JS_NativePoint_TestAction",
3907      ":JS_NumberFormat_TestAction",
3908      ":JS_ObjectFactory_TestAction",
3909      ":JS_ObjectOperator_First_TestAction",
3910      ":JS_ObjectOperator_Second_TestAction",
3911      ":JS_ObjectOperator_Third_TestAction",
3912      ":JS_Object_TestAction",
3913      ":JS_PluralRules_TestAction",
3914      ":JS_PrimitiveRef_TestAction",
3915      ":JS_Promise_TestAction",
3916      ":JS_Proxy_TestAction",
3917      ":JS_RbTreeNode_TestAction",
3918      ":JS_RegexpIterator_TestAction",
3919      ":JS_RelativeTimeFormat_TestAction",
3920      ":JS_SetIterator_TestAction",
3921      ":JS_Set_TestAction",
3922      ":JS_StableArray_TestAction",
3923      ":JS_SymbolTable_TestAction",
3924      ":JS_Symbol_TestAction",
3925      ":JS_TaggedArray_TestAction",
3926      ":JS_TaggedDictionary_TestAction",
3927      ":JS_TaggedHashArray_TestAction",
3928      ":JS_TaggedNumber_TestAction",
3929      ":JS_TaggedQueue_TestAction",
3930      ":JS_TaggedTree_TestAction",
3931      ":JS_TaggedValue_TestAction",
3932      ":JS_TemplateMap_TestAction",
3933      ":JS_TemplateString_TestAction",
3934      ":JS_ThreadState_TestAction",
3935      ":JS_TransitionsDictionary_TestAction",
3936      ":JS_TypedArray_TestAction",
3937      ":JS_WaiterList_TestAction",
3938      ":Sendable_JsSendableArrayBuffer_TestAction",
3939      ":Sendable_JsSharedArray_TestAction",
3940      ":Sendable_SharedObjectFactory_TestAction",
3941    ]
3942  } else if (ets_runtime_enable_cmc_gc) {
3943    # TODO: CMC-GC UT FIX LATER
3944    deps -= [
3945      ":GC_ConcurrentMarking_TestAction",
3946      ":GC_First_TestAction",
3947      ":GC_IdleGCTrigger_TestAction",
3948      ":GC_MachineCode_TestAction",
3949      ":GC_MemController_TestAction",
3950      ":GC_NewToOldPromotion_TestAction",
3951      ":GC_Second_TestAction",
3952      ":GC_SharedPartialGC_TestAction",
3953      ":GC_Third_TestAction",
3954      ":GC_Verification_TestAction",
3955      ":GC_Verify_TestAction",
3956      ":GC_WeakRefOldGC_TestAction",
3957      ":GC_WeakRefSemiGC_TestAction",
3958      ":JS_Barrier_TestAction",
3959      ":JS_FinalizationRegistry_TestAction",
3960      ":JS_GlueRegs_TestAction",
3961      ":JS_Handle_TestAction",
3962      ":JS_ObjectFactory_TestAction",
3963      ":JS_Object_TestAction",
3964      ":JS_TaggedArray_TestAction",
3965      ":JS_ThreadState_TestAction",
3966      ":Sendable_JsSharedArray_TestAction",
3967    ]
3968
3969    deps += [
3970      ":Dynamic_Object_Accessor_TestAction",
3971      ":JS_DynamicTypeConverter_TestAction",
3972    ]
3973  }
3974}
3975