1# Copyright (c) 2024-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 14if(NOT PANDA_REGRESSION_TESTS) 15 return() 16endif() 17 18add_subdirectory(cfg) 19add_subdirectory(dynamic) 20add_subdirectory(lowerings) 21add_subdirectory(public) 22add_subdirectory(plugin) 23add_subdirectory(plugin_ut) 24add_subdirectory(plugin_conversion_rule) 25add_subdirectory(arktsconfig-parser) 26add_subdirectory(annotations) 27add_subdirectory(lsp) 28add_subdirectory(relative_path) 29 30ets2panda_add_gtest(es2panda_astdumper_tests 31 CPP_SOURCES ast_dumper_test.cpp 32) 33 34ets2panda_add_gtest(es2panda_union_normalization_tests_1 35 CPP_SOURCES union_normalization_test_1.cpp 36) 37ets2panda_add_gtest(es2panda_union_normalization_tests_2 38 CPP_SOURCES union_normalization_test_2.cpp 39) 40ets2panda_add_gtest(es2panda_globalETSObjectType_tests 41 CPP_SOURCES globalETSObjectType_test.cpp 42) 43 44if (PANDA_TARGET_LINUX AND PANDA_TARGET_64) 45 ets2panda_add_gtest(sizeof_node_tests 46 CPP_SOURCES sizeof_node_test.cpp 47 ) 48endif() 49 50# NOTE: es2panda_rest_parameter_flag test runs a lot of time on qemu, so let's disable it 51if (NOT PANDA_QEMU_BUILD) 52 ets2panda_add_gtest(es2panda_rest_parameter_flag 53 CPP_SOURCES rest_parameter_flag_test.cpp 54 ) 55 ets2panda_add_gtest(es2panda_extern_flag_tests 56 CPP_SOURCES extern_flag_test.cpp 57 ) 58endif() 59 60if(NOT PANDA_WITH_ETS) 61 return() 62endif() 63 64add_subdirectory(ets_specific_optimizer) 65ets2panda_add_gtest(es2panda_checker_tests 66 CPP_SOURCES checker_test.cpp 67) 68