aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / scripts / pipeline-proofs / run-all.sh
| 1 | #!/usr/bin/env bash |
| 2 | # Run every proof (00 and 13-23) against each repository given, append the PROOF lines to RESULTS_LOG. |
| 3 | # Usage: run-all.sh <repo-path> [<repo-path>...] Env: RESULTS_LOG (default /tmp/pipeline-proofs.log) |
| 4 | set -u |
| 5 | here="$(cd "$(dirname "$0")" && pwd)" |
| 6 | export RESULTS_LOG=${RESULTS_LOG:-/tmp/pipeline-proofs.log} |
| 7 | [ $# -ge 1 ] || { echo "usage: run-all.sh <repo-path> [<repo-path>...]" >&2; exit 2; } |
| 8 | proven=0; failed=0; na=0 |
| 9 | for repo in "$@"; do |
| 10 | echo "=== $repo ===" |
| 11 | for s in "$here"/00-*.sh "$here"/1[3-9]-*.sh "$here"/2[0-3]-*.sh; do |
| 12 | [ -x "$s" ] || continue |
| 13 | "$s" "$repo"; rc=$? |
| 14 | case $rc in 0) proven=$((proven+1)) ;; 3) na=$((na+1)) ;; *) failed=$((failed+1)) ;; esac |
| 15 | echo |
| 16 | done |
| 17 | done |
| 18 | echo "SUMMARY proven=$proven failed=$failed not_applicable=$na (log: $RESULTS_LOG)" |
| 19 | [ "$failed" -eq 0 ] |