tests.sh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
  4. #
  5. # Permission to use, copy, modify, and/or distribute this software for any
  6. # purpose with or without fee is hereby granted, provided that the above
  7. # copyright notice and this permission notice appear in all copies.
  8. #
  9. # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  10. # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  11. # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  12. # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  13. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  14. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. # PERFORMANCE OF THIS SOFTWARE.
  16. # \file
  17. # This script performs the first IXFR-IN test. A BIND 9 nameserver (the
  18. # "server") contains a version of the zone (version N) and two previous
  19. # versions, N-2 and N-4. A BIND 10 nameserver (the "client") is loaded with
  20. # version N-4 of the zone. A NOTIFY is sent to it, and it is expected that
  21. # it will send an IXFR to the server and update itself with the latest version
  22. # of the zone. (The changes are such that the update should be in the form of
  23. # a single UDP packet.)
  24. #
  25. # The pre-requisites for this test are the same as for the common tests, so
  26. # we can execute that directly.
  27. . ../common_tests.sh
  28. status=$?
  29. # TODO: Check the BIND 10 log, looking for the IXFR messages that indicate that
  30. # it has initiated an IXFR and that it received the update within a single
  31. # packet.
  32. echo "I:exit status: $status"
  33. exit $status