mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Check journal compaction
This commit is contained in:
@@ -14,3 +14,4 @@ rm -f */named.run
|
||||
rm -f dig.out*
|
||||
rm -f journalprint.out.*
|
||||
rm -f ns1/managed-keys.bind
|
||||
rm -f tmp.jnl
|
||||
|
@@ -156,6 +156,32 @@ c2=$(cat -v ns1/*.jnl | grep -c "BIND LOG V9.2")
|
||||
[ $ret -eq 0 ] || echo_i "failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "Check that journal with mixed headers can be compacted (version 1,2,1,2) ($n)"
|
||||
ret=0
|
||||
journal=ns1/d1212.jnl.saved
|
||||
seriallist=$($JOURNALPRINT -x $journal | awk '$1 == "Transaction:" { print $11 }')
|
||||
for serial in $seriallist
|
||||
do
|
||||
cp $journal tmp.jnl
|
||||
$JOURNALPRINT -c $serial tmp.jnl || ret=1
|
||||
done
|
||||
[ $ret -eq 0 ] || echo_i "failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "Check that journal with mixed headers can be compacted (version 2,1,2,1) ($n)"
|
||||
ret=0
|
||||
journal=ns1/d2121.jnl.saved
|
||||
seriallist=$($JOURNALPRINT -x $journal | awk '$1 == "Transaction:" { print $11 }')
|
||||
for serial in $seriallist
|
||||
do
|
||||
cp ns1/d1212.jnl.saved tmp.jnl
|
||||
$JOURNALPRINT -c $serial tmp.jnl || ret=1
|
||||
done
|
||||
[ $ret -eq 0 ] || echo_i "failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check upgrade of managed-keys.bind.jnl succeeded($n)"
|
||||
ret=0
|
||||
|
Reference in New Issue
Block a user