mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
21 lines
No EOL
465 B
Bash
Executable file
21 lines
No EOL
465 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Check for special build time flags (e.g. `--enable-checksums`)
|
|
FEATURES=""
|
|
ARGS=()
|
|
for arg in "$@"; do
|
|
if [[ "$arg" == "--enable-checksums" ]]; then
|
|
FEATURES="--features checksum"
|
|
else
|
|
ARGS+=("$arg")
|
|
fi
|
|
done
|
|
|
|
cargo build $FEATURES -p turso_whopper
|
|
|
|
echo "Running Whopper in an infinite loop in 'chaos' mode..."
|
|
while true; do
|
|
time RUST_BACKTRACE=full ./target/debug/turso_whopper --mode chaos "${ARGS[@]}"
|
|
done |