mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
remove experimental_flag from script + remove -q flag default flag from TestTursoShell
This commit is contained in:
2
Makefile
2
Makefile
@@ -52,7 +52,7 @@ uv-sync:
|
||||
uv sync --all-packages
|
||||
.PHONE: uv-sync
|
||||
|
||||
test: limbo uv-sync test-compat test-vector test-sqlite3 test-shell test-extensions test-memory test-write test-update test-constraint test-collate
|
||||
test: limbo uv-sync test-compat test-vector test-sqlite3 test-shell test-memory test-write test-update test-constraint test-collate test-extensions
|
||||
.PHONY: test
|
||||
|
||||
test-extensions: limbo uv-sync
|
||||
|
||||
@@ -7,7 +7,7 @@ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
TURSODB="$PROJECT_ROOT/target/debug/tursodb"
|
||||
|
||||
# Add experimental features for testing
|
||||
EXPERIMENTAL_FLAGS="--experimental-indexes"
|
||||
EXPERIMENTAL_FLAGS=""
|
||||
|
||||
# if RUST_LOG is non-empty, enable tracing output
|
||||
if [ -n "$RUST_LOG" ]; then
|
||||
|
||||
@@ -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 --experimental-indexes -m list -t testing/test.log "$@"
|
||||
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/test.log "$@"
|
||||
else
|
||||
target/debug/tursodb --experimental-indexes -m list "$@"
|
||||
"$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
||||
fi
|
||||
|
||||
@@ -275,7 +275,7 @@ def test_insert_default_values():
|
||||
|
||||
|
||||
def test_uri_readonly():
|
||||
turso = TestTursoShell(flags="-q file:testing/testing_small.db?mode=ro", init_commands="")
|
||||
turso = TestTursoShell(flags="file:testing/testing_small.db?mode=ro", init_commands="")
|
||||
turso.run_test("read-only-uri-reads-work", "SELECT COUNT(*) FROM demo;", "5")
|
||||
turso.run_test_fn(
|
||||
"INSERT INTO demo (id, value) values (6, 'demo');",
|
||||
|
||||
@@ -105,8 +105,6 @@ class TestTursoShell:
|
||||
):
|
||||
if exec_name is None:
|
||||
exec_name = os.environ.get("SQLITE_EXEC", "./scripts/limbo-sqlite3")
|
||||
if flags == "":
|
||||
flags = "-q"
|
||||
self.config = ShellConfig(exe_name=exec_name, flags=flags)
|
||||
if use_testing_db:
|
||||
self.init_test_db()
|
||||
|
||||
@@ -32,7 +32,7 @@ def bench_one(vfs: str, sql: str, iterations: int) -> list[float]:
|
||||
"""
|
||||
shell = TestTursoShell(
|
||||
exec_name=str(LIMBO_BIN),
|
||||
flags=f"-q -m list --vfs {vfs} {DB_FILE}",
|
||||
flags=f"-m list --vfs {vfs} {DB_FILE}",
|
||||
init_commands="",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user