439c0ea5da
- internal/store SQLite 实库行为测试(免 docker、真连引擎):用量累加 upsert、 节点累加、directory_version 自增、幂等 no-op、凭据 upsert、兑换码全流程 (锁 + 标记已用 + 建订阅 + Go 端续期) - internal/db dialect SQL 逐字断言(MySQL/SQLite 两侧生成串),无需起 MySQL 即可锁定 MySQL 侧 SQL 与重构前一致 - run_sqlite_test.sh:双引擎测试矩阵的 SQLite 半边(零 docker) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 lines
432 B
Bash
Executable File
11 lines
432 B
Bash
Executable File
#!/bin/bash
|
|
# Run the SQLite-backed data-layer tests. Unlike run_mysql_test.sh these need no
|
|
# container — modernc.org/sqlite is pure Go and the DB is in-memory — so this is
|
|
# the SQLite half of the dual-engine test matrix and runs in normal CI.
|
|
set -e
|
|
|
|
echo "Running SQLite migration + store dialect tests..."
|
|
go test ./internal/store/ ./internal/db/ \
|
|
-run 'TestSQLite|TestSQLiteMigrateUpDown' \
|
|
-v -count=1 -timeout 120s
|