Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 583 Bytes
#!/bin/bash
if ! [ -f local_setup.sh ] ; then
echo "You must create a local_setup.sh so we know where to find the puppet libs."
exit 2
fi
let FAILURES=0
let TOTAL=0
FAIL_LOG=/tmp/$$.failures.txt
rm -f $FAIL_LOG
for SPEC in `find ./spec -name '*_spec.sh'` ; do
if bash $SPEC >& /dev/null ; then
echo -n .
else
echo $SPEC > $FAIL_LOG
let "FAILURES+=1"
echo -n F
fi
let "TOTAL+=1"
done
echo
echo "$TOTAL tests, $FAILURES failures"
cat -n $FAIL_LOG
[ $FAILURES -eq 0 ]