tests.sh revision c38341ec435fb78de6d12c1001201f9ac7487b68
#
# Copyright (C) 2004, 2007, 2009, 2012, 2013 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
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 '$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:exit status: $status"
exit $status