Mukund Sivaraman
303391ea41
Add system test
2018-05-16 08:15:36 +02:00
Ondřej Surý
23c1f7e506
Enforce usage of OpenSSL or PKCS#11 library in platform.h header
2018-05-13 19:18:56 -07:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Ondřej Surý
3f66b8acb0
Update tests to not use '>&-' that closes file descriptor, but instead use correct redirection to '>/dev/null'
2018-05-11 12:44:27 +02:00
Mark Andrews
92e540df1e
Silence clang static analyzer warnings; Consolidate multiple instances of splitting of batchline in dig into a single function.
2018-05-11 10:54:21 +10:00
Ondřej Surý
9845c4c4a7
Address GCC 8 -Wstringop-truncation warning
2018-05-10 10:35:01 +02:00
Mark Andrews
e713f83064
add dnssec prerequisite test to rootkeysentinel
2018-05-03 10:27:50 -04:00
Ondřej Surý
61da2bf028
Remove support for OpenSSL < 1.0.0
2018-05-03 15:55:39 +02:00
Ondřej Surý
9a3a257374
Always use random data from the crypto provider
2018-05-03 15:03:46 +02:00
Evan Hunt
30b988f09a
Fix a testing error when using python3 on certain dates
...
Date conversion was broken in python3 for dates with
leading zeroes in both month and day.
2018-04-26 23:02:40 -07:00
Michał Kępień
6acf326969
Apply raw zone deltas to yet unsigned secure zones
...
When inline signing is enabled for a zone without creating signing keys
for it, changes subsequently applied to the raw zone will not be
reflected in the secure zone due to the dns_update_signaturesinc() call
inside receive_secure_serial() failing. Given that an inline zone will
be served (without any signatures) even with no associated signing keys
being present, keep applying raw zone deltas to the secure zone until
keys become available in an attempt to follow the principle of least
astonishment.
2018-04-25 12:00:31 -07:00
Mark Andrews
58c103e09c
dig: add the ability to set RA and TC in queries
2018-04-20 14:17:58 -07:00
Evan Hunt
c592655c0f
new option "dnskey-sig-validity"
...
- overrides "sig-validity-interval" for DNSKEY, CDNSKEY and CDS RRSIGs
2018-04-20 12:12:08 -07:00
Mark Andrews
a23b305e6b
add system test for root-key-sentinel
2018-04-18 08:49:55 -07:00
Evan Hunt
46fd0b62f8
fixed a missing variable declaration needed by strtok_r on non-threaded builds
2018-04-13 11:55:30 -07:00
Tony Finch
286a7b6b9a
Allow TTL values when configuring TTLs and time intervals.
...
Options updated to use ttlvals: max-cache-ttl, max-ncache-ttl,
max-policy-ttl, fstrm-set-reopen-interval, interface-interval, and
min-update-interval.
2018-04-13 11:46:06 -07:00
Ondřej Surý
11f26b42e3
Replace all usage of non-reentrant strtok() with strtok_r()
2018-04-12 10:37:33 +02:00
Evan Hunt
93ee6b8a22
Alter distclean rule to prevent recursing into the same directory twice
...
Commit f87e0c03ee removed the "system" directory from the TESTDIRS
variable in bin/tests/Makefile.in in an attempt to fix "make distclean"
which was broken since commit 0d784de16a . However, this change
prevented any system tests from being run when "make test" is invoked.
We now put it back into both SUBDIRS and TESTDIRS, but with a modified
rule to check for the existence of a Makefile in each subdirectory before
trying to run make there. This prevents "make distclean" from trying to
run again in a directory where it's already been run.
2018-04-10 19:56:45 -07:00
Michał Kępień
39ddf9991f
Do not access dns_fixedname_t fields directly
...
Employ dns_fixedname_name() and dns_fixedname_initname() to no longer
directly access dns_fixedname_t fields.
2018-04-09 12:14:16 +02:00
Michał Kępień
4df4a8e731
Use dns_fixedname_initname() where possible
...
Replace dns_fixedname_init() calls followed by dns_fixedname_name()
calls with calls to dns_fixedname_initname() where it is possible
without affecting current behavior and/or performance.
This patch was mostly prepared using Coccinelle and the following
semantic patch:
@@
expression fixedname, name;
@@
- dns_fixedname_init(&fixedname);
...
- name = dns_fixedname_name(&fixedname);
+ name = dns_fixedname_initname(&fixedname);
The resulting set of changes was then manually reviewed to exclude false
positives and apply minor tweaks.
It is likely that more occurrences of this pattern can be refactored in
an identical way. This commit only takes care of the low-hanging fruit.
2018-04-09 12:14:16 +02:00
Witold Kręcicki
c8aa1ee9e6
libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext
2018-04-06 08:04:41 +02:00
Witold Kręcicki
702c022016
libdns refactoring: get rid of multiple versions of dns_xfrin_create, dst_key_generate, dst_lib_init and dst_context_create
2018-04-06 08:04:41 +02:00
Witold Kręcicki
7dbc6768d6
libdns refactoring: get rid of multiple versions of dns_zone_setfile, dns_zone_notifyreceive, dns_zone_dumptostream, dns_zone_getserial
2018-04-06 08:04:41 +02:00
Witold Kręcicki
8c12e488f7
libdns refactoring: get rid of multiple versions of dns_request_createraw and dns_request_createvia
2018-04-06 08:04:41 +02:00
Witold Kręcicki
e2a06db7f3
libdns refactoring: get rid of multiple versions of dns_master_loadfile, dns_master_loadfileinc, dns_master_dump, dns_master_dumpinc, dns_master_dumptostream, dns_master_stylecreate
2018-04-06 08:04:41 +02:00
Witold Kręcicki
275a6a3bec
libdns refactoring: get rid of unnecessary dns_db_dump2 and 3 versions of dns_db_load
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d39b3209fb
libdns refactoring: get rid of 3 versions of dns_cache_create
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d76ed0da1c
libdns refactoring: get rid of two versions of dns_byaddr_createptrname
2018-04-06 08:04:41 +02:00
Witold Kręcicki
f0a07b7546
libdns refactoring: get rid of two versions of dns_adb_createfind and dns_adb_probesize
2018-04-06 08:04:41 +02:00
Mark Andrews
f87e0c03ee
system should only be in SUBDIRS
2018-04-06 13:33:53 +10:00
Ondřej Surý
b097be17ef
Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version
2018-04-04 23:12:14 +02:00
Kevin Chen
8b1b809ab4
Add a Net::DNS prereq for digdelv, fetchlimit, rpzrecurse, and zero
...
tests to avoid failed tests when Net::DNS is not present.
2018-04-04 22:23:14 +02:00
Stephen Morris
e0e81288cd
Check libidn2 version before proceding with one of the tests.
...
A known issue in libidn2 causes one of the tests of a fake A-label
to fail. The problem should be corrected in version 2.0.5 of
libidn2.
2018-04-04 09:42:08 -04:00
Ondřej Surý
4dad408ead
Use C.UTF-8 if available, and en_US.UTF-8 is available, otherwise do nothing and let the test break
2018-04-04 09:42:08 -04:00
Stephen Morris
8cf29aafec
Set known locale prior to running tests.
2018-04-04 09:42:08 -04:00
Stephen Morris
5009724f40
Fix check for the presence of IDNA.
2018-04-04 09:42:08 -04:00
Stephen Morris
dc7b3d7597
Added additional tests for invalid punycode strings.
2018-04-04 09:42:07 -04:00
Stephen Morris
6755118493
Initial set of IDNA tests.
2018-04-04 09:42:07 -04:00
Mark Andrews
4be5667b2c
fix temporary file name to have subtest number
...
(cherry picked from commit e12453f43c88bac722fb511b62f12303735b788c)
2018-03-19 23:14:28 +11:00
Mark Andrews
6e4b5f2345
fix typo
2018-03-19 22:31:22 +11:00
Mark Andrews
dd5dff3096
fix numbering of tests and make consistent
2018-03-19 17:51:04 +11:00
Mukund Sivaraman
d20d86e37d
Check for more than 64 policy zones
2018-03-18 10:08:22 +00:00
Mukund Sivaraman
8c5fe523b2
Add system test
2018-03-18 10:07:48 +00:00
Evan Hunt
0fabe0da83
update file headers
2018-03-15 18:33:13 -07:00
Evan Hunt
733086cc67
clean up dig.out files that were left behind after xfer test
2018-03-10 13:04:31 -08:00
Evan Hunt
74347f4a55
reduce race risk in parallel builds
2018-03-09 14:12:50 -08:00
Evan Hunt
a4ebe83cdb
migrate t_dst signature test to lib/dns/tests/dst_test
2018-03-09 14:12:50 -08:00
Evan Hunt
f58ac8ada3
migrate t_db to lib/dns/tests/db_test
2018-03-09 14:12:49 -08:00
Evan Hunt
8ecf69ef7b
migrate t_names to lib/dns/tests/name_test
2018-03-09 14:12:49 -08:00
Evan Hunt
109546cbda
migrate t_rbt to lib/dns/tests/rbt_test
2018-03-09 14:12:49 -08:00