1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

Meta: Fix wrong path for AK Tests in check-ak-test-files.sh

This commit is contained in:
Mandar Kulkarni 2021-08-05 15:31:41 +05:30 committed by Andreas Kling
parent 6c345c8107
commit 566702ffa2

View file

@ -9,16 +9,16 @@ MISSING_FILES=n
while IFS= read -r FILENAME; do while IFS= read -r FILENAME; do
# Simply search whether the CMakeLists.txt *ever* mention the test files. # 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}" echo "Tests/AK/CMakeLists.txt is missing the test file ${FILENAME}"
MISSING_FILES=y MISSING_FILES=y
fi fi
done < <( 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 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 "If a new test file is being added, ensure it is in the CMakeLists.txt."
echo "This ensures the new tests are always run." echo "This ensures the new tests are always run."
exit 1 exit 1