testing/sqlite3: Add TCL tester harness

This commit is contained in:
Pekka Enberg 2025-07-07 15:35:03 +03:00
parent 931a33642e
commit 4206fc2e23
2 changed files with 652 additions and 2 deletions

View file

@ -1,8 +1,17 @@
#!/bin/bash
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Go to the project root (one level up from scripts/)
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
TURSODB="$PROJECT_ROOT/target/debug/tursodb"
# Add experimental features for testing
EXPERIMENTAL_FLAGS="--experimental-indexes"
# if RUST_LOG is non-empty, enable tracing output
if [ -n "$RUST_LOG" ]; then
target/debug/tursodb -m list -t testing/test.log "$@"
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
else
target/debug/tursodb -m list "$@"
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
fi