mirror of
https://github.com/allankoechke/turso.git
synced 2026-12-02 17:46:54 +00:00
Scripts that hardcoded target/debug or target/release now ask the scripts/cargo-target-dir helper for cargo's actual artifact directory, so they keep working when CARGO_TARGET_DIR points elsewhere.
18 lines
619 B
Bash
Executable File
18 lines
619 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the directory where this script is located
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# Ask cargo where build artefacts live (honours CARGO_TARGET_DIR)
|
|
TARGET_DIR="$("$SCRIPT_DIR/cargo-target-dir")"
|
|
TURSODB="$TARGET_DIR/debug/tursodb"
|
|
|
|
# Add experimental features for testing
|
|
EXPERIMENTAL_FLAGS="--experimental-views --experimental-attach"
|
|
|
|
# if RUST_LOG is non-empty, enable tracing output
|
|
if [ -n "$RUST_LOG" ]; then
|
|
TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS -t testing/system/test.log "$@"
|
|
else
|
|
TESTING="true" "$TURSODB" -m list -q $EXPERIMENTAL_FLAGS "$@"
|
|
fi
|