Test: killed backend in snmp tests
This commit is contained in:
parent
575429caa1
commit
dd1e5966fb
6 changed files with 51 additions and 3 deletions
|
|
@ -658,7 +658,6 @@ xml_yang_minmax_recurse(cxobj *xt,
|
|||
|
||||
yt = xml_spec(xt); /* If yt == NULL, then no gap-analysis is done */
|
||||
while ((x = xml_child_each(xt, x, CX_ELMNT)) != NULL){
|
||||
clicon_debug(1, "%s x:%s", __FUNCTION__, xml_name(x));
|
||||
if ((y = xml_spec(x)) == NULL)
|
||||
continue;
|
||||
keyw = yang_keyword_get(y);
|
||||
|
|
|
|||
|
|
@ -136,6 +136,17 @@ function testinit(){
|
|||
|
||||
function testexit(){
|
||||
stop_snmp
|
||||
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
# Check if premature kill
|
||||
pid=$(pgrep -u root -f clixon_backend)
|
||||
if [ -z "$pid" ]; then
|
||||
err "backend already dead"
|
||||
fi
|
||||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
fi
|
||||
}
|
||||
|
||||
ENTITY_OID=".1.3.6.1.2.1.47.1.1.1"
|
||||
|
|
|
|||
|
|
@ -132,6 +132,16 @@ function testinit(){
|
|||
|
||||
function testexit(){
|
||||
stop_snmp
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
# Check if premature kill
|
||||
pid=$(pgrep -u root -f clixon_backend)
|
||||
if [ -z "$pid" ]; then
|
||||
err "backend already dead"
|
||||
fi
|
||||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
fi
|
||||
}
|
||||
|
||||
new "SNMP tests"
|
||||
|
|
|
|||
|
|
@ -195,13 +195,21 @@ function testinit(){
|
|||
|
||||
function testexit(){
|
||||
stop_snmp
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
# Check if premature kill
|
||||
pid=$(pgrep -u root -f clixon_backend)
|
||||
if [ -z "$pid" ]; then
|
||||
err "backend already dead"
|
||||
fi
|
||||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
new "SNMP tests"
|
||||
testinit
|
||||
|
||||
|
||||
# IF-MIB::interfaces
|
||||
MIB=".1.3.6.1.2.1"
|
||||
for (( i=1; i<23; i++ )); do
|
||||
|
|
|
|||
|
|
@ -206,6 +206,16 @@ function testrun_removeRows()
|
|||
function testexit()
|
||||
{
|
||||
stop_snmp
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
# Check if premature kill
|
||||
pid=$(pgrep -u root -f clixon_backend)
|
||||
if [ -z "$pid" ]; then
|
||||
err "backend already dead"
|
||||
fi
|
||||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
fi
|
||||
}
|
||||
|
||||
new "SNMP tests"
|
||||
|
|
|
|||
|
|
@ -121,6 +121,16 @@ function testinit(){
|
|||
|
||||
function testexit(){
|
||||
stop_snmp
|
||||
if [ $BE -ne 0 ]; then
|
||||
new "Kill backend"
|
||||
# Check if premature kill
|
||||
pid=$(pgrep -u root -f clixon_backend)
|
||||
if [ -z "$pid" ]; then
|
||||
err "backend already dead"
|
||||
fi
|
||||
# kill backend
|
||||
stop_backend -f $cfg
|
||||
fi
|
||||
}
|
||||
|
||||
new "SNMP tests"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue