Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: port test/test-api.c #3

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
hchandad marked this conversation as resolved.
Show resolved Hide resolved
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