1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

LibCpp: Add regression tests for the parser

For each .cpp file in the test suite data, there is a .ast file that
represents the "known good" baseline of the parser result.

Each .cpp file goes through the parser, and the result of
invoking `ASTNode::dump()` on the root node is compared to the
baseline to find regressions.

We also check that there were no parser errors when parsing the .cpp
files.
This commit is contained in:
Itamar 2021-05-17 11:06:30 +03:00 committed by Andreas Kling
parent fbf796cd9f
commit 832e9c6e02
16 changed files with 1264 additions and 3 deletions

View file

@ -13,7 +13,8 @@ if [ "$#" -eq "1" ]; then
':!:Base' \
':!:Kernel/FileSystem/ext2_fs.h' \
':!:Userland/Libraries/LibC/syslog.h' \
':!:Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests/*'
':!:Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests/*' \
':!:Userland/Libraries/LibCpp/Tests/*'
)
else
files=()