mirror of
https://salsa.debian.org/debian-keyring/keyring.git
synced 2026-01-11 20:06:35 +00:00
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.
33 lines
575 B
Bash
Executable file
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
|