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