Commit fa7ee558 authored by Mark Andrews's avatar Mark Andrews
Browse files

1584. [bug] "make test" failed with a readonly source tree.

                        [RT #10461]
parent 5a680f41
......@@ -7,7 +7,8 @@
1585. [placeholder]
1584. [placeholder] rt10461
1584. [bug] "make test" failed with a readonly source tree.
[RT #10461]
1583. [bug] Records add via UPDATE failed to get the correct trust
level. [RT #10452]
......
......@@ -15,12 +15,13 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.14 2004/03/05 05:00:08 marka Exp $
# $Id: clean.sh,v 1.15 2004/03/10 01:06:04 marka Exp $
rm -f */K* */keyset-* */signedkey-* */*.signed */trusted.conf */tmp*
rm -f ns1/root.db ns2/example.db ns3/secure.example.db
rm -f ns3/unsecure.example.db ns3/bogus.example.db ns3/keyless.example.db
rm -f ns3/dynamic.example.db ns3/dynamic.example.db.signed.jnl
rm -f */example.bk
rm -f dig.out.*
rm -f random.data
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.11 2004/03/05 05:00:09 marka Exp $
# $Id: setup.sh,v 1.12 2004/03/10 01:06:04 marka Exp $
../../genrandom 400 random.data
......@@ -23,4 +23,4 @@ cd ns1 && sh sign.sh
echo "a.bogus.example. A 10.0.0.22" >>../ns3/bogus.example.db.signed
cd ../ns5 && cp trusted.conf.bad trusted.conf
cd ../ns5 && cp -f trusted.conf.bad trusted.conf
......@@ -15,6 +15,6 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.3 2004/03/05 05:00:55 marka Exp $
# $Id: setup.sh,v 1.4 2004/03/10 01:06:04 marka Exp $
cd ns1 && cp cache.in cache
cd ns1 && cp -f cache.in cache
......@@ -15,11 +15,12 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.8 2004/03/05 05:01:39 marka Exp $
# $Id: clean.sh,v 1.9 2004/03/10 01:06:04 marka Exp $
#
# Clean up after zone transfer tests.
#
rm -f ns3/example.bk dig.out.ns2 dig.out.ns3
rm -f ns2/example.db
......@@ -15,6 +15,6 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.7 2004/03/05 05:01:39 marka Exp $
# $Id: setup.sh,v 1.8 2004/03/10 01:06:04 marka Exp $
cp ns2/example1.db ns2/example.db
cp -f ns2/example1.db ns2/example.db
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.30 2004/03/05 05:01:39 marka Exp $
# $Id: tests.sh,v 1.31 2004/03/10 01:06:04 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -33,7 +33,7 @@ grep ";" dig.out.ns3
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
rm -f ns2/example.db
cp ns2/example2.db ns2/example.db
cp -f ns2/example2.db ns2/example.db
kill -HUP `cat ns2/named.pid`
sleep 45
......@@ -53,7 +53,7 @@ $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
$PERL $SYSTEMTESTTOP/stop.pl . ns3
rm -f ns2/example.db
cp ns2/example3.db ns2/example.db
cp -f ns2/example3.db ns2/example.db
kill -HUP `cat ns2/named.pid`
sleep 45
......@@ -72,7 +72,7 @@ $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
$PERL $SYSTEMTESTTOP/stop.pl . ns2
rm -f ns2/example.db
cp ns2/example4.db ns2/example.db
cp -f ns2/example4.db ns2/example.db
$PERL $SYSTEMTESTTOP/start.pl . ns2
......
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.8 2004/03/05 05:01:55 marka Exp $
# $Id: clean.sh,v 1.9 2004/03/10 01:06:05 marka Exp $
#
# Clean up after zone transfer tests.
......@@ -23,6 +23,8 @@
rm -f dig.out.ns1 dig.out.ns2 dig.out.ns1.after ns1/*.jnl ns2/*.jnl \
ns1/example.db ns1/update.db
rm -f ns2/example.bk
rm -f ns2/update.bk
......
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.7 2004/03/05 05:01:55 marka Exp $
# $Id: setup.sh,v 1.8 2004/03/10 01:06:05 marka Exp $
#
# jnl and database files MUST be removed before we start
......@@ -23,7 +23,7 @@
rm -f ns1/*.jnl ns1/example.db ns2/*.jnl ns2/example.bk
cp ns1/example1.db ns1/example.db
cp -f ns1/example1.db ns1/example.db
# update_test.pl has its own zone file because it
# requires a specific NS record set.
......
......@@ -15,6 +15,6 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.3 2004/03/05 05:02:11 marka Exp $
# $Id: setup.sh,v 1.4 2004/03/10 01:06:05 marka Exp $
cp ns2/example1.db ns2/example.db
cp -f ns2/example1.db ns2/example.db
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.4 2004/03/05 05:02:11 marka Exp $
# $Id: tests.sh,v 1.5 2004/03/10 01:06:05 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -39,7 +39,7 @@ $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
$PERL ../digcomp.pl dig.out.ns2 dig.out.ns4 || status=1
rm -f ns2/example.db
cp ns2/example2.db ns2/example.db
cp -f ns2/example2.db ns2/example.db
sleep 6
kill -HUP `cat ns2/named.pid`
sleep 60
......@@ -70,7 +70,7 @@ if [ $? != 0 ]; then
rm -f ns3/named.pid
fi
rm -f ns2/example.db
cp ns2/example3.db ns2/example.db
cp -f ns2/example3.db ns2/example.db
sleep 6
if [ -f ns3/named.pid ]; then
......@@ -118,7 +118,7 @@ if [ -f ns2/named.pid ]; then
status=1
fi
cp ns2/example4.db ns2/example.db
cp -f ns2/example4.db ns2/example.db
sleep 6
(cd ns2 ; $NAMED -c named.conf -d 99 -g >> named.run 2>&1 & )
sleep 60
......
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.5 2004/03/05 05:03:24 marka Exp $
# $Id: setup.sh,v 1.6 2004/03/10 01:06:05 marka Exp $
cp ns1/example1.db ns1/example.db
cp -f ns1/example1.db ns1/example.db
rm -f ns1/example.db.jnl ns2/example.bk ns2/example.bk.jnl
......@@ -15,11 +15,12 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.8 2004/03/05 05:03:43 marka Exp $
# $Id: clean.sh,v 1.9 2004/03/10 01:06:06 marka Exp $
#
# Clean up after zone transfer tests.
#
rm -f ns3/example.bk dig.out.ns2 dig.out.ns3
rm -f ns2/named.conf ns2/example.db ns3/named.conf ns3/internal.bk
......@@ -15,9 +15,9 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.7 2004/03/05 05:03:43 marka Exp $
# $Id: setup.sh,v 1.8 2004/03/10 01:06:06 marka Exp $
cp ns2/example1.db ns2/example.db
cp ns2/named1.conf ns2/named.conf
cp ns3/named1.conf ns3/named.conf
cp -f ns2/example1.db ns2/example.db
cp -f ns2/named1.conf ns2/named.conf
cp -f ns3/named1.conf ns3/named.conf
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.27 2004/03/05 05:03:43 marka Exp $
# $Id: tests.sh,v 1.28 2004/03/10 01:06:06 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -34,9 +34,9 @@ grep ";" dig.out.ns3.1 # XXXDCL why is this here?
echo "I:copying in new configurations for ns2 and ns3"
rm -f ns2/named.conf ns3/named.conf ns2/example.db
cp ns2/named2.conf ns2/named.conf
cp ns3/named2.conf ns3/named.conf
cp ns2/example2.db ns2/example.db
cp -f ns2/named2.conf ns2/named.conf
cp -f ns3/named2.conf ns3/named.conf
cp -f ns2/example2.db ns2/example.db
echo "I:reloading ns2 and ns3 with rndc"
$RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 reload 2>&1 | sed 's/^/I:ns2 /'
......
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: clean.sh,v 1.9 2004/03/05 05:04:03 marka Exp $
# $Id: clean.sh,v 1.10 2004/03/10 01:06:06 marka Exp $
#
# Clean up after zone transfer quota tests.
......@@ -23,5 +23,4 @@
rm -f ns1/zone*.example.db ns1/zones.conf
rm -f ns2/zone*.example.bk ns2/zones.conf
rm -f dig.out.*
rm -f dig.out.* ns2/changing.bk
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: setup.sh,v 1.12 2004/03/05 05:04:04 marka Exp $
# $Id: setup.sh,v 1.13 2004/03/10 01:06:06 marka Exp $
#
# Set up test data for zone transfer quota tests.
......@@ -23,4 +23,4 @@
$PERL setup.pl
cp ns1/changing1.db ns1/changing.db
cp -f ns1/changing1.db ns1/changing.db
......@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.21 2004/03/05 05:04:04 marka Exp $
# $Id: tests.sh,v 1.22 2004/03/10 01:06:06 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
......@@ -29,7 +29,7 @@ ticks=0
while [ $count != 300 ]; do
if [ $ticks = 1 ]; then
echo "I:Changing test zone..."
cp ns1/changing2.db ns1/changing.db
cp -f ns1/changing2.db ns1/changing.db
kill -HUP `cat ns1/named.pid`
fi
sleep 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment