[Pkg-privacy-commits] [msva-perl] 284/356: add echoes to tests to make up for lack of them in msva-query-agent output
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:05 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 1051bedef7d9d35c6c8d9e7a6b68eddc52e39863
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Fri Dec 31 01:32:01 2010 -0500
add echoes to tests to make up for lack of them in msva-query-agent output
---
tests/basic | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/basic b/tests/basic
index 5cc2723..c915398 100755
--- a/tests/basic
+++ b/tests/basic
@@ -90,12 +90,14 @@ runtests() {
for name in x y z; do
for ctype in $CERTTYPES; do
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https "${name}.example.net" "${ctype}" < "${WORKDIR}/pkc/x.${ctype}"
+ echo
done
done
# A shouldn't validate as A or B:
for name in a b; do
for ctype in $CERTTYPES; do
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https "${name} <${name}@example.net>" "${ctype}" client < "${WORKDIR}/pkc/a.${ctype}"
+ echo
done
done
@@ -106,12 +108,15 @@ runtests() {
echo "Testing bad data:"
# it should fail if we pass it the wrong kind of data:
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https x.example.net "x509der" < "${WORKDIR}/pkc/x.x509pem"
+ echo
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https x.example.net "x509pem" < "${WORKDIR}/pkc/x.x509der"
+ echo
echo "Done testing bad data."
for ctype in $CERTTYPES; do
# 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}"
+ echo
"${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 "e-mail" context
"${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent e-mail 'a <a at example.net>' "${ctype}" < "${WORKDIR}/pkc/a.${ctype}"
@@ -119,18 +124,22 @@ runtests() {
# but X should not validate as Y or Z:
for name in x y z; do
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https "${name}.example.net" "${ctype}" < "${WORKDIR}/pkc/x.${ctype}"
+ echo
done
# and A shouldn't validate as B:
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https "b <b at example.net>" "${ctype}" client < "${WORKDIR}/pkc/a.${ctype}"
+ echo
# neither Y nor Z should validate as any of them:
for src in y z; do
for targ in x y z; do
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https "${targ}.example.net" "${ctype}" < "${WORKDIR}/pkc/${src}.${ctype}"
+ echo
done
done
# B should also still not validate as itself:
! "${srcdir}"/test-msva msva-perl "${srcdir}"/test-msva msva-query-agent https "b <b at example.net>" "${ctype}" client < "${WORKDIR}/pkc/b.${ctype}"
+ echo
done
}
--
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