RunAllTests.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. # _ _
  3. # | |__ _ __ ___ ___ | | __
  4. # | '_ \| '__/ _ \ / _ \| |/ /
  5. # | |_) | | | (_) | (_) | <
  6. # |_.__/|_| \___/ \___/|_|\_\
  7. #
  8. # Microframework which helps to develop web Pascal applications.
  9. #
  10. # Copyright (c) 2012-2020 Silvio Clecio <[email protected]>
  11. #
  12. # Brook framework is free software; you can redistribute it and/or
  13. # modify it under the terms of the GNU Lesser General Public
  14. # License as published by the Free Software Foundation; either
  15. # version 2.1 of the License, or (at your option) any later version.
  16. #
  17. # Brook framework is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. # Lesser General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU Lesser General Public
  23. # License along with Brook framework; if not, write to the Free Software
  24. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  25. #
  26. set -e
  27. dir="./Test_*"
  28. count=0
  29. for f in $dir; do
  30. if [ -f "$f" ] && [ -x "$f" ] && [ ! "${f%.*}" ]; then
  31. echo -n "$f "
  32. sh -c "$f"
  33. echo "OK"
  34. count=$((count + 1))
  35. fi
  36. done
  37. echo "Total: $count"