From 832e9c6e02b3629db8d5303fb94ec9d0e7a7b145 Mon Sep 17 00:00:00 2001 From: Itamar Date: Mon, 17 May 2021 11:06:30 +0300 Subject: 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. --- Meta/build-root-filesystem.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'Meta/build-root-filesystem.sh') diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index 34e2f051f0..38c5152850 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -110,6 +110,7 @@ cp "$SERENITY_SOURCE_DIR"/README.md mnt/home/anon/ cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibJS/Tests mnt/home/anon/js-tests cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibWeb/Tests mnt/home/anon/web-tests cp -r "$SERENITY_SOURCE_DIR"/Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests mnt/home/anon/cpp-tests/comprehension +cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibCpp/Tests mnt/home/anon/cpp-tests/parser chmod 700 mnt/root chmod 700 mnt/home/anon chmod 700 mnt/home/nona -- cgit v1.2.3