]> scripts.mit.edu Git - wizard.git/blob - tests/all.sh
Make phpBB installer more friendly for restricted envs.
[wizard.git] / tests / all.sh
1 #!/bin/bash
2 bold="`tput -T${TERM:-dumb} bold`"
3 red="`tput -T${TERM:-dumb} setf 4`"
4 sgr0="`tput -T${TERM:-dumb} sgr0`"
5 APP="$1"
6 if [ "$APP" == "" ]; then
7     echo "Must specify application"
8     exit 1
9 fi
10 for i in $1-*-test.sh; do
11     ./$i "$2"
12     if [ $? -eq 0 ]
13     then
14         echo "${bold}OK${sgr0}"
15     else
16         echo "${bold}${red}FAIL${sgr0}"
17     fi
18     echo
19 done