conf.sh.in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. TOP=@abs_top_srcdir@
  35. TEST_TOP=@abs_builddir@
  36. RUN_BIND10=$TOP/src/bin/bind10/run_bind10.sh
  37. RUN_BINDCTL=$TOP/src/bin/bindctl/run_bindctl.sh
  38. BINDCTL_CSV_DIR=@abs_srcdir@/common/
  39. B10_LOADZONE=$TOP/src/bin/loadzone/run_loadzone.sh
  40. BIND9_NAMED=$BIND9_TOP/bin/named/named
  41. DIG=$BIND9_TOP/bin/dig/dig
  42. # Test tools borrowed from BIND 9's system test (without change).
  43. TESTSOCK=$BIND9_TOP/bin/tests/system/testsock.pl
  44. DIGCOMP=$BIND9_TOP/bin/tests/system/digcomp.pl
  45. SUBDIRS="bindctl glue"
  46. #SUBDIRS="dnssec masterfile xfer"
  47. # PERL will be an empty string if no perl interpreter was found.
  48. PERL=@PERL@
  49. export RUN_BIND10 BIND9_NAMED DIG SUBDIRS PERL TESTSOCK