• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2025 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
14panda_ets_add_gtest(
15    NO_CORES
16    NAME ets_internal_objects_mock_tests
17    SOURCES
18        get_test_class.cpp
19        ets_method_signature_test.cpp
20        ets_string_test.cpp
21        ets_string_builder_test.cpp
22        ets_field_test.cpp
23        ets_object_test.cpp
24        ets_array_test.cpp
25        ets_method_test.cpp
26        ets_class_file_test.cpp
27    LIBRARIES
28        arkruntime
29        arkassembler
30    INCLUDE_DIRS
31        ${PANDA_ETS_PLUGIN_SOURCE}/runtime
32    SANITIZERS
33        ${PANDA_SANITIZERS_LIST}
34    PANDA_STD_LIB
35        $<TARGET_PROPERTY:mock_stdlib,FILE>
36    DEPS_TARGETS
37        mock_stdlib
38    TEST_GROUP ets_tests_runtime_gtests
39)
40
41panda_ets_add_gtest(
42    NO_CORES
43    NAME ets_internal_objects_tests
44    SOURCES
45        ets_promise_test.cpp
46        ets_job_test.cpp
47        ets_class_test.cpp
48        ets_string_from_char_code_test.cpp
49        ets_sync_primitives_test.cpp
50        ets_arraybuf_test.cpp
51        ets_arrayobj_test.cpp
52        ets_string_builder_members_test.cpp
53        ets_to_string_cache_test.cpp
54        ets_finalizable_weak_ref_test.cpp
55        ets_runtime_linker_test.cpp
56        ets_abc_runtime_linker_test.cpp
57        ets_typeapi_test.cpp
58        typed_arrays_test.cpp
59        ets_base_enum_test.cpp
60        ets_error_test.cpp
61    LIBRARIES
62        arkassembler
63        arkruntime
64    INCLUDE_DIRS
65        ${PANDA_ETS_PLUGIN_SOURCE}/runtime
66    SANITIZERS
67        ${PANDA_SANITIZERS_LIST}
68    PANDA_STD_LIB
69        $<TARGET_PROPERTY:etsstdlib,FILE>
70    DEPS_TARGETS
71        etsstdlib
72    TEST_GROUP ets_tests_runtime_gtests
73)
74