for i in *.sh
do
case $i in TEST*.sh) continue;; esac
- if sh ./$i
- then
- passed=`expr $passed + 1`
- else
- failed=`expr $failed + 1`
- fi
+ sh ./$i
done
}
runSimpleTests()
{
+ passed=`cat .passed`
+ failed=`cat .failed`
only=$1
- echo $passed >.passed
- echo $failed >.failed
cat TESTLIST | while read name input output options
do
case $name in
\#*) continue;;
'') continue;;
esac
+ rm -f core
[ "$only" != "" -a "$name" != "$only" ] && continue
- if perl ./TESTonce $name $input $output "$options"
+ if ./TESTonce $name $input $output "$options"
then
passed=`expr $passed + 1`
echo $passed >.passed
failed=`cat .failed`
}
+echo $passed >.passed
+echo $failed >.failed
if [ $# -eq 0 ]
then
runComplexTests