Tests: updated cli fuzz, vagrant, valgrind

This commit is contained in:
Olof hagsand 2023-12-04 09:29:02 +01:00
parent 8d3d39319e
commit 1ac5086c6a
5 changed files with 150 additions and 7 deletions

View file

@ -165,7 +165,14 @@ new "Check entries"
expectpart "$(curl $CURLOPTS -X GET $RCPROTO://localhost/restconf/data/clixon-client:table -H 'Accept: application/yang-data+xml')" 0 "HTTP/$HVER 200" "$XML"
new "Run $app"
expectpart "$(sudo -g ${CLICON_GROUP} $app)" 0 '^42$'
# Extra test for some archs, eg ubuntu 18 that have problems with:
# Sorry, user <user> is not allowed to execute as <user>:clicon on <arch>
sudo -g ${CLICON_GROUP} $clixon_netconf 2> /dev/null
if [ $? -eq 0 ]; then
expectpart "$(sudo -g ${CLICON_GROUP} $app)" 0 '^42$'
else
expectpart "$($app)" 0 '^42$'
fi
if [ $RC -ne 0 ]; then
new "Kill restconf daemon"