소스 검색

LibCpp: Move parser tests to Userland/Libraries/LibCpp/Tests/parser

Itamar 4 년 전
부모
커밋
a38c330c68

+ 1 - 1
Meta/build-root-filesystem.sh

@@ -151,7 +151,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
+cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibCpp/Tests/parser mnt/home/anon/cpp-tests/parser
 cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibWasm/Tests mnt/home/anon/wasm-tests
 cp -r "$SERENITY_SOURCE_DIR"/Userland/Libraries/LibJS/Tests/test-common.js mnt/home/anon/wasm-tests
 chmod 700 mnt/root

+ 1 - 1
Meta/check-newlines-at-eof.py

@@ -23,7 +23,7 @@ def run():
             "**/CMake*.txt",
             ":!:Kernel/FileSystem/ext2_fs.h",
             ':!:Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests/*',
-            ':!:Userland/Libraries/LibCpp/Tests/*'
+            ':!:Userland/Libraries/LibCpp/Tests/parser/*'
         ],
         check=True,
         capture_output=True

+ 1 - 1
Meta/check-style.sh

@@ -12,7 +12,7 @@ cd "$script_path/.." || exit 1
 #  */
 GOOD_LICENSE_HEADER_PATTERN=$'^/\*\n( \* Copyright \(c\) [0-9]{4}(-[0-9]{4})?, .*\n)+ \*\n \* SPDX-License-Identifier: BSD-2-Clause\n \*/\n\n'
 BAD_LICENSE_HEADER_ERRORS=()
-LICENSE_HEADER_CHECK_EXCLUDES=(AK/Checked.h AK/Function.h Userland/Libraries/LibC/elf.h Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests/* Userland/Libraries/LibCpp/Tests/*)
+LICENSE_HEADER_CHECK_EXCLUDES=(AK/Checked.h AK/Function.h Userland/Libraries/LibC/elf.h Userland/DevTools/HackStudio/LanguageServers/Cpp/Tests/* Userland/Libraries/LibCpp/Tests/parser/*)
 
 # We check that "#pragma once" is present
 PRAGMA_ONCE_PATTERN='#pragma once'

+ 1 - 1
Meta/lint-clang-format.sh

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

+ 0 - 0
Userland/Libraries/LibCpp/Tests/class.ast → Userland/Libraries/LibCpp/Tests/parser/class.ast


+ 0 - 0
Userland/Libraries/LibCpp/Tests/class.cpp → Userland/Libraries/LibCpp/Tests/parser/class.cpp


+ 0 - 0
Userland/Libraries/LibCpp/Tests/function-decl.ast → Userland/Libraries/LibCpp/Tests/parser/function-decl.ast


+ 0 - 0
Userland/Libraries/LibCpp/Tests/function-decl.cpp → Userland/Libraries/LibCpp/Tests/parser/function-decl.cpp


+ 0 - 0
Userland/Libraries/LibCpp/Tests/if-else.ast → Userland/Libraries/LibCpp/Tests/parser/if-else.ast


+ 0 - 0
Userland/Libraries/LibCpp/Tests/if-else.cpp → Userland/Libraries/LibCpp/Tests/parser/if-else.cpp


+ 0 - 0
Userland/Libraries/LibCpp/Tests/local-vars.ast → Userland/Libraries/LibCpp/Tests/parser/local-vars.ast


+ 0 - 0
Userland/Libraries/LibCpp/Tests/local-vars.cpp → Userland/Libraries/LibCpp/Tests/parser/local-vars.cpp


+ 0 - 0
Userland/Libraries/LibCpp/Tests/strace.ast → Userland/Libraries/LibCpp/Tests/parser/strace.ast


+ 0 - 0
Userland/Libraries/LibCpp/Tests/strace.cpp → Userland/Libraries/LibCpp/Tests/parser/strace.cpp


+ 0 - 0
Userland/Libraries/LibCpp/Tests/struct.ast → Userland/Libraries/LibCpp/Tests/parser/struct.ast


+ 0 - 0
Userland/Libraries/LibCpp/Tests/struct.cpp → Userland/Libraries/LibCpp/Tests/parser/struct.cpp