summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-23 15:12:37 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-02-23 15:13:47 +0000
commita653e1e86eb5af1621de97603c33222315d2d2c3 (patch)
tree3215aff047de10476ba3fceaf821c669bd3e01eb /test/Makefile
parentf3b7a0c44cbf006679faabf9e4d971b2e62cc37a (diff)
downloadnetsurf-a653e1e86eb5af1621de97603c33222315d2d2c3.tar.gz
netsurf-a653e1e86eb5af1621de97603c33222315d2d2c3.tar.bz2
utils: Add a generic hashmap and tests for it
In order to be able to use a generic hashmap in things such as the fs_backing_store we want one to exist. Here it is, along with some moderately comprehensive tests. Current limits: 1. All keys and values are owned by the hashmap 2. The hashmap, while capable of different bucket counts only has a single fixed count for now Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
index 963b2e028..34434c30d 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -7,6 +7,7 @@ TESTS := \
nsoption \
bloom \
hashtable \
+ hashmap \
urlescape \
utils \
messages \
@@ -52,6 +53,10 @@ bloom_SRCS := utils/bloom.c test/bloom.c
# hash table test sources
hashtable_SRCS := utils/hashtable.c test/log.c test/hashtable.c
+# hashmap test sources
+hashmap_SRCS := $(NSURL_SOURCES) utils/hashmap.c utils/corestrings.c test/log.c test/hashmap.c
+hashmap_LD := -lmalloc_fig
+
# url escape test sources
urlescape_SRCS := utils/url.c test/log.c test/urlescape.c