[Pkg-privacy-commits] [msva-perl] 266/356: add test for email context
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit f80b7904ee0b347f5d5cd3bfb9b2a8b2c8d5be90
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Sat Dec 25 14:50:37 2010 -0500
add test for email context
---
tests/basic | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/basic b/tests/basic
index 253a302..371f208 100755
--- a/tests/basic
+++ b/tests/basic
@@ -79,7 +79,8 @@ done
# and the same for the clients A and B
for name in a b; do
uid="${name} <${name}@example.net>"
- PEM2OPENPGP_USAGE_FLAGS=authenticate pem2openpgp "$uid" < "${WORKDIR}/sec/${name}.key" | gpg --import
+ # make user keys 'a' and 's' capable
+ PEM2OPENPGP_USAGE_FLAGS=authenticate,sign pem2openpgp "$uid" < "${WORKDIR}/sec/${name}.key" | gpg --import
# export fingerprint for openpgp4fpr
gpg --with-colons --fingerprint "=${uid}" | grep '^fpr:' | cut -d: -f10 > "${WORKDIR}/pkc/${name}.openpgp4fpr"
done
@@ -112,6 +113,8 @@ runtests() {
# X should now validate as X
"${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https x.example.net "${ctype}" < "${WORKDIR}/pkc/x.${ctype}"
"${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https 'a <a at example.net>' "${ctype}" client < "${WORKDIR}/pkc/a.${ctype}"
+ # also test "email" context
+ "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent email 'a <a at example.net>' "${ctype}" < "${WORKDIR}/pkc/a.${ctype}"
# but X should not validate as Y or Z:
for name in x y z; do
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list