mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 06:13:17 +00:00

This commit adds tools to test parsing of WML macros by the preprocessor and parser. The commit also adds two tests of the #define and #undef WML macro as examples. The tests consist of three steps: 1. Define one WML string containing macros and one WML string that lacks macros in each test. The two WML strings should be equivalent after preprocessing. 2. Transform each WML string into a syntax tree (represented by config objects) with the preprocessor and parser of Wesnoth. 3. Check if the two config objects are equal. Since the two WML strings are equivalent, the two configs object should be equivalent if the preprocessor and parsers are both correct. The output of the preprocessor is in an undocumented format. Therefore, this commit does not test the preprocessor as an isolated unit.
33 lines
864 B
Plaintext
33 lines
864 B
Plaintext
tests/gui/fire_event.cpp
|
|
tests/gui/iterator.cpp
|
|
tests/gui/test_gui2.cpp
|
|
tests/gui/visitor.cpp
|
|
tests/main.cpp
|
|
tests/test_addons.cpp
|
|
tests/test_commandline_options.cpp
|
|
tests/test_config.cpp
|
|
tests/test_config_cache.cpp
|
|
tests/test_filesystem.cpp
|
|
tests/test_formula_ai.cpp
|
|
tests/test_formula_core.cpp
|
|
tests/test_formula_function.cpp
|
|
tests/test_formula_timespan.cpp
|
|
tests/test_image_modifications.cpp
|
|
tests/test_irdya_date.cpp
|
|
tests/test_lexical_cast.cpp
|
|
tests/test_make_enum.cpp
|
|
tests/test_map_location.cpp
|
|
tests/test_mp_connect.cpp
|
|
tests/test_recall_list.cpp
|
|
tests/test_rng.cpp
|
|
tests/test_serialization.cpp
|
|
tests/test_team.cpp
|
|
tests/test_unit_map.cpp
|
|
tests/test_util.cpp
|
|
tests/test_version.cpp
|
|
tests/test_whiteboard_side_actions.cpp
|
|
tests/utils/fake_display.cpp
|
|
tests/utils/game_config_manager_tests.cpp
|
|
tests/utils/wml_equivalence.cpp
|
|
tests/wml/test_macro_define.cpp
|