~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to testing/RUNTESTS

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-12-08 14:59:50 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071208145950-u1tykhpw56nyzqik
Tags: 5.4.1~dfsg-4ubuntu1
* Merge from debian unstable.
* Remaining Ubuntu changes:
  - Remove stop links from rc0 and rc6
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - Symlink common files between the packages, CDBS ought to handle that
    for us automatically.
* The latest Debian changes has dropped history from the changelog. Slot in
  the Ubuntu changes as best I can. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
SNMP_VERBOSE=${SNMP_VERBOSE:=0}
67
67
SNMP_SLEEP=${SNMP_SLEEP:=1}     ## default seconds to sleep
68
68
SH_DEBUG=0
 
69
USE_TEST_NUMS=0
69
70
 
70
71
while [ -n "$1" ]; do
71
72
    case "$1" in
139
140
            SNMP_PREFER_NEAR_MIBS=0
140
141
            ;;
141
142
 
 
143
        -n)
 
144
            USE_TEST_NUMS=1
 
145
            ;;
142
146
    esac
143
147
 
144
148
    shift
349
353
cntr=0
350
354
for testfile in $do_tests; do
351
355
    dothisone="yes"
352
 
    id_x=0
353
 
    for itest in $inp; do
354
 
        if [ "$cntr" = "$id_x" ] ; then
355
 
            num="$itest"
356
 
        fi
357
 
    id_x=`expr $id_x + 1`
358
 
    done
 
356
    if [ $USE_TEST_NUMS = 1 ] ; then
 
357
        num=`echo $testfile | sed -e 's/^T//;s/[a-zA-Z].*//;'`
 
358
    else
 
359
        id_x=0
 
360
        for itest in $inp; do
 
361
            if [ "$cntr" = "$id_x" ] ; then
 
362
                num="$itest"
 
363
            fi
 
364
            id_x=`expr $id_x + 1`
 
365
        done
 
366
    fi
359
367
    if [ "x$interactive" = "xyes" ]; then
360
368
 
361
369
        if [ $SH_DEBUG = 1 ] ; then