set -eu
repository_root=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
cd "$repository_root"
if [ -z "${DATABASE_URL:-}" ]; then
printf '%s\n' "DATABASE_URL is required for the live cache-encryption contract." >&2
exit 2
fi
cargo test --locked --test live_cache_encryption \
live_encrypted_cache_round_trip_and_rejection_contract -- --ignored --nocapture