lab2
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
OUT="$ROOT/evidence/cache"
|
||||
GO="${GO:-go}"
|
||||
|
||||
cd "$ROOT"
|
||||
mkdir -p "$OUT"
|
||||
|
||||
{
|
||||
echo "# Cache consistency evidence (track 1)"
|
||||
echo "# generated: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
echo "# redis: ${TEST_REDIS_HOST:-localhost}:${TEST_REDIS_PORT:-6379} db=${TEST_REDIS_DB:-1}"
|
||||
echo
|
||||
"$GO" test -tags=integration -count=1 -v -timeout=5m \
|
||||
-run 'TestChatRepositorySuite|TestSessionRepositorySuite' \
|
||||
./internal/storage/redis/...
|
||||
} | tee "$OUT/consistency.txt"
|
||||
|
||||
echo "wrote $OUT/consistency.txt"
|
||||
Reference in New Issue
Block a user