X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/c6bc1bde279253712b4c85d99f6f6b883fac4f1c..98af8454c63eac3d49414275111c2e44addf81e6:/tests/all.sh diff --git a/tests/all.sh b/tests/all.sh index 5f5dfe6..964e559 100755 --- a/tests/all.sh +++ b/tests/all.sh @@ -1,9 +1,15 @@ -#!/bin/sh +#!/bin/bash +cd `dirname $0` bold="`tput -T${TERM:-dumb} bold`" red="`tput -T${TERM:-dumb} setf 4`" sgr0="`tput -T${TERM:-dumb} sgr0`" -for i in test-*.sh; do - ./$i "$1" +APP="$1" +if [ "$APP" == "" ]; then + echo "Must specify application" + exit 1 +fi +for i in $1-*-test.sh; do + ./$i "$2" if [ $? -eq 0 ] then echo "${bold}OK${sgr0}"