Commit 2ee4128
committed
test: functional test suite for the sqlengine binary
scripts/test_sqlengine.sh drives ./sqlengine itself (not the C++ API)
and asserts on its stdout. Covers in-memory expression evaluation,
single-backend queries against parsersql-single, and sharded queries
against parsersql-shard1+shard2.
Four modes (in-memory / single / sharded / all). Loud-failure
preconditions: missing binary, missing docker, or missing container
exits with code 2 and prints the exact remediation command. Never
silent-skips. Exit 1 on any test assertion failure, 0 only when
every selected test passes.
Wired into the Makefile as test-sqlengine{,-in-memory,-single,-sharded}.
Current state on the working-tree code: 30/34 tests pass. The four
failures are real engine bugs surfaced by this infrastructure (filed
as separate issues): aggregate projection schema in 1-shard mode and
shard-key route misdirection for some keys.1 parent c26adcc commit 2ee4128
2 files changed
Lines changed: 386 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
154 | 172 | | |
155 | 173 | | |
156 | 174 | | |
| |||
0 commit comments