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 14ets2panda_add_gtest(ast_builder_test 15 CPP_SOURCES ast_builder_test.cpp 16) 17 18ets2panda_add_gtest(es2panda_public_test 19 CPP_SOURCES es2panda_public_test.cpp 20) 21 22add_custom_target(qemu_excluded_gtests) 23 24ets2panda_add_gtest(ast_verifier_test_1 25 CPP_SOURCES 26 ast_verifier_short_test.cpp 27 ast_verifier_private_protected_public_access_correct_test.cpp 28 ast_verifier_private_access_negative_test.cpp 29 ast_verifier_protected_access_correct_test.cpp 30 ast_verifier_protected_access_negative_test.cpp 31 ast_verifier_reference_typeannotation_test.cpp 32 TEST_GROUP qemu_excluded_gtests 33) 34 35ets2panda_add_gtest(ast_verifier_test_2 36 CPP_SOURCES 37 ast_verifier_identifier_has_variable_test.cpp 38 ast_verifier_variable_has_enclosing_scope_test.cpp 39 ast_verifier_variable_has_scope_test.cpp 40 ast_verifier_every_child_has_valid_parent_test.cpp 41 TEST_GROUP qemu_excluded_gtests 42) 43 44ets2panda_add_gtest(ast_verifier_test_3 45 CPP_SOURCES 46 ast_verifier_check_abstract_call_test.cpp 47 ast_verifier_getter_setter_test.cpp 48 ast_verifier_check_const_properties_test.cpp 49 ast_verifier_getter_setter_neg_test.cpp 50 ast_verifier_check_scope_declaration_test.cpp 51 TEST_GROUP qemu_excluded_gtests 52) 53 54ets2panda_add_gtest(ast_verifier_test_4 55 CPP_SOURCES 56 ast_verifier_check_struct_declaration_test.cpp 57 TEST_GROUP qemu_excluded_gtests 58) 59 60if (NOT PANDA_QEMU_BUILD) 61 add_dependencies(es2panda_gtests qemu_excluded_gtests) 62endif() 63