Move scripts/tests/check_syntax.sh to tests/check_syntax.sh

This commit is contained in:
Thomas Farstrike
2025-11-02 13:28:05 +01:00
parent d334c55c3b
commit d8e0fc066b
3 changed files with 7 additions and 4 deletions
-20
View File
@@ -1,20 +0,0 @@
#!/bin/bash
mydir=$(readlink -f "$0")
mydir=$(dirname "$mydir")
fs="$mydir"/../../internal_filesystem/
cross="$mydir"/../../lvgl_micropython/lib/micropython/mpy-cross/build/mpy-cross
failed=0
while read file; do
"$cross" -march=x64 -o /dev/null "$file"
exitcode="$?"
if [ $exitcode -ne 0 ]; then
echo "$file got exitcode $exitcode"
failed=$(expr $failed \+ 1)
fi
done < <(find "$fs" -iname "*.py")
if [ $failed -ne 0 ]; then
echo "ERROR: $failed .py files have syntax errors"
exit 1
fi