#!/bin/sh . ${srcdir}/test-setup exitcode=0 if [ -f ./amavisd-test ]; then echo "***** Please note that some of the tests below will fail!" echo "***** Check the daemon's debug output closely for expected results." echo "***** See tests/README for details." fi # av scanner if grep "Virus scanner failure" ${SCRIPT} >/dev/null 2>&1 ; then : else test -n "$VERBOSE" && echo " no virus scanner configured" exitcode=1 fi # mta init if grep '^\$REGERR' ${SCRIPT} >/dev/null 2>&1 ; then : else test -n "$VERBOSE" && echo " no MTA configured" exitcode=1 fi # mta send # needs improvement ... if grep '# sending mail,.*version' ${SCRIPT} >/dev/null 2>&1 ; then : else test -n "$VERBOSE" && echo " no method for sending mail configured" exitcode=1 fi test -d $tmpdir && /bin/rm -rf $tmpdir exit $exitcode