mem test issues with set variables between tests
This commit is contained in:
parent
bf04131e54
commit
93a8ddbd7b
6 changed files with 9 additions and 3 deletions
|
|
@ -28,8 +28,6 @@ memonce(){
|
||||||
'backend')
|
'backend')
|
||||||
valgrindtest=2 # This means backend valgrind test
|
valgrindtest=2 # This means backend valgrind test
|
||||||
: ${RCWAIT:=10} # valgrind backend needs some time to get up
|
: ${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"
|
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"
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -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}
|
: ${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
|
# Number of list/leaf-list entries
|
||||||
: ${nr:=100}
|
: ${nr:=100}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||||
clixon_util_xpath=clixon_util_xpath
|
clixon_util_xpath=clixon_util_xpath
|
||||||
|
|
||||||
# Number of list/leaf-list entries in file
|
# Number of list/leaf-list entries in file
|
||||||
: ${perfnr:=10000}
|
: ${perfnr:=1000} # 10000 causes timeout in valgrind test
|
||||||
|
|
||||||
APPNAME=example
|
APPNAME=example
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -310,3 +310,4 @@ rm -rf $dir
|
||||||
|
|
||||||
# unset conditional parameters
|
# unset conditional parameters
|
||||||
unset clixon_util_stream
|
unset clixon_util_stream
|
||||||
|
unset nr
|
||||||
|
|
|
||||||
|
|
@ -321,3 +321,4 @@ stop_backend -f $cfg
|
||||||
|
|
||||||
rm -rf $dir
|
rm -rf $dir
|
||||||
|
|
||||||
|
unset nr
|
||||||
|
|
|
||||||
|
|
@ -147,3 +147,4 @@ stop_backend -f $cfg
|
||||||
|
|
||||||
rm -rf $dir
|
rm -rf $dir
|
||||||
|
|
||||||
|
unset nr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue