#!/bin/sh
# $Id: t-edb-0.sh,v 1.3 2006/10/05 01:42:33 ca Exp $
# Copyright (c) 2005 Sendmail, Inc. and its suppliers.
#	All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#
test -s stop && exit 1
# 

TPRG=./t-edb-0
ERRS=0

for pre in "" "-p"
do
  for app in "" "-a"
  do
    for rem in "" "-r"
    do
      if ${TPRG} ${pre} ${app} ${rem}
      then
        :
      else
        ERRS=`expr ${ERRS} + 1 `
        echo "$0: test failed for ${pre} ${app} ${rem}"
        test X"${MTA_STOPONERROR}" != X && exit 1
      fi
    done
  done
done

exit ${ERRS}


syntax highlighted by Code2HTML, v. 0.9.1