bind9/tests/isc/Makefile.am
Ondřej Surý f46ce447a6
Add isc_hashmap API that implements Robin Hood hashing
Add new isc_hashmap API that differs from the current isc_ht API in
several aspects:

1. It implements Robin Hood Hashing which is open-addressing hash table
   algorithm (e.g. no linked-lists)

2. No memory allocations - the array to store the nodes is made of
   isc_hashmap_node_t structures instead of just pointers, so there's
   only allocation on resize.

3. The key is not copied into the hashmap node and must be also stored
   externally, either as part of the stored value or in any other
   location that's valid as long the value is stored in the hashmap.

This makes the isc_hashmap_t a little less universal because of the key
storage requirements, but the inserts and deletes are faster because
they don't require memory allocation on isc_hashmap_add() and memory
deallocation on isc_hashmap_delete().
2022-11-10 15:07:19 +01:00

182 lines
2.5 KiB
Makefile

include $(top_srcdir)/Makefile.top
AM_CPPFLAGS += \
$(LIBISC_CFLAGS) \
$(LIBUV_CFLAGS) \
-I$(top_srcdir)/lib/isc
LDADD += \
$(LIBISC_LIBS) \
$(LIBUV_LIBS)
check_PROGRAMS = \
ascii_test \
aes_test \
async_test \
buffer_test \
counter_test \
crc64_test \
errno_test \
file_test \
hash_test \
hashmap_test \
heap_test \
hmac_test \
ht_test \
job_test \
lex_test \
loop_test \
md_test \
mem_test \
netaddr_test \
parse_test \
quota_test \
radix_test \
random_test \
ratelimiter_test\
regex_test \
result_test \
safe_test \
siphash_test \
sockaddr_test \
stats_test \
symtab_test \
task_test \
tcp_test \
tcpdns_test \
time_test \
timer_test \
tls_test \
tlsdns_test \
udp_test \
work_test
if HAVE_LIBNGHTTP2
check_PROGRAMS += \
doh_test
doh_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(LIBNGHTTP2_CFLAGS) \
$(OPENSSL_CFLAGS)
doh_test_LDADD = \
$(LDADD) \
$(LIBNGHTTP2_LIBS)
doh_test_SOURCES = \
doh_test.c \
uv_wrap.h
endif HAVE_LIBNGHTTP2
hmac_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
hmac_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
md_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
md_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
random_test_LDADD = \
$(LDADD) \
-lm
task_test_CPPFLAGS = \
$(AM_CPPFLAGS)
task_test_LDADD = \
$(LDADD)
tcp_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
tcp_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
tcp_test_SOURCES = \
tcp_test.c \
netmgr_common.h \
netmgr_common.c \
uv_wrap.h
tcpdns_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
tcpdns_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
tcpdns_test_SOURCES = \
tcpdns_test.c \
netmgr_common.h \
netmgr_common.c \
uv_wrap.h
tls_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
tls_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
tls_test_SOURCES = \
tls_test.c \
netmgr_common.h \
netmgr_common.c \
uv_wrap.h
tlsdns_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
tlsdns_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
tlsdns_test_SOURCES = \
tlsdns_test.c \
netmgr_common.h \
netmgr_common.c \
uv_wrap.h
udp_test_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(OPENSSL_CFLAGS)
udp_test_LDADD = \
$(LDADD) \
$(OPENSSL_LIBS)
udp_test_SOURCES = \
udp_test.c \
netmgr_common.h \
netmgr_common.c \
uv_wrap.h
if HAVE_LIBXML2
task_test_CPPFLAGS += $(LIBXML2_CFLAGS)
task_test_LDADD += $(LIBXML2_LIBS)
endif HAVE_LIBXML2
if HAVE_JSON_C
task_test_CPPFLAGS += $(JSON_C_CFLAGS)
task_test_LDADD += $(JSON_C_LIBS)
endif HAVE_JSON_C
EXTRA_DIST = testdata
include $(top_srcdir)/Makefile.tests