• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2024 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)
39
40panda_ets_add_gtest(
41    NO_CORES
42    NAME ets_internal_objects_tests
43    SOURCES
44        ets_promise_test.cpp
45        ets_class_test.cpp
46        ets_sync_primitives_test.cpp
47        ets_arraybuf_test.cpp
48        ets_arrayobj_test.cpp
49        ets_string_builder_members_test.cpp
50        ets_to_string_cache_test.cpp
51        ets_finalizable_weak_ref_test.cpp
52    LIBRARIES
53        arkassembler
54        arkruntime
55    INCLUDE_DIRS
56        ${PANDA_ETS_PLUGIN_SOURCE}/runtime
57    SANITIZERS
58        ${PANDA_SANITIZERS_LIST}
59    PANDA_STD_LIB
60        $<TARGET_PROPERTY:etsstdlib,FILE>
61    DEPS_TARGETS
62        etsstdlib
63)
64