#!/bin/sh # note, run as ./report.sh > report.out; mv report.out report.html # do not direct output directly to report.html as the script attempts to read that file and it may be overwritten prematurely. vendors="SUN IAIK IBM ORCL UPC" # warning - HTML had manual edit to link IBM N/A to reason #vendors="IBM" directories="xpointer dname" #directories="xpointer" testdoc=../xmlsig-interop-doc/testcases.html home=`pwd` if test -f report.html ; then sed -n -e '/
/,/<\/div>/p' report.html > summary.html fi echo '' echo '' echo 'Implementation report XML Signature, 2nd Edition' echo '' echo '' echo '' echo "" echo "" echo 'W3C Logo' echo "

Implementation report for XML Signature, Second Edition

" echo '
Author
Frederick Hirsch
Thomas Roessler
Last Modified
$Date: 2008/02/15 15:16:22 $ by $Author: fhirsch3 $
' echo '

Overview

' cat summary.html echo '

Test results

' echo "" done echo "" for d in $directories; do cd $d testcases=`cat inventory` for t in $testcases ; do echo '' u=`echo $d-$t|sed 's/\.-//'` echo '' sunfile="${t}-SUN.xml" # test by comparing SUN digest value with others. # need to consider cases of both and sundigest=`cat $sunfile|sed -n '//p' |sed 's/.*\//'|sed 's/\<\/DigestValue\>.*//'` for v in $vendors ; do thefile="${t}-${v}.xml" if test -f $thefile ; then # ibm test cases were verified during interop by all participants by verifying the signatures. IBM used namespace prefixes # and had different digest and signature values if [ ${v} = "IBM" ] then echo '' rm -f ${t}-${v}.fail else digest=`cat $thefile |sed -n '//p' |sed 's/.*\//'|sed 's/\<\/DigestValue\>.*//'` if [ "${sundigest}" = "${digest}" ] then echo '' rm -f ${t}-${v}.fail else echo '' echo "Reference digest=${sundigest} Value=${digest}" > ${t}-${v}.fail fi fi else echo '' fi done echo '' done cd $home done echo '
" for v in $vendors ; do echo "${v}
' $t '' echo 'PASS' echo '' echo 'PASS' echo 'FAILN/A
' echo '

Differences

' found=0 for d in $directories; do cd $d for f in *.fail ; do if test -f "$f" ; then base=`basename $f .fail` echo '

'$base'

' echo '
'
		sed -e 's/'
		found=1
	  fi
	done
	cd $home
done

if test "$found" = "0"
then
	echo "

None observed.

" fi echo ''