From 1051bedef7d9d35c6c8d9e7a6b68eddc52e39863 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Fri, 31 Dec 2010 01:32:01 -0500 Subject: [PATCH] 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 ' "${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 ' "${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 " "${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 " "${ctype}" client < "${WORKDIR}/pkc/b.${ctype}" + echo done } -- 2.26.2