mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-05 19:18:25 +00:00
Rename testing/check-deb-version.sh to check-package-versions.sh and restructure it so the workflow extraction, the derivation run and the assertions take the workflow, job and step names as arguments. The Debian cases and wiring checks are unchanged in substance; the structure lets other packaging workflows' version derivations be checked by the same script. One change in exit semantics: a derivation step that runs cleanly but does not write a declared output is now a failed check (exit 1) rather than "could not run" (exit 2), because the harness did run and it is the workflow that is wrong. An empty version is also refused before it reaches dpkg, which would otherwise order it below everything, and a dpkg exit other than 0 or 1 is reported as "could not compare". ci.yml and ci-local.sh call the renamed script under the package-versions name.