File: eval_onescript.sh

package info (click to toggle)
net-snmp 5.2.3-7
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 24,416 kB
  • ctags: 16,045
  • sloc: ansic: 175,930; perl: 11,814; sh: 11,230; makefile: 5,375; pascal: 62
file content (36 lines) | stat: -rwxr-xr-x 689 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# eval_onescript.sh SCRIPT  [TESTNUMBER [HEADERONLY] ]
#
# Evaluates one test program, and helps it out by doing a bit of setup
# for it.  It does this by sourcing some configuration files for it
# first, and if it exited without calling FINISHED, call it.
#
# Not intended to be a tool for the common user!  Called by RUNTESTS
# directly instead.
#

testnum=1
if [ "x$2" != "x" ]; then
	testnum=$2
fi
export testnum

unset SNMP_HEADERONLY
if [ "x$3" = "xyes" ]; then
    SNMP_HEADERONLY=yes
fi
export SNMP_HEADERONLY

. TESTCONF.sh

. eval_tools.sh

ECHO "$testnum:  "

. ./$1

# We shouldn't get here...
# If we do, it means they didn't exit properly.
# So we will.
FINISHED