13af6ab5fSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
23af6ab5fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33af6ab5fSopenharmony_ci# you may not use this file except in compliance with the License.
43af6ab5fSopenharmony_ci# You may obtain a copy of the License at
53af6ab5fSopenharmony_ci#
63af6ab5fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0
73af6ab5fSopenharmony_ci#
83af6ab5fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93af6ab5fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103af6ab5fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113af6ab5fSopenharmony_ci# See the License for the specific language governing permissions and
123af6ab5fSopenharmony_ci# limitations under the License.
133af6ab5fSopenharmony_ci
143af6ab5fSopenharmony_ciif(NOT PANDA_REGRESSION_TESTS)
153af6ab5fSopenharmony_ci    return()
163af6ab5fSopenharmony_ciendif()
173af6ab5fSopenharmony_ci
183af6ab5fSopenharmony_ciadd_subdirectory(dynamic)
193af6ab5fSopenharmony_ciadd_subdirectory(lowerings)
203af6ab5fSopenharmony_ciadd_subdirectory(public)
213af6ab5fSopenharmony_ciadd_subdirectory(src_dumper)
223af6ab5fSopenharmony_ci
233af6ab5fSopenharmony_ciets2panda_add_gtest(es2panda_astdumper_tests
243af6ab5fSopenharmony_ci    CPP_SOURCES ast_dumper_test.cpp
253af6ab5fSopenharmony_ci)
263af6ab5fSopenharmony_ci
273af6ab5fSopenharmony_ciets2panda_add_gtest(es2panda_union_normalization_tests
283af6ab5fSopenharmony_ci    CPP_SOURCES union_normalization_test.cpp
293af6ab5fSopenharmony_ci)
303af6ab5fSopenharmony_ci
313af6ab5fSopenharmony_ci# NOTE: es2panda_rest_parameter_flag test runs a lot of time on qemu, so let's disable it
323af6ab5fSopenharmony_ciif (NOT PANDA_QEMU_BUILD)
333af6ab5fSopenharmony_ci    ets2panda_add_gtest(es2panda_rest_parameter_flag
343af6ab5fSopenharmony_ci        CPP_SOURCES rest_parameter_flag_test.cpp
353af6ab5fSopenharmony_ci    )
363af6ab5fSopenharmony_ciendif()
373af6ab5fSopenharmony_ci
383af6ab5fSopenharmony_ciif(NOT PANDA_WITH_ETS)
393af6ab5fSopenharmony_ci    return()
403af6ab5fSopenharmony_ciendif()
413af6ab5fSopenharmony_ci
423af6ab5fSopenharmony_ciets2panda_add_gtest(es2panda_checker_tests
433af6ab5fSopenharmony_ci    CPP_SOURCES checker_test.cpp
443af6ab5fSopenharmony_ci)
45