mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Meta: Fix wrong path for AK Tests in check-ak-test-files.sh
This commit is contained in:
parent
6c345c8107
commit
566702ffa2
Notes:
sideshowbarker
2024-07-18 07:26:52 +09:00
Author: https://github.com/Mandar12 🔰 Commit: https://github.com/SerenityOS/serenity/commit/566702ffa2c Pull-request: https://github.com/SerenityOS/serenity/pull/9221
1 changed files with 3 additions and 3 deletions
|
@ -9,16 +9,16 @@ MISSING_FILES=n
|
|||
|
||||
while IFS= read -r FILENAME; do
|
||||
# Simply search whether the CMakeLists.txt *ever* mention the test files.
|
||||
if ! grep -qP "${FILENAME}" AK/Tests/CMakeLists.txt ; then
|
||||
if ! grep -qP "${FILENAME}" Tests/AK/CMakeLists.txt ; then
|
||||
echo "Tests/AK/CMakeLists.txt is missing the test file ${FILENAME}"
|
||||
MISSING_FILES=y
|
||||
fi
|
||||
done < <(
|
||||
git ls-files 'Test/AK/Test*.cpp' | xargs -i basename {}
|
||||
git ls-files 'Tests/AK/Test*.cpp' | xargs -i basename {}
|
||||
)
|
||||
|
||||
if [ "n" != "${MISSING_FILES}" ] ; then
|
||||
echo "Some files are missing from the AK/Tests/CMakeLists.txt."
|
||||
echo "Some files are missing from the Tests/AK/CMakeLists.txt."
|
||||
echo "If a new test file is being added, ensure it is in the CMakeLists.txt."
|
||||
echo "This ensures the new tests are always run."
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue