You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

runtests.sh 374B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. #
  3. # Run the project tests
  4. # Change to directory of this script
  5. cd "$( dirname "$0" )"
  6. TESTS=${1:-"tests"}
  7. shift
  8. python manage.py test $TESTS --settings=settings_test --noinput $@
  9. # Print out a nice colored message
  10. if [ $? -eq 0 ]; then
  11. echo -e "\033[42;37m\nTests passed!\033[0m"
  12. else
  13. echo -e "\033[41;37m\nTests failed!\033[0m"
  14. exit 1
  15. fi