#!/bin/sh
# $Id: t-idbr-3.sh,v 1.7 2004/12/29 20:53:09 ca Exp $
# Copyright (c) 2003, 2004 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.
#
# ------------------------------------------------------------
# Description:
# Driver script for t-idbrw-3.c
# ------------------------------------------------------------
#
test -s stop && exit 1
#
ERRS=0
P=t-idbrw-3

for k in 64 512 2048
do
  m=`expr ${k} \* 1024`
  case "${k}" in
    64)  I="100";;
    512)  I="100 1000";;
    2048)  I="100 1000 5000";;
  esac
  for r in "" "-r"
  do
    for i in ${I}
    do
      if ./${P} ${r} -m ${m} -i ${i}
      then
        :
      else
        ERRS=`expr ${ERRS} + 1 `
        # just stop for now
        exit 1
      fi
    done
  done
done

exit ${ERRS}


syntax highlighted by Code2HTML, v. 0.9.1