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.

28 lines
520 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 make test_$1 > /dev/null 2> .runtest.log ; then
  11. if ! ./test_$1 r20 > /dev/null 2> .runtest.log ; then
  12. echo -e $red Test $1 failed: $black
  13. echo -e $blue
  14. cat .runtest.log
  15. echo -e $black
  16. exit 1
  17. else
  18. echo -e $green Test $1 passed$black
  19. fi
  20. else
  21. echo -e $red Build of target $1 failed: $black
  22. echo -e $blue
  23. cat .runtest.log
  24. echo -e $black
  25. exit 1
  26. fi