Add -v flag to run that prints success

This commit is contained in:
Matthew McPherrin 2012-03-14 16:04:32 -04:00
parent 4e05bfc91e
commit 433793afab
1 changed files with 6 additions and 1 deletions

7
run
View File

@ -1,9 +1,14 @@
#!/bin/bash #!/bin/bash
fail=0
for i in "`dirname $0`"/tests.d/*; do for i in "`dirname $0`"/tests.d/*; do
$i $i
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "FAIL: `basename $i`" echo "FAIL: `basename $i`"
exit 1 fail=1
elif [ "$1" == "-v" ]; then
echo "Pass: $i"
fi fi
done done
exit $fail