Mark Andrews
76a1c1531a
assert result is ISC_R_SUCCESS
2019-02-19 07:57:14 +11:00
Mark Andrews
a487473fc5
add missing DBC checks for catz and add isc_magic checks; add DBC checks to ht.c
2018-11-29 12:39:20 +11: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
Witold Kręcicki
929ea7c2c4
- Make isc_mutex_destroy return void
...
- Make isc_mutexblock_init/destroy return void
- Minor cleanups
2018-11-22 11:52:08 +00:00
Ondřej Surý
2f3eee5a4f
isc_mutex_init returns 'void'
2018-11-22 11:51:49 +00:00
Ondřej Surý
73a8999d1c
isc_condition_init returns 'void'
2018-11-22 11:51:49 +00:00
Witold Kręcicki
5f81aa10bc
Use proper casting in socket unit test
2018-11-19 17:40:34 +01:00
Ondřej Surý
7a3eb391fa
Fix memory leak in lex_test.c
2018-11-19 07:47:05 +01:00
Evan Hunt
8f15219f36
remove (or hide behind a 'verbose' flag) extra output from system tests
2018-11-16 20:46:14 +00:00
Evan Hunt
8c4d50c6bc
remove ATF source code and Atffiles
2018-11-14 20:17:04 -08: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
d8766293ab
assert if {isc,dns,ns}_test_begin() is called when a prior test is running
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
f456e64736
set HAVE_CMOCKA correctly when using --with-cmocka=yes
...
(note: this is still broken if using --with-cmocka=path)
2018-11-14 20:17:04 -08:00
Mark Andrews
9024cf0c15
remove lib/isc/tests/result_test as it is now cmocka
2018-11-13 07:26:29 +11:00
Evan Hunt
471110933a
convert result tests to use CMocka instead of ATF
2018-11-10 12:29:40 -08:00
Mark Andrews
4f04a79250
check result tables are complete
2018-11-10 10:30:43 +11:00
Ondřej Surý
b2b43fd235
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
2018-11-08 12:21:53 +07:00
Witold Kręcicki
c80e25e482
Get rid of isc_taskmgr_setmode, we only use it to set privileged mode
2018-11-06 08:19:50 +00:00
Evan Hunt
a0de6707c0
silence warning from missing print.h
2018-10-30 08:06:34 -07:00
Michał Kępień
15440d8027
Add unit tests for isc_buffer_copyregion()
...
Add some basic checks for isc_buffer_copyregion() to ensure it behaves
as expected for both fixed-size buffers and buffers which can be
automatically reallocated. Adjust the list of headers included by
lib/isc/tests/buffer_test.c so that it matches what that test program
really uses.
2018-10-30 13:33:25 +01: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
Evan Hunt
09f58ab63f
retain a minimal "methods" struct in the mctx
...
- this enables memory to be allocated and freed in dyndb modules
when named is linked statically. when we standardize on libtool,
this should become unnecessary.
- also, simplified the isc_mem_create/createx API by removing
extra compatibility functions
2018-10-18 09:19:12 +00:00
Evan Hunt
0e86fa16e8
complete removal of a few unneeded functions
...
- removed register functions from isc_app, isc_timer, isc_task
- added a task_p.h header for use by unit tests
2018-10-18 09:19:12 +00:00