################
# ezmlm-tstdig #
################

  prompt "ezmlm-tstdig:         "

  ${EZBIN}/ezmlm-tstdig -k2 -m10 -t1 "$DIR" || \
	fatal "-t1 failed"
  ${EZBIN}/ezmlm-tstdig -k2 -m10 -t0 "$DIR" && \
	fatal "-t0 succeeded"

  echo 2 >"$DIR"/digsize
  echo 10 >"$DIR"/digcount
  echo 1 >"$DIR"/digtime
  ${EZBIN}/ezmlm-tstdig "$DIR" || \
	fatal "digtime=1 failed"
  echo 0 >"$DIR"/digtime
  ${EZBIN}/ezmlm-tstdig -k2 -m10 -t0 "$DIR" && \
	fatal "digtime=0 succeeded"
  rm "$DIR"/digsize "$DIR"/digcount "$DIR"/digtime

  LOCAL="$LIST-xx"
  DEFAULT='xx'
  ${EZBIN}/ezmlm-tstdig -k2 -m10 -t0 "$DIR" || \
	fatal "problem with -xx in manager position"
  LOCAL="$LIST-dig."
  DEFAULT='dig.'
  ${EZBIN}/ezmlm-tstdig -k2 -m10 -t0 "$DIR" && \
	fatal "problem with -dig in manager position"
  LOCAL="$LIST-digest-"
  DEFAULT='digest-'
  ${EZBIN}/ezmlm-tstdig -k2 -m10 -t0 "$DIR" || \
	{ echo "err with -digest- in mgr pos: 0.31 bug fixed in 0.321"
	  prompt "ezmlm-tstdig.......   "
	  BUG="${BUG} digest"
	}
  LOCAL=''
  unset DEFAULT
  ${EZBIN}/ezmlm-tstdig -k2 -m4 -t1 "$DIR" || \
	fatal "-m failed"
  ${EZBIN}/ezmlm-tstdig -k1 -m10 -t0 "$DIR" || \
	fatal "-k failed"

  echo 2 >"$DIR"/digsize
  echo 4 >"$DIR"/digcount
  echo 1 >"$DIR"/digtime
  ${EZBIN}/ezmlm-tstdig "$DIR" || \
	fatal "digcount=4 failed"
  echo 10 >"$DIR"/digcount
  ${EZBIN}/ezmlm-tstdig "$DIR" || \
	fatal "digsize=2 failed"
  rm "$DIR"/digsize "$DIR"/digcount "$DIR"/digtime

  LOCAL="$LIST"
  ${EZBIN}/ezmlm-tstdig -k1 -m10 -t0 "$DIR" > "$ERR" 2>&1 || \
	{
	 echo "problem with DEFAULT unset: 0.32 bug, OK in 0.321."
	 prompt "ezmlm-tstdig.......   "
	  BUG="${BUG} tstdig"
	}
  echo "OK"
  export DEFAULT
