From 0db542171f62a7333fb6beea9d5cbed4d09b1072 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Wed, 14 May 2025 14:12:33 +0300 Subject: [PATCH] Makefile: Update test-sqlite3 target to run Rust tests The API compat test suite is now all in Rust. --- Makefile | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index db3c3acdb..245c57b12 100644 --- a/Makefile +++ b/Makefile @@ -7,21 +7,6 @@ UNAME_S := $(shell uname -s) # Executable used to execute the compatibility tests. SQLITE_EXEC ?= scripts/limbo-sqlite3 -# Static library to use for SQLite C API compatibility tests. -BASE_SQLITE_LIB = ./target/$(CURRENT_RUST_TARGET)/debug/liblimbo_sqlite3.a -# Static library headers to use for SQLITE C API compatibility tests -BASE_SQLITE_LIB_HEADERS = ./target/$(CURRENT_RUST_TARGET)/debug/include/limbo_sqlite3 - - -# On darwin link core foundation -ifeq ($(UNAME_S),Darwin) - SQLITE_LIB ?= ../../$(BASE_SQLITE_LIB) -framework CoreFoundation -else - SQLITE_LIB ?= ../../$(BASE_SQLITE_LIB) -endif - -SQLITE_LIB_HEADERS ?= ../../$(BASE_SQLITE_LIB_HEADERS) - all: check-rust-version check-wasm-target limbo limbo-wasm .PHONY: all @@ -89,8 +74,9 @@ test-time: SQLITE_EXEC=$(SQLITE_EXEC) ./testing/time.test .PHONY: test-time -test-sqlite3: limbo-c - LIBS="$(SQLITE_LIB)" HEADERS="$(SQLITE_LIB_HEADERS)" make -C sqlite3/tests test +test-sqlite3: + cargo test -p limbo_sqlite3 --test compat + cargo test -p limbo_sqlite3 --test compat --features sqlite3 .PHONY: test-sqlite3 test-json: