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