Skip to content

Commit 92c704f

Browse files
authored
Add a test for sorter worker threads and sqlite3_backup_init
Contributed by @mtrossbach (PR #307)
2 parents 329a142 + c17092b commit 92c704f

3 files changed

Lines changed: 428 additions & 1 deletion

File tree

‎.github/workflows/ci4sqlite3mc.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ jobs:
6767
make rekeytest
6868
./rekeytest
6969
70+
- name: Thread tests
71+
run: |
72+
make threadtest
73+
./threadtest
74+
7075
android_build:
7176
name: Android (API ${{ matrix.api-level }})
7277
runs-on: ubuntu-latest

‎Makefile.am‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ sqlite3shell_LDFLAGS += -no-install
165165
endif
166166

167167
# Tests for the cryptographic primitives (not installed, built like the shell).
168-
check_PROGRAMS = cryptotest tempfiletest oomtest rekeytest
168+
check_PROGRAMS = cryptotest tempfiletest oomtest rekeytest threadtest
169169
cryptotest_SOURCES = test/cryptotest.c
170170
cryptotest_CFLAGS = $(sqlite3shell_CFLAGS)
171171
cryptotest_LDADD = $(sqlite3shell_LDADD)
@@ -182,3 +182,7 @@ rekeytest_SOURCES = test/rekeytest.c
182182
rekeytest_CFLAGS = $(sqlite3shell_CFLAGS)
183183
rekeytest_LDADD = $(sqlite3shell_LDADD)
184184
rekeytest_LDFLAGS = $(sqlite3shell_LDFLAGS)
185+
threadtest_SOURCES = test/threadtest.c
186+
threadtest_CFLAGS = $(sqlite3shell_CFLAGS)
187+
threadtest_LDADD = $(sqlite3shell_LDADD)
188+
threadtest_LDFLAGS = $(sqlite3shell_LDFLAGS)

0 commit comments

Comments
 (0)