create 'journal' system test
tests that version 1 journal files containing version 1 transaction
headers are rolled forward correctly on server startup, then updated
into version 2 journals. also checks journal file consistency and
'max-journal-size' behavior.
(cherry picked from commit a0aefa1de6)
This commit is contained in:
42
bin/tests/system/journal/setup.sh
Normal file
42
bin/tests/system/journal/setup.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
. ../conf.sh
|
||||
|
||||
$SHELL clean.sh
|
||||
|
||||
copy_setports ns1/named.conf.in ns1/named.conf
|
||||
cp ns1/generic.db.in ns1/changed.db
|
||||
cp ns1/changed.ver1.jnl.saved ns1/changed.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/unchanged.db
|
||||
cp ns1/unchanged.ver1.jnl.saved ns1/unchanged.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/changed2.db
|
||||
cp ns1/changed.ver2.jnl.saved ns1/changed2.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/unchanged2.db
|
||||
cp ns1/unchanged.ver2.jnl.saved ns1/unchanged2.db.jnl
|
||||
|
||||
cp ns1/ixfr.db.in ns1/ixfr.db
|
||||
cp ns1/ixfr.ver1.jnl.saved ns1/ixfr.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/d1212.db
|
||||
cp ns1/d1212.jnl.saved ns1/d1212.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/d2121.db
|
||||
cp ns1/d2121.jnl.saved ns1/d2121.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/maxjournal.db
|
||||
cp ns1/maxjournal.jnl.saved ns1/maxjournal.db.jnl
|
||||
|
||||
cp ns1/generic.db.in ns1/maxjournal2.db
|
||||
cp ns1/maxjournal2.jnl.saved ns1/maxjournal2.db.jnl
|
||||
Reference in New Issue
Block a user