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