* Added valgrind memory leak tests in testmem.sh for restconf

* Added clicon_socket_set() and clicon_socket_get() functions for cleaning up backend server and restconf FCGI socket on termination.
* Removed obsolete `-x` command-line option to clixon_cli.
This commit is contained in:
Olof Hagsand 2019-02-20 13:05:31 +01:00
parent 28bd698968
commit 6e63f0a77b
29 changed files with 193 additions and 131 deletions

View file

@ -106,7 +106,7 @@ new "kill old restconf daemon"
sudo pkill -u www-data clixon_restconf
new "start restconf daemon"
sudo su -c "$clixon_restconf -f $RCLOG $cfg -y $fyang -D $DBG" -s /bin/sh www-data &
start_restconf -f $cfg -y $fyang
new "waiting"
sleep $RCWAIT
@ -194,7 +194,7 @@ new "netconf validate mandatory"
expecteof "$clixon_netconf -qf $cfg -y $fyang" 0 "<rpc><validate><source><candidate/></source></validate></rpc>]]>]]>" "^<rpc-reply><ok/></rpc-reply>]]>]]>$"
new "Kill restconf daemon"
sudo pkill -u www-data -f "/www-data/clixon_restconf"
stop_restconf
if [ $BE -eq 0 ]; then
exit # BE