Add -v flag to run that prints success

master
Matthew McPherrin 11 years ago
parent 4e05bfc91e
commit 433793afab
  1. 7
      run

7
run

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

Loading…
Cancel
Save