mem test issues with set variables between tests

This commit is contained in:
Olof Hagsand 2020-05-11 14:37:13 +00:00
parent bf04131e54
commit 93a8ddbd7b
6 changed files with 9 additions and 3 deletions

View file

@ -28,8 +28,6 @@ memonce(){
'backend')
valgrindtest=2 # This means backend valgrind test
: ${RCWAIT:=10} # valgrind backend needs some time to get up
perfnr=100 # test_perf.sh restconf put more or less stops
perfreq=10
clixon_backend="/usr/bin/valgrind --num-callers=50 --leak-check=full --show-leak-kinds=all --suppressions=./valgrind-clixon.supp --track-fds=yes --trace-children=yes --log-file=$valgrindfile clixon_backend"
;;

View file

@ -12,6 +12,11 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
: ${clixon_util_path:=clixon_util_path -a -D $DBG}
if [ $nr -lt 2 ] ; then
echo "nr==$nr must be > 1"
exit
fi
# Number of list/leaf-list entries
: ${nr:=100}

View file

@ -14,7 +14,7 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
clixon_util_xpath=clixon_util_xpath
# Number of list/leaf-list entries in file
: ${perfnr:=10000}
: ${perfnr:=1000} # 10000 causes timeout in valgrind test
APPNAME=example

View file

@ -310,3 +310,4 @@ rm -rf $dir
# unset conditional parameters
unset clixon_util_stream
unset nr

View file

@ -321,3 +321,4 @@ stop_backend -f $cfg
rm -rf $dir
unset nr

View file

@ -147,3 +147,4 @@ stop_backend -f $cfg
rm -rf $dir
unset nr