This commit is contained in:
Thomas Levine 2012-10-11 01:52:29 -04:00
parent fb0cde3f21
commit b37756d5de

20
urchin
View File

@ -67,14 +67,14 @@ recurse() {
}
USAGE="usage: $0 <test directory>"
# echo 'Go to http://www.urchin.sh for documentation on writing tests.'
FORCE=false
HELP=false
while [ $# -gt 0 ]
do
case "$1" in
-f) FORCE=true;;
-h) HELP=true;;
# --xsd) action=testsuite;;
# --) shift; break;;
-*) echo >&2 $USAGE
@ -84,6 +84,21 @@ do
shift
done
if $HELP
then
echo
echo "$USAGE"
echo
echo '-f Force urchin to run on directories not named "test".'
echo '-h This help'
echo
echo '--xsd Output xUnit XML schema for an integration server.'
echo
echo 'Go to http://www.urchin.sh for documentation on writing tests.'
echo
exit 0
fi
# Check
if [ "$#" = '1' ] && [ -d "$1" ]
then
@ -102,7 +117,6 @@ if echo "$1"| grep test || $FORCE
echo > "$logfile"
recurse "$1" 0
echo
echo Done
echo $(grep -e 'passed$' "$logfile"|wc -l) tests passed.
echo $(grep -e 'failed$' "$logfile"|wc -l) tests failed.