~ubuntu-branches/debian/lenny/net-snmp/lenny

« back to all changes in this revision

Viewing changes to testing/RUNTESTS

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
  -XM       Don't set MIBDIRS environment unless absolutely necessary
41
41
  -x        Turn on SH output debugging for tests.
42
42
  -P TRANS  Specify on which transport domain to run the tests.Default is udp.
 
43
  -p prefix Specify test case prefix. Options are [T|V]. Default is T
43
44
 
44
45
BLIK
45
46
    exit 0
50
51
SNMP_BASEDIR=`dirname $0`
51
52
SNMP_PREFER_NEAR_MIBS=1 ## prefer MIB files found in source hierarchy
52
53
export SNMP_PREFER_NEAR_MIBS
 
54
SNMP_TEST_PREFIX=${SNMP_TEST_PREFIX:=T}
 
55
export SNMP_TEST_PREFIX
53
56
 
54
57
### Check for the configuration script.
55
58
##if [ ! -s "${SNMP_BASEDIR}/TESTCONF.sh"  ] ; then 
88
91
            shift
89
92
            SNMP_UPDIR="$1"
90
93
            ;;
 
94
        -p)
 
95
            shift
 
96
            SNMP_TEST_PREFIX="$1"
 
97
            ;;
91
98
        -P)
92
99
                shift
93
100
                SNMP_TRANSPORT_SPEC="$1"
230
237
 
231
238
# Hack: the above created a directory, now we have to nuke it and
232
239
# forget about it...  All for the convenience of the test writer.
233
 
rmdir $SNMP_TMPDIR
 
240
rm -fR $SNMP_TMPDIR
234
241
unset SNMP_TMPDIR
235
242
export SNMP_TMPDIR
236
243
 
275
282
    # List the tests in question
276
283
    #
277
284
    num=0
278
 
    for testfile in T*; do
 
285
    for testfile in $SNMP_TEST_PREFIX*; do
279
286
        case $testfile in
280
287
            # Skip backup files, and the like.
281
288
            *~)     ;;