+ 21.6 Strings library, Null-terminated sequence utilities: <cctype>, <cwctype>,...
[lightlibc++.git] / testcase.sh
blob3b22f446357e07151896a9757e797fea5dadba4a
1 #! /bin/bash
2 # $1 executable path
3 # $2 user visible name
5 if [ -x $2.sh ]
6 then
7 ./$2.sh $1 $2 > $1.out 2>&1
8 else
9 ./$1 > $1.out 2>&1
12 if [ $? == 0 ]
13 then
14 echo -e "\033[01;32mpassed\033[m: $2"
15 else
16 echo -e "\033[01;31mfailed\033[m: $2"
17 rm -f $1
20 exit 0