conf.sh.in 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
  4. # Copyright (C) 2000-2003 Internet Software Consortium.
  5. #
  6. # Permission to use, copy, modify, and/or distribute this software for any
  7. # purpose with or without fee is hereby granted, provided that the above
  8. # copyright notice and this permission notice appear in all copies.
  9. #
  10. # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  11. # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  12. # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  13. # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  14. # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  15. # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. # PERFORMANCE OF THIS SOFTWARE.
  17. #
  18. # Common configuration data for system tests, to be sourced into
  19. # other shell scripts.
  20. #
  21. # Prerequisite check
  22. if [ @srcdir@ != @builddir@ ]; then
  23. echo "Currently systest doesn't work for a separate build tree."
  24. echo "Rebuild BIND 10 on the source tree and run the tests."
  25. exit 1
  26. fi
  27. if [ -z $BIND9_TOP ]; then
  28. echo "systest assumes there's a compiled tree of BIND 9 which can be"
  29. echo "accessed via the BIND9_TOP environment variable."
  30. echo "Please make sure this assumption is met."
  31. exit 1
  32. fi
  33. # Find the top of the source and test trees.
  34. export TOP=@abs_top_srcdir@
  35. export TEST_TOP=@abs_builddir@
  36. # Programs
  37. export RUN_BIND10=$TOP/src/bin/bind10/run_bind10.sh
  38. export RUN_BINDCTL=$TOP/src/bin/bindctl/run_bindctl.sh
  39. export BINDCTL_CSV_DIR=@abs_srcdir@/common/
  40. export B10_LOADZONE=$TOP/src/bin/loadzone/run_loadzone.sh
  41. export BIND9_NAMED=$BIND9_TOP/bin/named/named
  42. export DIG=$BIND9_TOP/bin/dig/dig
  43. export RNDC=$BIND9_TOP/bin/rndc/rndc
  44. # Test tools borrowed from BIND 9's system test (without change).
  45. export TESTSOCK=$BIND9_TOP/bin/tests/system/testsock.pl
  46. export DIGCOMP=$BIND9_TOP/bin/tests/system/digcomp.pl
  47. export SUBDIRS="bindctl glue ixfr/in-2"
  48. # Add appropriate subdirectories to the above statement as the tests become
  49. # available.
  50. #SUBDIRS="dnssec masterfile ixfr/in-1 ixfr/in-2 ixfr/in-4"
  51. # PERL will be an empty string if no perl interpreter was found. A similar
  52. # comment applies to AWK.
  53. export PERL=@PERL@
  54. export AWK=@AWK@
  55. # Other constants
  56. export RNDC_PORT=9953
  57. export DNS_PORT=53210
  58. export TESTS_TOP=$TOP/tests
  59. export SYSTEM_TOP=$TESTS_TOP/system
  60. export IXFR_TOP=$SYSTEM_TOP/ixfr