* Makefile: variable for the tools from the host environment
[lightlibc++.git] / testcase.sh
blobb4eb65eb5f49ce4a3f7de4b86ecbadcd22493f51
1 #! /bin/bash
2 # $1 executable path
4 if [ -x $@.sh ]
5 then
6 ./$1.sh > $1.out 2>&1
7 else
8 ./$1 > $1.out 2>&1
9 fi
11 if [ $? == 0 ]
12 then
13 echo -e "\033[01;32mpassed\033[m: $1"
14 else
15 echo -e "\033[01;31mfailed\033[m: $1"
16 rm -f $1
19 exit 0