1 #!/bin/bash 2 3 black='\E[30m' 4 red='\E[31m' 5 green='\E[32m' 6 yellow='\E[33m' 7 blue='\E[34m' 8 magenta='\E[35m' 9 cyan='\E[36m' 10 white='\E[37m' 11 12 if make test_$1 > /dev/null 2> .runtest.log ; then 13 if ! ./test_$1 r20 > /dev/null 2> .runtest.log ; then 14 echo -e $red Test $1 failed: $black 15 echo -e $blue 16 cat .runtest.log 17 echo -e $black 18 exit 1 19 else 20 echo -e $green Test $1 passed$black 21 fi 22 else 23 echo -e $red Build of target $1 failed: $black 24 echo -e $blue 25 cat .runtest.log 26 echo -e $black 27 exit 1 28 fi 29