27 lines
725 B
Bash
Executable File
27 lines
725 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
TARGET_DIR="${1:-.}"
|
|
OUTPUT_DIR="${2:-tests/reports/agents}"
|
|
mkdir -p "$OUTPUT_DIR"
|
|
SUMMARY_FILE="$OUTPUT_DIR/performance_agent.md"
|
|
|
|
echo "# Agent Performance" > "$SUMMARY_FILE"
|
|
echo >> "$SUMMARY_FILE"
|
|
|
|
pushd "$TARGET_DIR" >/dev/null
|
|
if [[ -d tests/performance ]]; then
|
|
echo "- Dossier tests/performance présent." >> "$SUMMARY_FILE"
|
|
else
|
|
echo "- Dossier tests/performance manquant." >> "$SUMMARY_FILE"
|
|
fi
|
|
|
|
PROMPT=$(cat <<'EOF'
|
|
Propose un plan minimal de tests de performance reproductibles (outillage, métriques, critères de succès) et archivage des rapports.
|
|
EOF
|
|
)
|
|
scripts/agents/ai_prompt.sh "$PROMPT" >> "$SUMMARY_FILE" || true
|
|
|
|
echo "Rapport: $SUMMARY_FILE"
|
|
popd >/dev/null
|