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

Porting sqlite TH3 tests into uktests. #5

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from
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.