autotest-checkers.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. php ./build/OCPSinceChecker.php
  15. RESULT=$(($RESULT+$?))
  16. dataDirCreated=0
  17. if ! [ -e data/ ]; then
  18. dataDirCreated=1
  19. echo "Create directory 'data/'"
  20. mkdir data/
  21. fi
  22. for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
  23. echo "Testing $app"
  24. if
  25. [ "$app" == "dav" ] || \
  26. [ "$app" == "encryption" ] || \
  27. [ "$app" == "federatedfilesharing" ] || \
  28. [ "$app" == "files" ] || \
  29. [ "$app" == "files_external" ] || \
  30. [ "$app" == "files_sharing" ] || \
  31. [ "$app" == "files_trashbin" ] || \
  32. [ "$app" == "files_versions" ] || \
  33. [ "$app" == "provisioning_api" ] || \
  34. [ "$app" == "settings" ] || \
  35. [ "$app" == "updatenotification" ] || \
  36. [ "$app" == "user_ldap" ]
  37. then
  38. ./occ app:check-code --skip-checkers "$app"
  39. else
  40. ./occ app:check-code "$app"
  41. fi
  42. RESULT=$(($RESULT+$?))
  43. done;
  44. if [ $dataDirCreated == 1 ]; then
  45. echo "Delete created directory 'data/'"
  46. rm -rf data/
  47. fi
  48. php ./build/files-checker.php
  49. RESULT=$(($RESULT+$?))
  50. exit $RESULT