mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
Explicitly test that SQLite version 3.31.1 is compatible with sqlite-vec when statically compiling
This commit is contained in:
parent
2a8593a755
commit
530a3c95d2
5 changed files with 86 additions and 10 deletions
26
tests/minimum/Makefile
Normal file
26
tests/minimum/Makefile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#curl -q -o sqlite-amalgamation-3310100.zip https://www.sqlite.org/2020/sqlite-amalgamation-3310100.zip
|
||||
#unzip https://www.sqlite.org/2020/sqlite-amalgamation-3310100.zip
|
||||
|
||||
dist/:
|
||||
mkdir -p dist
|
||||
touch $@
|
||||
|
||||
dist/sqlite-amalgamation-3310100: dist/
|
||||
rm -rf sqlite-amalgamation-3310100/ || true
|
||||
curl -q -o sqlite-amalgamation-3310100.zip https://www.sqlite.org/2020/sqlite-amalgamation-3310100.zip
|
||||
unzip -d dist/ sqlite-amalgamation-3310100.zip
|
||||
rm sqlite-amalgamation-3310100.zip
|
||||
touch $@
|
||||
|
||||
dist/t3310100: demo.c dist/sqlite-amalgamation-3310100
|
||||
gcc \
|
||||
-DSQLITE_CORE \
|
||||
-I dist/sqlite-amalgamation-3310100 \
|
||||
-I ../../ \
|
||||
$< dist/sqlite-amalgamation-3310100/sqlite3.c \
|
||||
../../sqlite-vec.c \
|
||||
-o $@
|
||||
|
||||
test:
|
||||
make dist/t3310100
|
||||
./dist/t3310100
|
||||
Loading…
Add table
Add a link
Reference in a new issue