tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2004, 2007, 2009, 2012-2016 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 http://mozilla.org/MPL/2.0/.
status=0
#
echo "I: checking that we detect a NS which refers to a CNAME"
then
else
then
:
else
fi
fi
#
echo "I: checking that we detect a NS which is below a DNAME"
then
else
then
:
else
fi
fi
#
then
else
then
:
else
fi
fi
#
echo "I: checking that we detect a NS which has no records"
then
else
then
:
else
fi
fi
#
echo "I: checking that we detect a NS which looks like a A record (fail)"
then
else
then
:
else
fi
fi
#
echo "I: checking that we detect a NS which looks like a A record (warn=default)"
then
then
:
else
fi
else
fi
#
echo "I: checking that we detect a NS which looks like a A record (ignore)"
then
then
else
:
fi
else
fi
#
echo "I: checking that we detect a NS which looks like a AAAA record (fail)"
then
else
then
:
else
fi
fi
#
echo "I: checking that we detect a NS which looks like a AAAA record (warn=default)"
then
then
:
else
fi
else
fi
#
echo "I: checking that we detect a NS which looks like a AAAA record (ignore)"
then
then
else
:
fi
else
fi
#
echo "I: checking 'rdnc zonestatus' output"
ret=0
do
sleep 1
done
ret=1;
echo "I: missing string '$1' from '$2'"
}
}
do
sleep 1
done
do
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus reload.example > rndc.out.prereload 2>&1
sleep 1
done
do
sleep 1
done
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus reload.example > rndc.out.postreload 2>&1
sleep 1
do
sleep 1
done
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus reload.example > rndc.out.removeinclude 2>&1
echo "I: checking 'rdnc zonestatus' with duplicated zone name"
ret=0
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus duplicate.example > rndc.out.duplicate 2>&1
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus duplicate.example in primary > rndc.out.duplicate 2>&1
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus nosuchzone.example > rndc.out.duplicate 2>&1
echo "I: checking 'rdnc zonestatus' with big serial value"
ret=0
$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 zonestatus bigserial.example > rndc.out.bigserial 2>&1
echo "I:exit status: $status"