From 214b7cc0c7cbd1bd2494fb1c4312dcc2514facfb Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 5 May 2022 21:51:33 +0200 Subject: [PATCH] SNMP frontend test changes Added a CS variable, set to 0 if you started clixon_snmp yourself (eg in gdb) Also added BE (backend) with the same purpose for backend --- test/lib.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/lib.sh b/test/lib.sh index 65eea0db..9eba5f77 100755 --- a/test/lib.sh +++ b/test/lib.sh @@ -73,6 +73,9 @@ testname= # eg logging to a file: RCLOG="-l f/www-data/restconf.log" : ${RCLOG:=} +# If set to 0, override starting of clixon_snmp in test (you bring your own) +: ${CS:=1} + # Namespace: netconf base BASENS='urn:ietf:params:xml:ns:netconf:base:1.0' @@ -594,6 +597,12 @@ function wait_restconf_stopped(){ fi } +# need a better way to detect liveness of clixon_snmp +function wait_snmp() +{ + sleep 3 +} + # End of test, final tests before normal exit of test # Note this is a single test started by new, not a total test suite function endtest()