33 lines
606 B
Bash
Executable File
33 lines
606 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Verify the SOL PROFILE TRIAGE report is present and contains measured content.
|
|
set -u
|
|
R=/root/troupe-standup/wizard-work/sol/sol-profile-triage-report.md
|
|
fail=0
|
|
|
|
if [ ! -f "$R" ]; then
|
|
echo "MISSING report: $R"
|
|
fail=1
|
|
fi
|
|
|
|
if ! grep -q "^# SOL PROFILE TRIAGE REPORT" "$R"; then
|
|
echo "MISSING report header"
|
|
fail=1
|
|
fi
|
|
|
|
if ! grep -q "file-count" "$R"; then
|
|
echo "MISSING file-count line"
|
|
fail=1
|
|
fi
|
|
|
|
if ! grep -q "^| category |" "$R"; then
|
|
echo "MISSING category rollup"
|
|
fail=1
|
|
fi
|
|
|
|
if [ "$fail" -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
echo "SOL PROFILE TRIAGE VERIFIED (GREEN)"
|
|
exit 0
|