← board

SQLite SQL parity: external libsqlite3 vs self-compiled amalgamation

Goal

Once the project-compiled sqlite amalgamation can open an in-memory database without faulting, add a SQL parity test that runs the same SQL through:

  1. the existing external libsqlite3.so.0 import path (uses sqlite3 / imported sqlite3.h), and
  2. a self-compiled library_candidates/sqlite/sqlite3.c unity driver using the project CRTL sources.

Both paths should produce byte-identical output for a small deterministic CREATE TABLE / INSERT / SELECT ... ORDER BY workload.

Notes

The external path is already covered by several SQLite CRUD tests. The missing piece is the self-compiled amalgamation runtime: it compiles, but sqlite3_open(":memory:") currently still hits the CRTL/VFS bring-up wall.

Acceptance

Log