Skip to content

Commit

Permalink
test: port test/test-api.c
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Chandad <hchandad@proton.me>
  • Loading branch information
hchandad authored and Ubuntu committed Sep 22, 2022
1 parent fd0abab commit 7d932b4
Show file tree
Hide file tree
Showing 3 changed files with 486 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Config.uk
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ if LIBMIMALLOC
config MIMALLOC_ASSERT
bool "Enable assertions"
default n
config LIBMIMALLOC_TEST
bool "Enable libmimalloc tests"
select LIBUKTEST
default n
help
Enables all libmimalloc tests.
if LIBMIMALLOC_TEST
config LIBMIMALLOC_TEST_API
bool "Enable libmimalloc api test suite"
default y
endif
endif
7 changes: 7 additions & 0 deletions Makefile.uk
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ LIBMIMALLOC_SRCS-y += $(LIBMIMALLOC)/src/options.c
LIBMIMALLOC_SRCS-y += $(LIBMIMALLOC)/src/init.c
#LIBMIMALLOC_SRCS-y += $(LIBMIMALLOC)/src/alloc-override.c
#LIBMIMALLOC_SRCS-y += $(LIBMIMALLOC)/src/page-queue.c

################################################################################
# Tests
################################################################################
ifneq ($(filter y, $(CONFIG_LIBMIMALLOC_TEST_API) $(CONFIG_LIBUKTEST_ALL)),)
LIBMIMALLOC_SRCS-y += $(LIBMIMALLOC)/test/test-api.c
endif
Loading

0 comments on commit 7d932b4

Please sign in to comment.