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.

20 lines
322 B

  1. #!/bin/bash
  2. black='\E[30m'
  3. red='\E[31m'
  4. green='\E[32m'
  5. yellow='\E[33m'
  6. blue='\E[34m'
  7. magenta='\E[35m'
  8. cyan='\E[36m'
  9. white='\E[37m'
  10. if ! ./$1 > /dev/null 2> .runtest.log ; then
  11. echo -e $red Test $1 failed: $black
  12. echo -e $blue
  13. cat .runtest.log
  14. echo -e $black
  15. exit 1
  16. else
  17. echo -e $green Test $1 passed$black
  18. fi