Ondřej Surý
19fbdef31e
Remove unused isc_mem_createx() function
...
The isc_mem_createx() function was only used in the tests to eliminate using the
default flags (which as of writing this commit message was ISC_MEMFLAG_INTERNAL
and ISC_MEMFLAG_FILL). This commit removes the isc_mem_createx() function from
the public API.
2019-09-12 09:26:09 +02:00
Ondřej Surý
5d1e7be582
Rename OPENSSL_INCLUDES to OPENSSL_CFLAGS in AX_CHECK_OPENSSL() macro
...
The ax_check_openssl m4 macro used OPENSSL_INCLUDES. Rename the
subst variable to OPENSSL_CFLAGS and wrap AX_CHECK_OPENSSL() in
action-if-not-found part of PKG_CHECK_MODULE check for libcrypto.
2019-06-25 12:36:01 +02:00
Ondřej Surý
e3e6888946
Make the usage of json-c objects opaque to the caller
...
The json-c have previously leaked into the global namespace leading
to forced -I<include_path> for every compilation unit using isc/xml.h
header. This MR fixes the usage making the caller object opaque.
2019-06-25 12:04:20 +02:00
Ondřej Surý
0771dd3be8
Make the usage of libxml2 opaque to the caller
...
The libxml2 have previously leaked into the global namespace leading
to forced -I<include_path> for every compilation unit using isc/xml.h
header. This MR fixes the usage making the caller object opaque.
2019-06-25 12:01:32 +02:00
Ondřej Surý
4d2d3b49ce
Cleanup the way we detect json-c library to use only pkg-config
2019-05-29 15:08:52 +02:00
Ondřej Surý
2cbf633192
Add tests for the isc_siphash24 function
2019-05-20 19:01:31 +02:00
Ondřej Surý
a688a43faf
Move the CMocka include directories from CFLAGS to CINCLUDES where it belongs to not get overriden later by the default CFLAGS rule
2018-11-26 16:16:34 +01:00
Joey
9eea00cd3c
convert socket_test; remove ATF from lib/isc/tests
2018-11-14 20:17:04 -08:00
Evan Hunt
bd009b34a6
convert regex_test
2018-11-14 20:17:04 -08:00
Evan Hunt
6ad7acd787
convert random_test
2018-11-14 20:17:04 -08:00
Joey
683094e308
convert mem_test
2018-11-14 20:17:04 -08:00
Evan Hunt
20cef35ece
convert timer_test
2018-11-14 20:17:04 -08:00
Evan Hunt
3e52987229
convert task_test
2018-11-14 20:17:04 -08:00
Joey
72f60bdd84
convert hash_test
2018-11-14 20:17:04 -08:00
Evan Hunt
c701f036ea
convert ht_test
2018-11-14 20:17:04 -08:00
Evan Hunt
3bf9a1e567
convert time_test
2018-11-14 20:17:04 -08:00
Evan Hunt
c9ff174dce
convert taskpool_test
2018-11-14 20:17:04 -08:00
Evan Hunt
4f84acb788
convert pool_test
2018-11-14 20:17:04 -08:00
Evan Hunt
231436039d
convert sockaddr_test
2018-11-14 20:17:04 -08:00
Evan Hunt
7ab8c5b583
convert netaddr_test
2018-11-14 20:17:04 -08:00
Evan Hunt
5f377136be
convert symtab_test
2018-11-14 20:17:04 -08:00
Evan Hunt
b3db0266cb
convert queue_test
2018-11-14 20:17:04 -08:00
Evan Hunt
8161be27db
convert file_test
2018-11-14 20:17:04 -08:00
Evan Hunt
4133fd86f1
convert lex_test
2018-11-14 20:17:04 -08:00
Evan Hunt
049a3a7c0e
convert errno_test
2018-11-14 20:17:04 -08:00
Evan Hunt
c1c8d8846f
convert safe_test
2018-11-14 20:17:04 -08:00
Evan Hunt
718ca3166c
convert radix_test
2018-11-14 20:17:04 -08:00
Evan Hunt
cc6ab2416b
convert heap_test
2018-11-14 20:17:04 -08:00
Evan Hunt
a7c308df9c
convert parse_test
2018-11-14 20:17:04 -08:00
Evan Hunt
52b86f0abe
convert counter_test
2018-11-14 20:17:04 -08:00
Evan Hunt
02a5db7631
convert buffer_test
2018-11-14 20:17:04 -08:00
Evan Hunt
dc88db015b
convert aes_test
2018-11-14 20:17:04 -08:00
Evan Hunt
b434b0a4b6
remove .NOTPARALLEL so unit tests can build faster
2018-11-14 20:17:04 -08:00
Evan Hunt
471110933a
convert result tests to use CMocka instead of ATF
2018-11-10 12:29:40 -08:00
Ondřej Surý
13888c93a4
Split isc_crc64 API test into separate unit test and convert it to cmocka
2018-10-25 08:16:24 +02:00
Ondřej Surý
b98ac2593c
Add generic hashed message authentication code API (isc_hmac) to replace specific HMAC functions hmacmd5/hmacsha1/hmacsha2...
2018-10-25 08:15:42 +02:00
Ondřej Surý
7fd3dc63de
Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256
2018-10-25 08:15:42 +02:00
Ondřej Surý
376bea8b40
Cleanup the custom atomic defines from Windows and remove empty atomic_test.c
2018-09-07 12:17:29 +02:00
Ondřej Surý
388d6db5a1
Remove support for legacy systems without inet_{ntop,pton} w/ IPv6 support
2018-08-28 10:31:48 +02:00
Ondřej Surý
71877806e8
Fix ax_check_openssl to accept yes and improve it to modern autotools standard
2018-07-23 22:10:52 +02:00
Mark Andrews
4c3386ad95
remove lib/isc/print.c and lib/isc/tests/print_test.c
2018-07-19 23:24:28 -04:00
Ondřej Surý
c3b8130fe8
Make OpenSSL mandatory
2018-07-19 12:47:03 -04:00
Ondřej Surý
07910f0153
Integrate cmocka unit testing framework to kyua
2018-06-20 06:30:07 -04:00
Ondřej Surý
7ee8a7e69f
address win32 build issues
...
- Replace external -DOPENSSL/-DPKCS11CRYPTO with properly AC_DEFINEd
HAVE_OPENSSL/HAVE_PKCS11
- Don't enforce the crypto provider from platform.h, just from dst_api.c
and configure scripts
2018-05-22 16:32:21 -07:00
Evan Hunt
e2b8699df9
migrate t_timers to lib/isc/tests/timer_test
2018-03-09 14:12:49 -08:00
Evan Hunt
874e2fc70c
migrate t_atomic to lib/isc/tests/atomic_test
2018-03-09 14:12:48 -08:00
Evan Hunt
3c028ed07d
Merge branch 'kyua-oot' into 'master'
...
chg: dev: Unit tests were broken in out-of-tree builds.
See merge request isc-projects/bind9!57
2018-02-23 18:22:59 -05:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Petr Menšík
95cde3608a
unit/unittest.sh is generated by configure. It will always be
...
generated into builddir. If out-of-tree build is used, make unit
will always fail. Kyuafiles and testdata still have to be copied
manually into the builddir.
2018-02-22 15:32:16 +01:00
Mark Andrews
65a483106e
4829. [bug] isc_heap_delete did not zero the index value when
...
the heap was created with a callback to do that.
[RT #46709 ]
2017-11-28 18:49:52 +11:00