1
0

autotest-checkers.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/usr/bin/env bash
  2. #
  3. RESULT=0
  4. bash ./build/autoloaderchecker.sh
  5. RESULT=$(($RESULT+$?))
  6. php ./build/translation-checker.php
  7. RESULT=$(($RESULT+$?))
  8. php ./build/triple-dot-checker.php
  9. RESULT=$(($RESULT+$?))
  10. php ./build/htaccess-checker.php
  11. RESULT=$(($RESULT+$?))
  12. bash ./build/ca-bundle-checker.sh
  13. RESULT=$(($RESULT+$?))
  14. dataDirCreated=0
  15. if ! [ -e data/ ]; then
  16. dataDirCreated=1
  17. echo "Create directory 'data/'"
  18. mkdir data/
  19. fi
  20. for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
  21. echo "Testing $app"
  22. if
  23. [ "$app" == "dav" ] || \
  24. [ "$app" == "encryption" ] || \
  25. [ "$app" == "federatedfilesharing" ] || \
  26. [ "$app" == "files" ] || \
  27. [ "$app" == "files_external" ] || \
  28. [ "$app" == "files_sharing" ] || \
  29. [ "$app" == "files_trashbin" ] || \
  30. [ "$app" == "files_versions" ] || \
  31. [ "$app" == "provisioning_api" ] || \
  32. [ "$app" == "settings" ] || \
  33. [ "$app" == "updatenotification" ] || \
  34. [ "$app" == "user_ldap" ]
  35. then
  36. ./occ app:check-code --skip-checkers "$app"
  37. else
  38. ./occ app:check-code "$app"
  39. fi
  40. RESULT=$(($RESULT+$?))
  41. done;
  42. if [ $dataDirCreated == 1 ]; then
  43. echo "Delete created directory 'data/'"
  44. rm -rf data/
  45. fi
  46. php ./build/files-checker.php
  47. RESULT=$(($RESULT+$?))
  48. exit $RESULT