#!/usr/bin/env bash # tests/entries.txt (the list of record: the gate reads it) and the Entries table of docs/plans/0040-release-pipeline.md say # the same entries, in the same order, with the same both|staging (the third column, seconds, is the gate's: scripts/check-shards.sh). set -euo pipefail cd "$(dirname "$0")/.." diff <(awk '!/^#/ {print $1, $2}' tests/entries.txt) \ <(sed -n 's/^| \(00[0-9][0-9]:[a-z0-9]*\) | \(\*staging\*\)\{0,1\}.*/\1 \2/p' docs/plans/0040-release-pipeline.md | sed 's/ \*staging\*$/ staging/; s/ $/ both/')