mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-21 15:21:05 -05:00
- Fix for uncertain unit test for doh buffer size events.
This commit is contained in:
parent
2cf0359ffe
commit
f9317d65b3
2 changed files with 12 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
directories to sys.path.
|
directories to sys.path.
|
||||||
- Fix #895: python + sysconfig gives ANOTHER path comparing to
|
- Fix #895: python + sysconfig gives ANOTHER path comparing to
|
||||||
distutils.
|
distutils.
|
||||||
|
- Fix for uncertain unit test for doh buffer size events.
|
||||||
|
|
||||||
25 May 2023: Wouter
|
25 May 2023: Wouter
|
||||||
- Fix unbound-dnstap-socket printout when no query is present.
|
- Fix unbound-dnstap-socket printout when no query is present.
|
||||||
|
|
|
||||||
|
|
@ -23,15 +23,26 @@ if test "$?" -ne 0; then
|
||||||
fi
|
fi
|
||||||
num=$(grep "ANSWER SEC" outfile | wc -l)
|
num=$(grep "ANSWER SEC" outfile | wc -l)
|
||||||
# 58 byte answers, 500 byte max response buffer -> 8 answers
|
# 58 byte answers, 500 byte max response buffer -> 8 answers
|
||||||
|
|
||||||
|
# Sometimes unbound is scheduled to be able to respond very quickly,
|
||||||
|
# before all the queries are sent, and then writes some of the queries
|
||||||
|
# back already, emptying the buffer, which then does not overflow.
|
||||||
|
# The attempt is to detect this test flakyness with 'mode w' write lines.
|
||||||
|
nummodew=$(grep "mode w" unbound.log | wc -l)
|
||||||
|
echo "num answers $num and num write events $nummodew"
|
||||||
if [ $num -eq 8 ]; then
|
if [ $num -eq 8 ]; then
|
||||||
echo "content OK"
|
echo "content OK"
|
||||||
else
|
else
|
||||||
|
if [ "(" $num -eq 9 -o $num -eq 10 ")" -a $nummodew -eq 2 ]; then
|
||||||
|
echo "skip buffer emptied event"
|
||||||
|
else
|
||||||
echo "result contents not OK"
|
echo "result contents not OK"
|
||||||
echo "> cat logfiles"
|
echo "> cat logfiles"
|
||||||
cat outfile
|
cat outfile
|
||||||
cat unbound.log
|
cat unbound.log
|
||||||
echo "result contents not OK"
|
echo "result contents not OK"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "OK"
|
echo "OK"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue