add echoes to tests to make up for lack of them in msva-query-agent output
authorJameson Rollins <jrollins@finestructure.net>
Fri, 31 Dec 2010 06:32:01 +0000 (01:32 -0500)
committerJameson Rollins <jrollins@finestructure.net>
Fri, 31 Dec 2010 06:32:01 +0000 (01:32 -0500)
tests/basic

index 5cc272378b4c23f8d05eb869eaefccde1867c444..c915398e03f33d33533f5a92700e015eb76f4a00 100755 (executable)
@@ -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@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@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@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@example.net>" "${ctype}" client < "${WORKDIR}/pkc/b.${ctype}"
+       echo
     done
 }