From a38c330c686d760d1a0d42a60c4012549dad55fb Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 13 Aug 2021 13:39:14 +0300 Subject: [PATCH] LibCpp: Move parser tests to Userland/Libraries/LibCpp/Tests/parser --- Meta/build-root-filesystem.sh | 2 +- Meta/check-newlines-at-eof.py | 2 +- Meta/check-style.sh | 2 +- Meta/lint-clang-format.sh | 2 +- Userland/Libraries/LibCpp/Tests/{ => parser}/class.ast | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/class.cpp | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/function-decl.ast | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/function-decl.cpp | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/if-else.ast | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/if-else.cpp | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/local-vars.ast | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/local-vars.cpp | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/strace.ast | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/strace.cpp | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/struct.ast | 0 Userland/Libraries/LibCpp/Tests/{ => parser}/struct.cpp | 0 16 files changed, 4 insertions(+), 4 deletions(-) rename Userland/Libraries/LibCpp/Tests/{ => parser}/class.ast (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/class.cpp (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/function-decl.ast (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/function-decl.cpp (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/if-else.ast (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/if-else.cpp (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/local-vars.ast (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/local-vars.cpp (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/strace.ast (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/strace.cpp (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/struct.ast (100%) rename Userland/Libraries/LibCpp/Tests/{ => parser}/struct.cpp (100%) diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index 8eb8de7dbfc..1bf5230e5cb 100755 --- a/Meta/build-root-filesystem.sh +++ b/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 diff --git a/Meta/check-newlines-at-eof.py b/Meta/check-newlines-at-eof.py index a7ad1f03212..1ac8a408750 100755 --- a/Meta/check-newlines-at-eof.py +++ b/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 diff --git a/Meta/check-style.sh b/Meta/check-style.sh index f8e72c83d2f..beb50f92788 100755 --- a/Meta/check-style.sh +++ b/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' diff --git a/Meta/lint-clang-format.sh b/Meta/lint-clang-format.sh index f320fa740c4..f7b2b0f840c 100755 --- a/Meta/lint-clang-format.sh +++ b/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=() diff --git a/Userland/Libraries/LibCpp/Tests/class.ast b/Userland/Libraries/LibCpp/Tests/parser/class.ast similarity index 100% rename from Userland/Libraries/LibCpp/Tests/class.ast rename to Userland/Libraries/LibCpp/Tests/parser/class.ast diff --git a/Userland/Libraries/LibCpp/Tests/class.cpp b/Userland/Libraries/LibCpp/Tests/parser/class.cpp similarity index 100% rename from Userland/Libraries/LibCpp/Tests/class.cpp rename to Userland/Libraries/LibCpp/Tests/parser/class.cpp diff --git a/Userland/Libraries/LibCpp/Tests/function-decl.ast b/Userland/Libraries/LibCpp/Tests/parser/function-decl.ast similarity index 100% rename from Userland/Libraries/LibCpp/Tests/function-decl.ast rename to Userland/Libraries/LibCpp/Tests/parser/function-decl.ast diff --git a/Userland/Libraries/LibCpp/Tests/function-decl.cpp b/Userland/Libraries/LibCpp/Tests/parser/function-decl.cpp similarity index 100% rename from Userland/Libraries/LibCpp/Tests/function-decl.cpp rename to Userland/Libraries/LibCpp/Tests/parser/function-decl.cpp diff --git a/Userland/Libraries/LibCpp/Tests/if-else.ast b/Userland/Libraries/LibCpp/Tests/parser/if-else.ast similarity index 100% rename from Userland/Libraries/LibCpp/Tests/if-else.ast rename to Userland/Libraries/LibCpp/Tests/parser/if-else.ast diff --git a/Userland/Libraries/LibCpp/Tests/if-else.cpp b/Userland/Libraries/LibCpp/Tests/parser/if-else.cpp similarity index 100% rename from Userland/Libraries/LibCpp/Tests/if-else.cpp rename to Userland/Libraries/LibCpp/Tests/parser/if-else.cpp diff --git a/Userland/Libraries/LibCpp/Tests/local-vars.ast b/Userland/Libraries/LibCpp/Tests/parser/local-vars.ast similarity index 100% rename from Userland/Libraries/LibCpp/Tests/local-vars.ast rename to Userland/Libraries/LibCpp/Tests/parser/local-vars.ast diff --git a/Userland/Libraries/LibCpp/Tests/local-vars.cpp b/Userland/Libraries/LibCpp/Tests/parser/local-vars.cpp similarity index 100% rename from Userland/Libraries/LibCpp/Tests/local-vars.cpp rename to Userland/Libraries/LibCpp/Tests/parser/local-vars.cpp diff --git a/Userland/Libraries/LibCpp/Tests/strace.ast b/Userland/Libraries/LibCpp/Tests/parser/strace.ast similarity index 100% rename from Userland/Libraries/LibCpp/Tests/strace.ast rename to Userland/Libraries/LibCpp/Tests/parser/strace.ast diff --git a/Userland/Libraries/LibCpp/Tests/strace.cpp b/Userland/Libraries/LibCpp/Tests/parser/strace.cpp similarity index 100% rename from Userland/Libraries/LibCpp/Tests/strace.cpp rename to Userland/Libraries/LibCpp/Tests/parser/strace.cpp diff --git a/Userland/Libraries/LibCpp/Tests/struct.ast b/Userland/Libraries/LibCpp/Tests/parser/struct.ast similarity index 100% rename from Userland/Libraries/LibCpp/Tests/struct.ast rename to Userland/Libraries/LibCpp/Tests/parser/struct.ast diff --git a/Userland/Libraries/LibCpp/Tests/struct.cpp b/Userland/Libraries/LibCpp/Tests/parser/struct.cpp similarity index 100% rename from Userland/Libraries/LibCpp/Tests/struct.cpp rename to Userland/Libraries/LibCpp/Tests/parser/struct.cpp