]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoUse SO_REUSEPORT only on Linux, use SO_REUSEPORT_LB on FreeBSD
Ondřej Surý [Wed, 15 Apr 2020 05:33:44 +0000 (07:33 +0200)] 
Use SO_REUSEPORT only on Linux, use SO_REUSEPORT_LB on FreeBSD

The SO_REUSEPORT socket option on Linux means something else on BSD
based systems.  On FreeBSD there's 1:1 option SO_REUSEPORT_LB, so we can
use that.

6 years agoMerge branch '1795-make-dnstap-work-reliably-with-netmgr' into 'master'
Ondřej Surý [Fri, 1 May 2020 13:18:32 +0000 (13:18 +0000)] 
Merge branch '1795-make-dnstap-work-reliably-with-netmgr' into 'master'

Make dnstap work reliably with netmgr

Closes #1795

See merge request isc-projects/bind9!3431

6 years agoAdd CHANGES entry
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Add CHANGES entry

6 years agoAdd a release note
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Add a release note

6 years agoMake dnstap work reliably with netmgr
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Make dnstap work reliably with netmgr

The introduction of netmgr doubled the number of threads from which
dnstap data may be logged: previously, it could only happen from within
taskmgr worker threads; with netmgr, it can happen both from taskmgr
worker threads and from network threads.  Since the argument passed to
fstrm_iothr_options_set_num_input_queues() was not updated to reflect
this change, some calls to fstrm_iothr_get_input_queue() can now return
NULL, effectively preventing some dnstap data from being logged.
Whether this bug is triggered or not depends on thread scheduling order
and packet distribution between network threads, but will almost
certainly be triggered on any recursive resolver sooner or later.  Fix
by requesting the correct number of dnstap input queues to be allocated.

6 years agoMerge branch '1763-ossl-eddsa-engine' into 'master'
Ondřej Surý [Fri, 1 May 2020 12:12:12 +0000 (12:12 +0000)] 
Merge branch '1763-ossl-eddsa-engine' into 'master'

Add engine support to OpenSSL EdDSA implementation

Closes #1763

See merge request isc-projects/bind9!3479

6 years agoAdd release notes for #1763
Ondřej Surý [Fri, 1 May 2020 10:51:43 +0000 (12:51 +0200)] 
Add release notes for #1763

6 years agoAdd CHANGES note for #1763
Ondřej Surý [Fri, 1 May 2020 10:50:05 +0000 (12:50 +0200)] 
Add CHANGES note for #1763

6 years agoAdd engine support to OpenSSL EdDSA implementation.
Aaron Thompson [Wed, 25 Mar 2020 21:10:57 +0000 (21:10 +0000)] 
Add engine support to OpenSSL EdDSA implementation.

6 years agoUse OpenSSL raw key functions for EdDSA keys.
Aaron Thompson [Fri, 10 Apr 2020 00:02:35 +0000 (00:02 +0000)] 
Use OpenSSL raw key functions for EdDSA keys.

6 years agoMerge branch 'ondrej/revert---restart-to---restart_server-rename' into 'master'
Ondřej Surý [Fri, 1 May 2020 12:03:22 +0000 (12:03 +0000)] 
Merge branch 'ondrej/revert---restart-to---restart_server-rename' into 'master'

Revert the --restart -> --restart_server rename

See merge request isc-projects/bind9!3481

6 years agoRevert the --restart -> --restart_server rename
Ondřej Surý [Fri, 1 May 2020 12:01:47 +0000 (14:01 +0200)] 
Revert the --restart -> --restart_server rename

6 years agoMerge branch 'ondrej/fix-system-tests-on-openbsd' into 'master'
Ondřej Surý [Fri, 1 May 2020 11:42:36 +0000 (11:42 +0000)] 
Merge branch 'ondrej/fix-system-tests-on-openbsd' into 'master'

Fix system tests on openbsd

See merge request isc-projects/bind9!3477

6 years agoRename start() and stop() to start_server() and stop_server()
Ondřej Surý [Fri, 1 May 2020 08:14:21 +0000 (10:14 +0200)] 
Rename start() and stop() to start_server() and stop_server()

On OpenBSD, there's non-POSIX alias from stop to kill that breaks
the conf.sh.common script.

6 years agoChange the 'date -R' to sort-of iso-8601 emulated time
Ondřej Surý [Fri, 1 May 2020 08:04:38 +0000 (10:04 +0200)] 
Change the 'date -R' to sort-of iso-8601 emulated time

6 years agoMerge branch '1534-add-ecdsa-openssl-pkcs11-engine-support-notes' into 'master'
Ondřej Surý [Fri, 1 May 2020 10:49:09 +0000 (10:49 +0000)] 
Merge branch '1534-add-ecdsa-openssl-pkcs11-engine-support-notes' into 'master'

Add CHANGES and Release Notes for OpenSSL engine ECDSA implementation

Closes #1534

See merge request isc-projects/bind9!3480

6 years agoAdd release note for GL #1534
Ondřej Surý [Fri, 1 May 2020 09:03:34 +0000 (11:03 +0200)] 
Add release note for GL #1534

6 years agoAdd CHANGES note for GL #1534
Ondřej Surý [Fri, 1 May 2020 08:59:02 +0000 (10:59 +0200)] 
Add CHANGES note for GL #1534

6 years agoMerge branch '1534-add-ecdsa-openssl-pkcs11-engine-support' into 'master'
Ondřej Surý [Fri, 1 May 2020 10:47:04 +0000 (10:47 +0000)] 
Merge branch '1534-add-ecdsa-openssl-pkcs11-engine-support' into 'master'

Add engine support to OpenSSL ECDSA implementation

Closes #1534

See merge request isc-projects/bind9!3029

6 years agoSimplify error handling
Ondřej Surý [Fri, 7 Feb 2020 13:21:29 +0000 (14:21 +0100)] 
Simplify error handling

6 years agoAdd initial support for ECDSA keys via OpenSSL PKCS#11 engine
Ondřej Surý [Fri, 7 Feb 2020 13:20:54 +0000 (14:20 +0100)] 
Add initial support for ECDSA keys via OpenSSL PKCS#11 engine

6 years agoMerge branch 'marka-add-release-note' into 'master'
Mark Andrews [Fri, 1 May 2020 08:18:12 +0000 (08:18 +0000)] 
Merge branch 'marka-add-release-note' into 'master'

add release note for [GL #1674]

See merge request isc-projects/bind9!3475

6 years agoadd release note for [GL #1674]
Mark Andrews [Fri, 1 May 2020 07:19:13 +0000 (17:19 +1000)] 
add release note for [GL #1674]

6 years agoMerge branch 'michal/update-release-checklist' into 'master'
Michał Kępień [Fri, 1 May 2020 06:07:59 +0000 (06:07 +0000)] 
Merge branch 'michal/update-release-checklist' into 'master'

Update release checklist (various process tweaks)

See merge request isc-projects/bind9!3446

6 years agoUpdate release checklist (various process tweaks)
Michał Kępień [Fri, 1 May 2020 06:07:09 +0000 (08:07 +0200)] 
Update release checklist (various process tweaks)

Ensure the release checklist reflects our current release process:

  - add an additional deadline for introducing code changes ("code
    freeze"); only test and documentation tweaks can be applied to
    pending releases after this deadline passes,

  - notify Support and Marketing about an impending release earlier in
    the process so that they have time to schedule a release note review
    before the tagging deadline,

  - examine current test results on all platforms in advance, to prevent
    diagnosing and addressing test failures in the last minute before
    the tagging deadline,

  - check Perflab results earlier in the process to leave some room for
    addressing any potential problems before code freeze,

  - ensure empty release notes for the next set of releases are prepared
    after public release.

6 years agoMerge branch 'ondrej/fix-typo-in-run.sh' into 'master'
Ondřej Surý [Fri, 1 May 2020 06:05:38 +0000 (06:05 +0000)] 
Merge branch 'ondrej/fix-typo-in-run.sh' into 'master'

Fix another the start_fail -> start_servers_failed typo

See merge request isc-projects/bind9!3473

6 years agoFix another the start_fail -> start_servers_failed typo
Ondřej Surý [Fri, 1 May 2020 06:04:20 +0000 (08:04 +0200)] 
Fix another the start_fail -> start_servers_failed typo

6 years agoMerge branch 'each-cleanup-config-summary' into 'master'
Evan Hunt [Fri, 1 May 2020 02:19:06 +0000 (02:19 +0000)] 
Merge branch 'each-cleanup-config-summary' into 'master'

fix incorrect output from the configuration summary

Closes #1738

See merge request isc-projects/bind9!3426

6 years agofixed incorrect output from the configuration summary
Evan Hunt [Thu, 23 Apr 2020 21:29:07 +0000 (14:29 -0700)] 
fixed incorrect output from the configuration summary

6 years agoMerge branch '1695-addzone-system-tests-failing-in-mac-os-x' into 'master'
Mark Andrews [Thu, 30 Apr 2020 23:08:35 +0000 (23:08 +0000)] 
Merge branch '1695-addzone-system-tests-failing-in-mac-os-x' into 'master'

Resolve "addzone system tests failing in Mac OS X"

Closes #1695

See merge request isc-projects/bind9!3274

6 years agoAdd CHANGES entry
Mark Andrews [Mon, 6 Apr 2020 00:33:02 +0000 (10:33 +1000)] 
Add CHANGES entry

6 years agoMimic nzf_append from bin/named/server.c
Mark Andrews [Mon, 23 Mar 2020 02:27:37 +0000 (13:27 +1100)] 
Mimic nzf_append from bin/named/server.c

nzf_append is conditionally compiled and this is intended to
catch error introduced by changes to the called functions on all
systems before the changes are run through the CI.

6 years agoAdd jobs for 'configure --with{out}-lmdb' to the GitLab CI
Mark Andrews [Mon, 23 Mar 2020 01:04:30 +0000 (12:04 +1100)] 
Add jobs for 'configure --with{out}-lmdb' to the GitLab CI

We missed a case where LMDB was not installed/used in the build
and that broke system tests on such systems.

6 years agoAdd more special zones to addzone restart test.
Mark Andrews [Mon, 23 Mar 2020 00:22:48 +0000 (11:22 +1100)] 
Add more special zones to addzone restart test.

Test zones with various escape sequences and filesystem seperator
characters.
* escaped double quote (\")
* escaped escape (\\)
* escaped decimal byte value (\032)
* slash seperator (/)

6 years agoEscape double quote when printing quoted string.
Mark Andrews [Sun, 22 Mar 2020 23:28:33 +0000 (10:28 +1100)] 
Escape double quote when printing quoted string.

When we were printing quoted string, the double quotes where unescaped
leading to prematurely ending the quoted string.

6 years agoMerge branch '1648-native-pkcs11-eddsa' into 'master'
Ondřej Surý [Thu, 30 Apr 2020 17:53:08 +0000 (17:53 +0000)] 
Merge branch '1648-native-pkcs11-eddsa' into 'master'

Resolve "Fix PKCS#11-based EdDSA support"

Closes #1648

See merge request isc-projects/bind9!3467

6 years agoFixup the start_fail -> start_servers_failed typo
Ondřej Surý [Thu, 30 Apr 2020 16:35:25 +0000 (18:35 +0200)] 
Fixup the start_fail -> start_servers_failed typo

6 years agoAdd release notes
Ondřej Surý [Mon, 20 Apr 2020 10:05:49 +0000 (12:05 +0200)] 
Add release notes

6 years agoAdd CHANGES
Ondřej Surý [Mon, 20 Apr 2020 10:02:55 +0000 (12:02 +0200)] 
Add CHANGES

6 years agoFix the check for non-operational algs 15 and 16 in PKCS#11
Ondřej Surý [Thu, 30 Apr 2020 13:26:27 +0000 (15:26 +0200)] 
Fix the check for non-operational algs 15 and 16 in PKCS#11

6 years agoFail running run.sh when clean.sh or setup.sh fails
Ondřej Surý [Thu, 30 Apr 2020 12:53:55 +0000 (14:53 +0200)] 
Fail running run.sh when clean.sh or setup.sh fails

6 years agoRefactor the pkcs11 to test for individual algorithms
Ondřej Surý [Thu, 30 Apr 2020 12:53:40 +0000 (14:53 +0200)] 
Refactor the pkcs11 to test for individual algorithms

6 years agoUpdate EdDSA implementation to PKCS#11 v3.0.
Aaron Thompson [Sun, 29 Mar 2020 06:04:08 +0000 (06:04 +0000)] 
Update EdDSA implementation to PKCS#11 v3.0.

Per Current Mechanisms 2.3.5, the curve name is DER-encoded in the
EC_PARAMS attribute, and the public key value is DER-encoded in the
EC_POINT attribute.

6 years agoFix EdDSA key sizes (key_size is in bits).
Aaron Thompson [Wed, 25 Mar 2020 21:03:41 +0000 (21:03 +0000)] 
Fix EdDSA key sizes (key_size is in bits).

6 years agoAdd EdDSA algorithms back to dnssec-keyfromlabel help text.
Aaron Thompson [Sun, 29 Mar 2020 08:54:43 +0000 (08:54 +0000)] 
Add EdDSA algorithms back to dnssec-keyfromlabel help text.

Regressed in 45afdb267253e7178267d696b8b4488ec1d67d47.

6 years agoMerge branch '1797-libuv-1-37-requires-uv_init_ex-to-be-used-for-mmsg' into 'master'
Ondřej Surý [Thu, 30 Apr 2020 16:40:06 +0000 (16:40 +0000)] 
Merge branch '1797-libuv-1-37-requires-uv_init_ex-to-be-used-for-mmsg' into 'master'

Use UV_UDP_RECVMMSG to enable mmsg support in libuv if available

Closes #1797

See merge request isc-projects/bind9!3433

6 years agoCHANGES note
Witold Kręcicki [Thu, 30 Apr 2020 08:23:34 +0000 (10:23 +0200)] 
CHANGES note

6 years agoDon't free udp recv buffer if UV_UDP_MMSG_CHUNK is set
Witold Kręcicki [Wed, 29 Apr 2020 13:19:32 +0000 (15:19 +0200)] 
Don't free udp recv buffer if UV_UDP_MMSG_CHUNK is set

6 years agoUse UV_UDP_RECVMMSG to enable mmsg support in libuv if available
Ondřej Surý [Mon, 27 Apr 2020 16:57:07 +0000 (18:57 +0200)] 
Use UV_UDP_RECVMMSG to enable mmsg support in libuv if available

6 years agoMerge branch 'ondrej/fix-asan-build' into 'master'
Ondřej Surý [Thu, 30 Apr 2020 15:29:13 +0000 (15:29 +0000)] 
Merge branch 'ondrej/fix-asan-build' into 'master'

As libltdl is convenience library, link it just into libisc

See merge request isc-projects/bind9!3465

6 years agoAs libltdl is convenience library, link it just into libisc
Ondřej Surý [Thu, 30 Apr 2020 13:33:44 +0000 (15:33 +0200)] 
As libltdl is convenience library, link it just into libisc

6 years agoMerge branch 'matthijs-make-check-missing-tests' into 'master'
Ondřej Surý [Thu, 30 Apr 2020 13:30:07 +0000 (13:30 +0000)] 
Merge branch 'matthijs-make-check-missing-tests' into 'master'

make check: add missing tests

See merge request isc-projects/bind9!3460

6 years agofixup! Add missing system test in Makefile
Matthijs Mekking [Thu, 30 Apr 2020 10:09:05 +0000 (12:09 +0200)] 
fixup! Add missing system test in Makefile

6 years agoConditionally re-add pkcs11 system test
Ondřej Surý [Thu, 30 Apr 2020 07:43:48 +0000 (09:43 +0200)] 
Conditionally re-add pkcs11 system test

6 years agoUpdate run system test doc
Matthijs Mekking [Thu, 30 Apr 2020 07:33:07 +0000 (09:33 +0200)] 
Update run system test doc

6 years agoAdd missing system test in Makefile
Matthijs Mekking [Thu, 30 Apr 2020 07:28:21 +0000 (09:28 +0200)] 
Add missing system test in Makefile

Add the missing tests in the Makefile (include-multiplecfg kasp
pkcs11 ttl).  Also put them in alphabetical order.

6 years agoMerge branch '1806-system-and-unit-clang-asan-have-incorrect-needs' into 'master'
Mark Andrews [Thu, 30 Apr 2020 07:41:20 +0000 (07:41 +0000)] 
Merge branch '1806-system-and-unit-clang-asan-have-incorrect-needs' into 'master'

Resolve "system and unit clang:asan have incorrect needs"

Closes #1806

See merge request isc-projects/bind9!3457

6 years agoIncorrect job in needs, gcc:asan -> clang:asan
Mark Andrews [Thu, 30 Apr 2020 07:12:00 +0000 (17:12 +1000)] 
Incorrect job in needs, gcc:asan -> clang:asan

6 years agoMerge branch '1804-util-parse_tsan-py-is-not-pylint-clean' into 'master'
Mark Andrews [Thu, 30 Apr 2020 07:28:37 +0000 (07:28 +0000)] 
Merge branch '1804-util-parse_tsan-py-is-not-pylint-clean' into 'master'

Resolve "util/parse_tsan.py is not pylint clean"

Closes #1804

See merge request isc-projects/bind9!3456

6 years agopylint cleanups
Mark Andrews [Wed, 29 Apr 2020 04:33:10 +0000 (14:33 +1000)] 
pylint cleanups

6 years agoMerge branch 'placeholder' into 'master'
Evan Hunt [Thu, 30 Apr 2020 06:25:30 +0000 (06:25 +0000)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!3455

6 years agoplaceholder
Evan Hunt [Thu, 30 Apr 2020 06:24:40 +0000 (23:24 -0700)] 
placeholder

6 years agoMerge branch '1777-update-the-build-instructions-for-automake' into 'master'
Mark Andrews [Thu, 30 Apr 2020 01:44:07 +0000 (01:44 +0000)] 
Merge branch '1777-update-the-build-instructions-for-automake' into 'master'

Resolve "Update the build instructions for automake"

Closes #1777

See merge request isc-projects/bind9!3428

6 years agoupdate CHANGES entry
Mark Andrews [Mon, 27 Apr 2020 05:03:23 +0000 (15:03 +1000)] 
update CHANGES entry

6 years agoupdate release note
Mark Andrews [Mon, 27 Apr 2020 05:01:41 +0000 (15:01 +1000)] 
update release note

6 years agoAdd requirements to build from the repository
Mark Andrews [Fri, 24 Apr 2020 02:28:59 +0000 (12:28 +1000)] 
Add requirements to build from the repository

6 years agoMerge branch '1783-ax_check_compile_flag-fno-delete-null-pointer-checks-does-not...
Ondřej Surý [Wed, 29 Apr 2020 16:16:41 +0000 (16:16 +0000)] 
Merge branch '1783-ax_check_compile_flag-fno-delete-null-pointer-checks-does-not-fail-for-clang' into 'master'

Resolve "AX_CHECK_COMPILE_FLAG -fno-delete-null-pointer-checks does not fail for clang"

Closes #1783

See merge request isc-projects/bind9!3413

6 years agoForce test for -fno-delete-null-pointer-checks to fail
Mark Andrews [Wed, 22 Apr 2020 03:02:18 +0000 (13:02 +1000)] 
Force test for -fno-delete-null-pointer-checks to fail

6 years agoMerge branch 'ondrej/fix-asan-symbolizer' into 'master'
Ondřej Surý [Wed, 29 Apr 2020 15:01:32 +0000 (15:01 +0000)] 
Merge branch 'ondrej/fix-asan-symbolizer' into 'master'

Fix the ASAN symbolizer

See merge request isc-projects/bind9!3450

6 years agoFix the ASAN symbolizer
Ondřej Surý [Wed, 29 Apr 2020 13:26:36 +0000 (15:26 +0200)] 
Fix the ASAN symbolizer

6 years agoMerge branch '725-prepare-system-tests-for-pytest' into 'master'
Ondřej Surý [Wed, 29 Apr 2020 09:51:30 +0000 (09:51 +0000)] 
Merge branch '725-prepare-system-tests-for-pytest' into 'master'

Add a pytest runner to run.sh

Closes #725

See merge request isc-projects/bind9!3445

6 years agoAdd a pytest runner to run.sh
Ondřej Surý [Fri, 27 Mar 2020 12:23:24 +0000 (13:23 +0100)] 
Add a pytest runner to run.sh

The system tests currently uses patchwork of shell scripts which doesn't
offer proper error handling.

This commit introduced option to write new tests in pytest framework
that also allows easier manipulation of DNS traffic (using dnspython),
native XML and JSON manipulation and proper error reporting.

6 years agoMerge branch '1090-fix-unable-to-set-effective-uid-to-0-fixup' into 'master'
Ondřej Surý [Tue, 28 Apr 2020 16:52:21 +0000 (16:52 +0000)] 
Merge branch '1090-fix-unable-to-set-effective-uid-to-0-fixup' into 'master'

Hide setperms when not in use

Closes #1090

See merge request isc-projects/bind9!3443

6 years agoHide setperms when not in use
Ondřej Surý [Tue, 28 Apr 2020 15:33:57 +0000 (17:33 +0200)] 
Hide setperms when not in use

6 years agoMerge branch '1090-fix-unable-to-set-effective-uid-to-0' into 'master'
Ondřej Surý [Tue, 28 Apr 2020 14:25:55 +0000 (14:25 +0000)] 
Merge branch '1090-fix-unable-to-set-effective-uid-to-0' into 'master'

Resolve "BIND 9.14: unable to set effective uid to 0"

Closes #1090 and #1042

See merge request isc-projects/bind9!3432

6 years agoAdd release notes for GL #1042, #1090
Ondřej Surý [Mon, 27 Apr 2020 14:27:05 +0000 (16:27 +0200)] 
Add release notes for GL #1042, #1090

6 years agoAdd CHANGES for #1042, #1090
Ondřej Surý [Mon, 27 Apr 2020 14:23:07 +0000 (16:23 +0200)] 
Add CHANGES for #1042, #1090

6 years agoPropagate first_time to named_os_openfile in generate_session_key.
Mark Andrews [Mon, 27 Apr 2020 22:13:02 +0000 (08:13 +1000)] 
Propagate first_time to named_os_openfile in generate_session_key.

named_os_openfile was being called with switch_user set to true
unconditionally leading to log messages about being unable to
switch user identity from named when regenerating the key.

6 years agoDon't change effective uid when we already dropped privileges
Ondřej Surý [Mon, 27 Apr 2020 13:58:45 +0000 (15:58 +0200)] 
Don't change effective uid when we already dropped privileges

When running on Linux and system capabilities are available, named will
drop the extra capabilities before loading the configuration.  This led
to spurious warnings from `seteuid()` because named already dropped
CAP_SETUID and CAP_GETUID capabilities.

The fix removes setting the effective uid/gid when capabilities are
available, and adds a check that we are running under the user we were
requested to run.

6 years agoMerge branch '1780-fix-system-tests-failing-with-automake' into 'master'
Ondřej Surý [Mon, 27 Apr 2020 14:27:25 +0000 (14:27 +0000)] 
Merge branch '1780-fix-system-tests-failing-with-automake' into 'master'

Properly fail the GitLab CI system test job when any system test fails

Closes #1780

See merge request isc-projects/bind9!3414

6 years agoFix the noinst_LTLIBRARIES -> check_LTLIBRARIES in libisc and libdns unit tests
Ondřej Surý [Mon, 27 Apr 2020 13:18:31 +0000 (15:18 +0200)] 
Fix the noinst_LTLIBRARIES -> check_LTLIBRARIES in libisc and libdns unit tests

6 years agoRestore behaviour of "make test" and "make unit"
Evan Hunt [Thu, 23 Apr 2020 23:22:21 +0000 (16:22 -0700)] 
Restore behaviour of "make test" and "make unit"

Add recursive "test" and "unit" rules, which execute "make check"
in specific directories - "make test" runs the system tests, and
"make unit" runs the unit tests.

6 years agoDisable pylint: 'Constant name dname doesn't conform to UPPER_CASE naming style ...
Ondřej Surý [Mon, 27 Apr 2020 12:15:10 +0000 (14:15 +0200)] 
Disable pylint: 'Constant name dname doesn't conform to UPPER_CASE naming style (invalid-name)'

6 years agoUse absolute path to PYTHON and PERL, so test -x works properly in system tests
Ondřej Surý [Mon, 27 Apr 2020 10:23:44 +0000 (12:23 +0200)] 
Use absolute path to PYTHON and PERL, so test -x works properly in system tests

6 years agoStore the output from yamlget.py into intermediate files for easier debugging
Ondřej Surý [Mon, 27 Apr 2020 09:43:22 +0000 (11:43 +0200)] 
Store the output from yamlget.py into intermediate files for easier debugging

6 years agoRefactor the script that gets/sets the ports for system tests
Ondřej Surý [Mon, 27 Apr 2020 08:47:08 +0000 (10:47 +0200)] 
Refactor the script that gets/sets the ports for system tests

The current script used ephemeral port range which clashed with the
ports used by the tools (dig, ...), and the range always started with
the first port and there was 100 ports allocated for each system test.

In this commit, the first port has been randomized, the get_ports.sh
script outputs the variables (the output has to be eval'ed from run.sh)
and there's less waste in the port range.

6 years agoRun recheck in case some system test fails
Ondřej Surý [Fri, 24 Apr 2020 15:00:39 +0000 (17:00 +0200)] 
Run recheck in case some system test fails

6 years agoColorize the test-driver output by default
Ondřej Surý [Fri, 24 Apr 2020 13:37:36 +0000 (15:37 +0200)] 
Colorize the test-driver output by default

6 years agoImprove the LOG_DRIVER and LOG_COMPILER for the system tests
Ondřej Surý [Fri, 24 Apr 2020 13:29:54 +0000 (15:29 +0200)] 
Improve the LOG_DRIVER and LOG_COMPILER for the system tests

There are several improvements over the default/previous behaviour of
the test log driver and log compiler:

 * The system-test-driver.sh was dropped (it was used incorrectly)
 * The run.sh script is now both log compiler and cli script to run
   individual tests
 * The custom-test-driver was added as extended version of the automake
   test-driver with capability to tee the test output to stdout when
   `--verbose yes` is passed to it (you can use LOG_DRIVER_FLAGS to
   add the option by default)
 * Makefile.am has been extended to honor V=1 for the system tests
   test-driver (e.g. V=1 adds `--verbose yes` to AM_LOG_DRIVER_FLAGS)

6 years agoRemove the requirement for GNU getopt and parse long options using getopts
Ondřej Surý [Fri, 24 Apr 2020 11:34:40 +0000 (13:34 +0200)] 
Remove the requirement for GNU getopt and parse long options using getopts

6 years agoEnsure fstrm_capture is looked for
Michał Kępień [Thu, 23 Apr 2020 06:34:11 +0000 (08:34 +0200)] 
Ensure fstrm_capture is looked for

fstrm_capture is not an essential utility, but its corresponding
Makefile token needs to substituted even if it is not found in PATH or
else the "dnstap" system test will consistently fail.

6 years agoBuild wire_test
Michał Kępień [Thu, 23 Apr 2020 06:07:07 +0000 (08:07 +0200)] 
Build wire_test

The bin/tests/wire_test helper program is currently not included in any
Makefile.am file.  Move its source code to bin/tests/system and build it
along other helper tools when dnstap support is requested as the
"dnstap" system test needs this tool in order to pass.

6 years agoSilence PyYAML warning
Michał Kępień [Thu, 23 Apr 2020 06:07:07 +0000 (08:07 +0200)] 
Silence PyYAML warning

Make yaml.load_all() use yaml.SafeLoader to address a warning currently
emitted when bin/tests/system/dnstap/ydump.py is run:

    ydump.py:28: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
      for l in yaml.load_all(f.stdout):

6 years agoUse $TOP_SRCDIR instead of $TOP of calling prepare-softhsm2 script
Ondřej Surý [Wed, 22 Apr 2020 13:39:45 +0000 (15:39 +0200)] 
Use $TOP_SRCDIR instead of $TOP of calling prepare-softhsm2 script

6 years agoUse $TOP_BUILDDIR instead of $TOP of checking config.h values
Ondřej Surý [Wed, 22 Apr 2020 13:17:45 +0000 (15:17 +0200)] 
Use $TOP_BUILDDIR instead of $TOP of checking config.h values

6 years agoProperly fail the GitLab CI system test job when any system test fails
Ondřej Surý [Wed, 22 Apr 2020 12:58:55 +0000 (14:58 +0200)] 
Properly fail the GitLab CI system test job when any system test fails

6 years agoMerge branch '1758-cleanup-libirs' into 'master'
Ondřej Surý [Fri, 24 Apr 2020 12:02:11 +0000 (12:02 +0000)] 
Merge branch '1758-cleanup-libirs' into 'master'

Cleanup libirs APIs and slim down the library to just irs_resconf

Closes #1758

See merge request isc-projects/bind9!3416

6 years agoAdd CHANGES note for GL #1758
Ondřej Surý [Thu, 23 Apr 2020 09:54:54 +0000 (11:54 +0200)] 
Add CHANGES note for GL #1758

6 years agoCleanup libirs APIs and slim down the library to just irs_resconf
Ondřej Surý [Wed, 22 Apr 2020 22:13:29 +0000 (00:13 +0200)] 
Cleanup libirs APIs and slim down the library to just irs_resconf

The libirs contained own re-implementations of the getaddrinfo,
getnameinfo and gai_strerror + irs_context and irs_dnsconf API that was
unused anywhere in the BIND 9.

Keep just the irs_resonf API that is being extensively used to parse
/etc/resolv.conf by several of BIND 9 tools.

6 years agoMerge branch '178-remove-unused-dns-ecdb' into 'master'
Ondřej Surý [Thu, 23 Apr 2020 19:40:23 +0000 (19:40 +0000)] 
Merge branch '178-remove-unused-dns-ecdb' into 'master'

Remove 'ephemeral' database implementation

Closes #178

See merge request isc-projects/bind9!3425