version 1.1.1.1, 2012/02/21 23:00:54
|
version 1.1.1.2, 2014/06/15 16:09:43
|
Line 6
|
Line 6
|
# w3c.org xml test suite, available from |
# w3c.org xml test suite, available from |
# http://www.w3.org/XML/Test/xmlts20020606.zip. |
# http://www.w3.org/XML/Test/xmlts20020606.zip. |
|
|
# To run this script, first set XMLWF so that xmlwf can be | # To run this script, first set XMLWF below so that xmlwf can be |
# found, then set the output directory with OUTPUT. |
# found, then set the output directory with OUTPUT. |
|
|
# The script lists all test cases where Expat shows a discrepancy |
# The script lists all test cases where Expat shows a discrepancy |
Line 39 RunXmlwfNotWF() {
|
Line 39 RunXmlwfNotWF() {
|
$XMLWF -p "$file" > outfile || return $? |
$XMLWF -p "$file" > outfile || return $? |
read outdata < outfile |
read outdata < outfile |
if test "$outdata" = "" ; then |
if test "$outdata" = "" ; then |
echo "Expected well-formed: $reldir$file" | echo "Expected not well-formed: $reldir$file" |
return 1 |
return 1 |
else |
else |
return 0 |
return 0 |
Line 55 RunXmlwfWF() {
|
Line 55 RunXmlwfWF() {
|
read outdata < outfile |
read outdata < outfile |
if test "$outdata" = "" ; then |
if test "$outdata" = "" ; then |
if [ -f "out/$file" ] ; then |
if [ -f "out/$file" ] ; then |
diff "$OUTPUT$reldir$file" "out/$file" > outfile | diff -u "$OUTPUT$reldir$file" "out/$file" > outfile |
if [ -s outfile ] ; then |
if [ -s outfile ] ; then |
cp outfile "$OUTPUT$reldir$file.diff" |
cp outfile "$OUTPUT$reldir$file.diff" |
echo "Output differs: $reldir$file" |
echo "Output differs: $reldir$file" |
Line 117 rm outfile
|
Line 117 rm outfile
|
|
|
cd "$TS/xmlconf" |
cd "$TS/xmlconf" |
for xmldir in ibm/not-wf/P* \ |
for xmldir in ibm/not-wf/P* \ |
|
ibm/not-wf/p28a \ |
ibm/not-wf/misc \ |
ibm/not-wf/misc \ |
xmltest/not-wf/ext-sa \ |
xmltest/not-wf/ext-sa \ |
xmltest/not-wf/not-sa \ |
xmltest/not-wf/not-sa \ |