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) 21 22ets2panda_add_gtest(es2panda_astdumper_tests 23 CPP_SOURCES ast_dumper_test.cpp 24) 25 26ets2panda_add_gtest(es2panda_union_normalization_tests 27 CPP_SOURCES union_normalization_test.cpp 28) 29 30# NOTE: es2panda_rest_parameter_flag test runs a lot of time on qemu, so let's disable it 31if (NOT PANDA_QEMU_BUILD) 32 ets2panda_add_gtest(es2panda_rest_parameter_flag 33 CPP_SOURCES rest_parameter_flag_test.cpp 34 ) 35endif() 36 37if(NOT PANDA_WITH_ETS) 38 return() 39endif() 40 41ets2panda_add_gtest(es2panda_checker_tests 42 CPP_SOURCES checker_test.cpp 43) 44