#! /bin/bash

# Run the test suite in a differnt time zone then the reference files
# were generated. This catches all test cases without timezone
# specification.
TZ="UTC-3"
export TZ

set errors=0

dirs=`find * -prune -type d`

for d in $dirs ; do
  if [ $d != "CVS" ] ; then
    echo "Testing in $d"
    cd $d
    if [ -x ./testdir ] ; then
      ./testdir
    else
      ../testdir
    fi
    errors=`expr $errors + $?`
    cd ..
  fi
done

echo $errors errors detected!
exit $errors

