From 0a1ff1a44526c08063ab63d49cbf1963a561f3a9 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 1e088a38..ff70ad86 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' @@ -596,6 +599,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()