Check packages upstream, test hampackcheck and the conf files, add CI

`hampackcheck packages` (and `make check-packages`) checks that every
package in packages.conf is in the repos or on the AUR and every Flatpak
is on Flathub, and fails if any is missing or couldn't be checked. Names
only provided by another package pass with a note.

New tests cover hampackcheck's version comparisons and package check, and
check compile.conf, binaries.conf, packages.conf and the desktop files for
missing or misspelt fields and paths that don't exist.

A Gitea workflow runs lint and tests on every push and pull request, and
the package check on those and weekly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-26 09:46:29 -07:00
co-authored by Claude Opus 5.5
parent bb5c7900d5
commit 8023b04024
7 changed files with 499 additions and 20 deletions
-5
View File
@@ -81,8 +81,3 @@ EOF
[ "$status" -eq 0 ]
[ "$(cat "$HOME/.local/bin/tool")" = "v1" ]
}
@test "binaries.conf entries all have a sha256" {
run grep -c '^sha256=' "$REPO/binaries.conf"
[ "$output" -eq "$(grep -c '^\[' "$REPO/binaries.conf")" ]
}