Unit Tests

- Downgraded bash constructs to sh, reducing the requirements from bash to sh.
This commit is contained in:
Paul Beckingham 2014-05-30 21:39:55 -04:00
parent 87dcbd556e
commit 6ccca32434

View file

@ -1,4 +1,4 @@
#! /bin/bash #! /bin/sh
rc=0 rc=0
if [ x"$1" = x"--verbose" ]; if [ x"$1" = x"--verbose" ];
@ -10,7 +10,10 @@ then
while read LINE while read LINE
do do
echo "$LINE" echo "$LINE"
done < test.log || rc=1 done < test.log
if [ $? -ne 0 ]; then
rc=1
fi
rm test.log rm test.log
done done
exit $rc exit $rc
@ -39,7 +42,10 @@ else
COUNT=`expr $COUNT + 1` COUNT=`expr $COUNT + 1`
fi fi
$i >> all.log 2>&1 || rc=1 $i >> all.log 2>&1
if [ $? -ne 0 ]; then
rc=1
fi
done done
if [ $BAR -eq 1 ]; then if [ $BAR -eq 1 ]; then