OSDN Git Service
(root)
/
ultramonkey-l7
/
ultramonkey-l7-v3.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
trunk整理
[ultramonkey-l7/ultramonkey-l7-v3.git]
/
test
/
script
/
l7vsadm
/
l7vsadm-10-1-1.sh
1
#!/bin/bash
2
3
. ${SET_DEFAULT_CONF}
4
5
#Add Service
6
$L7VSD
7
if [ $? -ne 0 ]
8
then
9
echo "Test failed: $L7VSD"
10
exit 1
11
fi
12
usleep 100000
13
14
RET=`$L7VSADM`
15
EXPECT="Layer-7 Virtual Server version 3.0.1
16
Prot LocalAddress:Port ProtoMod Scheduler
17
-> RemoteAddress:Port Forward Weight ActiveConn InactConn"
18
if [ "${RET}" != "${EXPECT}" ]
19
then
20
echo "Test failed: $L7VSADM"
21
exit 1
22
fi
23
24
exit 0
25