mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Add debug option to the mini_tdir.sh test code.
This commit is contained in:
parent
352e1b28a1
commit
1ceb031b58
2 changed files with 20 additions and 6 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
29 June 2022: Wouter
|
29 June 2022: Wouter
|
||||||
- iana portlist update.
|
- iana portlist update.
|
||||||
|
|
||||||
|
29 June 2022: George
|
||||||
|
- Add debug option to the mini_tdir.sh test code.
|
||||||
|
|
||||||
28 June 2022: George
|
28 June 2022: George
|
||||||
- Show the output of the exact .rpl run that failed with 'make test'.
|
- Show the output of the exact .rpl run that failed with 'make test'.
|
||||||
- Fix for cached 0 TTL records to not trigger prefetching when
|
- Fix for cached 0 TTL records to not trigger prefetching when
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,10 @@ if test "$1" = "-a"; then
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# This will keep the temporary directory around and return 1 when the test failed.
|
||||||
|
DEBUG=0
|
||||||
|
|
||||||
quiet=0
|
quiet=0
|
||||||
if test "$1" = "-q"; then
|
if test "$1" = "-q"; then
|
||||||
quiet=1
|
quiet=1
|
||||||
|
|
@ -184,11 +188,18 @@ echo "DateRunEnd: "`date "+%s" 2>/dev/null` >> $result
|
||||||
|
|
||||||
mv $result ..
|
mv $result ..
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf $dir
|
if test $DEBUG -eq 0; then
|
||||||
# compat for windows where deletion may not succeed initially (files locked
|
rm -rf $dir
|
||||||
# by processes that still have to exit).
|
# compat for windows where deletion may not succeed initially (files locked
|
||||||
if test $? -eq 1; then
|
# by processes that still have to exit).
|
||||||
|
if test $? -eq 1; then
|
||||||
echo "minitdir waiting for processes to terminate"
|
echo "minitdir waiting for processes to terminate"
|
||||||
sleep 2 # some time to exit, and try again
|
sleep 2 # some time to exit, and try again
|
||||||
rm -rf $dir
|
rm -rf $dir
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if test $success == "no"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue