debian-keyring/runtests
Gunnar Wolf a9833e1136
Use pgp instead of gpg when referring to keyrings and pathnames (Closes: #1101418). Thanks to Guillem for the work put into this!
These keyrings and pathnames contain OpenPGP certificates, and are
not vendor specific, so naming them with an extension after GnuPG in
detriment to the other multiple OpenPGP implementations does not
promote the interoperability one would expect from that ecosystem.

Given that these files are API, and will have external references,
we add backwards compatibility symlinks for now for the .deb package
but hardlinks for now for the infrastructure (to not entangle these
changes), but which should be considered deprecated and should eventually
(in the future) be obsoleted and removed.
2025-04-25 13:15:36 -06:00

33 lines
575 B
Bash
Executable file

#!/bin/sh
set -e
fail=0
total=0
for keyring in debian-keyring.pgp debian-maintainers.pgp debian-nonupload.pgp; do
if [ ! -e output/keyrings/$keyring ]; then
echo "** $keyring does not exist, cannot run test suite" >&2
exit 1
fi
done
export GNUPGHOME=`pwd`/gpghomedir
mkdir "$GNUPGHOME"
chmod 700 "$GNUPGHOME"
for t in t/*.t; do
total=`expr $total + 1`
if ! $t; then
echo "test $t failed" >&2
fail=`expr $fail + 1`
fi
done
rm -r "$GNUPGHOME"
if [ "$fail" -gt 0 ]; then
echo "** failed $fail/$total tests" >&2
exit 1
else
echo "** all tests succeeded"
fi