1. 30 Jul, 2020 1 commit
    • Michal Nowak's avatar
      Drop $SYSTEMTESTTOP from bin/tests/system/ · 093af1c0
      Michal Nowak authored
      The $SYSTEMTESTTOP shell variable if often set to .. in various shell
      scripts inside bin/tests/system/, but most of the time it is only
      used one line later, while sourcing conf.sh. This hardly improves
      code readability.
      
      $SYSTEMTESTTOP is also used for the purpose of referencing
      scripts/files living in bin/tests/system/, but given that the
      variable is always set to a short, relative path, we can drop it and
      replace all of its occurrences with the relative path without adversely
      affecting code readability.
      093af1c0
  2. 01 Jul, 2020 1 commit
    • Evan Hunt's avatar
      further tidying of primary/secondary terminology in system tests · e43b3c1f
      Evan Hunt authored
      this changes most visble uses of master/slave terminology in tests.sh
      and most uses of 'type master' or 'type slave' in named.conf files.
      files in the checkconf test were not updated in order to confirm that
      the old syntax still works. rpzrecurse was also left mostly unchanged
      to avoid interference with DNSRPS.
      e43b3c1f
  3. 21 Apr, 2020 1 commit
    • Ondřej Surý's avatar
      Complete rewrite the BIND 9 build system · 978c7b2e
      Ondřej Surý authored
      The rewrite of BIND 9 build system is a large work and cannot be reasonable
      split into separate merge requests.  Addition of the automake has a positive
      effect on the readability and maintainability of the build system as it is more
      declarative, it allows conditional and we are able to drop all of the custom
      make code that BIND 9 developed over the years to overcome the deficiencies of
      autoconf + custom Makefile.in files.
      
      This squashed commit contains following changes:
      
      - conversion (or rather fresh rewrite) of all Makefile.in files to Makefile.am
        by using automake
      
      - the libtool is now properly integrated with automake (the way we used it
        was rather hackish as the only official way how to use libtool is via
        automake
      
      - the dynamic module loading was rewritten from a custom patchwork to libtool's
        libltdl (which includes the patchwork to support module loading on different
        systems internally)
      
      - conversion of the unit test executor from kyua to automake parallel driver
      
      - conversion of the system test executor from custom make/shell to automake
        parallel driver
      
      - The GSSAPI has been refactored, the custom SPNEGO on the basis that
        all major KRB5/GSSAPI (mit-krb5, heimdal and Windows) implementations
        support SPNEGO mechanism.
      
      - The various defunct tests from bin/tests have been removed:
        bin/tests/optional and bin/tests/pkcs11
      
      - The text files generated from the MD files have been removed, the
        MarkDown has been designed to be readable by both humans and computers
      
      - The xsl header is now generated by a simple sed command instead of
        perl helper
      
      - The <irs/platform.h> header has been removed
      
      - cleanups of configure.ac script to make it more simpler, addition of multiple
        macros (there's still work to be done though)
      
      - the tarball can now be prepared with `make dist`
      
      - the system tests are partially able to run in oot build
      
      Here's a list of unfinished work that needs to be completed in subsequent merge
      requests:
      
      - `make distcheck` doesn't yet work (because of system tests oot run is not yet
        finished)
      
      - documentation is not yet built, there's a different merge request with docbook
        to sphinx-build rst conversion that needs to be rebased and adapted on top of
        the automake
      
      - msvc build is non functional yet and we need to decide whether we will just
        cross-compile bind9 using mingw-w64 or fix the msvc build
      
      - contributed dlz modules are not included neither in the autoconf nor automake
      978c7b2e
  4. 08 Aug, 2019 1 commit
  5. 17 Jul, 2018 2 commits
  6. 27 Feb, 2018 1 commit
    • Evan Hunt's avatar
      clean up test output · 0e52fbd0
      Evan Hunt authored
      - removed a few remaing places where output wasn't being passed
        through echo_i or cat_i
      - added a "digcomp" function to conf.sh.in to send digcomp.pl output
        through cat_i and return the correct exit value
      - set SYSTESTDIR when calling echo_i from nsX directories, so that
        the test name will always be printed correctly
      - fixed a test name typo in conf.sh.in
      0e52fbd0
  7. 23 Feb, 2018 2 commits
  8. 22 Feb, 2018 3 commits
  9. 20 Feb, 2018 4 commits
    • Michał Kępień's avatar
      Improve the way cache contents are searched for "ns.flushtest.example" · ca1049b2
      Michał Kępień authored
      During the "check flushtree clears adb correctly" check, expecting
      "ns.flushtest.example" to always be the first name in the ADB dump is
      fragile, because in a certain corner case "a.root-servers.nil" will be
      the first name instead.
      
      As the purpose of the relevant check is to ensure "ns.flushtest.example"
      is removed from ADB by "rndc flushtree flushtest.example", search the
      entire list of names present in ADB instead of just the first entry when
      looking for "ns.flushtest.example".
      ca1049b2
    • Michał Kępień's avatar
      Wait until a cache dump completes instead of waiting for a fixed amount of time · 2bbff06d
      Michał Kępień authored
      Dumping the cache is an asynchronous operation, so sleeping for a fixed
      amount of time after running "rndc dumpdb" is imperfect as dumping cache
      contents may take longer than expected on slower machines.  Instead of
      always sleeping for 1 second, wait until the "; Dump complete" line
      appears in the dump or 10 seconds pass, whichever comes first.
      2bbff06d
    • Michał Kępień's avatar
      Do not overwrite cache dumps · aeea1faf
      Michał Kępień authored
      Unless configured otherwise in named.conf, "rndc dumpdb" causes a cache
      dump to be written to a file called "named_dump.db" in the working
      directory of the given named instance.  Repeatedly using this command
      throughout different checks in the cacheclean system test causes cache
      dumps for older checks to be overwritten, which hinders failure
      diagnosis.  Prevent this by moving each cache dump to a check-specific
      location after running "rndc dumpdb".
      
      Furthermore, during the "check flushtree clears adb correctly" check,
      dump_cache() is called twice without renaming the resulting files.
      Prevent the first cache dump from being overwritten by moving it to a
      different file before calling "rndc dumpdb" for the second time.
      aeea1faf
    • Michał Kępień's avatar
      Assign an index to each check in the cacheclean system test · 01de79b3
      Michał Kępień authored
      This will enable storing per-check forensic data, which facilitates
      troubleshooting test failures.
      01de79b3
  10. 29 Aug, 2016 1 commit
    • Evan Hunt's avatar
      [master] fix tcp client memory leak · a26a62ce
      Evan Hunt authored
      4459.	[bug]		TCP client objects created to handle pipeline queries
      			were not cleaned up correctly, causing uncontrolled
      			memory growth. [RT #43106]
      a26a62ce
  11. 11 Aug, 2016 1 commit
  12. 27 Jun, 2016 1 commit
  13. 14 Jun, 2016 1 commit
  14. 24 Mar, 2016 2 commits
  15. 20 Feb, 2014 2 commits
  16. 13 Nov, 2013 1 commit
  17. 06 Nov, 2013 1 commit
  18. 05 Sep, 2013 1 commit
  19. 01 Jul, 2013 2 commits
  20. 26 Jun, 2013 1 commit
    • Evan Hunt's avatar
      [master] "rndc flushtree -all <name>" · 9fa5a723
      Evan Hunt authored
      3606.	[func]		"rndc flushtree -all" flushes matching
      			records in the ADB and bad cache as well as
      			the DNS cache.  (Without the "-all" option,
      			flushtree will still only flush records from
      			the DNS cache.) [RT #33970]
      9fa5a723
  21. 17 Jun, 2013 1 commit
  22. 13 Jun, 2013 1 commit
  23. 12 Jun, 2013 1 commit
  24. 29 Jun, 2012 2 commits
  25. 14 Mar, 2012 2 commits
  26. 01 Sep, 2011 1 commit
  27. 29 Aug, 2011 1 commit
  28. 23 Aug, 2011 1 commit