We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f220975 commit c42510aCopy full SHA for c42510a
2 files changed
Makefile
@@ -128,6 +128,11 @@ $(BUILD_DIR)/%.o: %.c
128
test: $(TARGET)
129
$(SQLITE3) ":memory:" -cmd ".bail on" ".load ./dist/vector" "SELECT vector_version();"
130
131
+TEST_SRC = test/test_vector.c libs/sqlite3.c $(SRC_FILES)
132
+unittest:
133
+ $(CC) $(CFLAGS) -DSQLITE_CORE -O2 $(TEST_SRC) -o $(BUILD_DIR)/test_vector -lm -lpthread
134
+ ./$(BUILD_DIR)/test_vector
135
+
136
# Clean up generated files
137
clean:
138
rm -rf $(BUILD_DIR)/* $(DIST_DIR)/* *.gcda *.gcno *.gcov *.sqlite
@@ -229,4 +234,4 @@ help:
229
234
@echo " xcframework - Build the Apple XCFramework"
230
235
@echo " aar - Build the Android AAR package"
231
236
232
-.PHONY: all clean test extension help version xcframework aar
237
+.PHONY: all clean test unittest extension help version xcframework aar
0 commit comments