Skip to content
Draft
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
17 changes: 14 additions & 3 deletions Config.uk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ menuconfig LIBSQLITE
select LIBPTHREAD_EMBEDDED

if LIBSQLITE
config LIBSQLITE_MAIN_FUNCTION
bool "Provide main function"
default y
config LIBSQLITE_MAIN_FUNCTION
bool "Provide main function"
default y
config LIBSQLITE_TEST
bool "Enable sqlite tcl tests"
select LIBUKTEST
default n
select LIBSQLITE_TEST_MINIMAL
help

config LIBSQLITE_TEST_MINIMAL
bool
default n

endif
8 changes: 8 additions & 0 deletions Makefile.uk
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,11 @@ LIBSQLITE_SHELL_FLAGS-y += -Dmain=sqlite_main -Dwmain=sqlite_main

LIBSQLITE_SRCS-y += $(LIBSQLITE_SRC)/shell.c
LIBSQLITE_SRCS-y += $(LIBSQLITE_SRC)/sqlite3.c


################################################################################
# Tests
################################################################################
ifneq ($(filter y, $(LIBSQLITE_TEST_MINIMAL) $(CONFIG_LIBUKTEST_ALL)),)
LIBSQLITE_SRCS-y += $(LIBSQLITE_BASE)/tests/test_minimal.c
endif
Empty file added tests/test_minimal.c
Empty file.