#!/bin/bash
cd /home/rafa/joomla-migration/tools/e2e/verify
exec > run.log 2>&1
echo "=== START $(date -u +%FT%TZ) ==="
echo "urls: $(python3 -c 'import json;print(len(json.load(open("urls.json"))))')"
echo "--- crawl (CONC=3) ---"
CONC=3 node crawl.cjs
echo "crawl lines: $(wc -l < report.jsonl)"
echo "--- analyze ---"
.venv/bin/python analyze.py
echo "--- link_audit ---"
python3 link_audit.py
echo "=== DONE $(date -u +%FT%TZ) ==="
