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
commit 566702ffa2
Notes: sideshowbarker 2024-07-18 07:26:52 +09:00

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