mkdir -p DIFF
passed=0
failed=0
-INDENT=' '
cat /dev/null > failure-outputs.txt
runComplexTests()
for i in *.sh
do
case $i in TEST*.sh) continue;; esac
- echo -n "$INDENT"
- 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
- echo -n "$INDENT"
if ./TESTonce $name $input $output "$options"
then
passed=`expr $passed + 1`
failed=`cat .failed`
}
+echo $passed >.passed
+echo $failed >.failed
if [ $# -eq 0 ]
then
runComplexTests