expat/tests xmltest.sh,1.2,1.3

"Karl Waclawek" <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/tests
In directory usw-pr-cvs1:/tmp/cvs-serv6844

Modified Files:
	xmltest.sh 
Log Message:
Included "invalid" test cases, to check if the parser reports them
as well-formed without errors.

Index: xmltest.sh
===================================================================
RCS file: /cvsroot/expat/expat/tests/xmltest.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- xmltest.sh	3 Sep 2002 23:19:30 -0000	1.2
+++ xmltest.sh	4 Sep 2002 03:04:44 -0000	1.3
@@ -14,7 +14,6 @@
 # output differs are prefixed with "Output differs:", and a diff file
 # is generated in the appropriate subdirectory under $OUTPUT.
 
-# The script does not use "invalid" test cases for validating parsers.
 # If there are output files provided, the script will use
 # output from xmlwf and compare the desired output against it.
 # However, one has to take into account that the canonical output
@@ -26,12 +25,11 @@
 MYDIR="`pwd`"
 XMLWF="`dirname \"$MYDIR\"`/xmlwf/xmlwf"
 # XMLWF=/usr/local/bin/xmlwf
-# XMLWF=f:/Libraries/XML/expat/xmlwf/release/xmlwf
 TS="$MYDIR/XML-Test-Suite"
-# OUTPUT must terminate with the directory separater.
+# OUTPUT must terminate with the directory separator.
 OUTPUT="$TS/out/"
 # OUTPUT=/home/tmp/xml-testsuite-out/
-# OUTPUT=f:/Libraries/XML/XML-Test-Suite/out/
+
 
 RunXmlwfNotWF() {
   $XMLWF $1 $2 > outfile || return $?
@@ -66,12 +64,20 @@
 SUCCESS=0
 ERROR=0
 
+##########################
+# well-formed test cases #
+##########################
+
 cd "$TS/xmlconf"
 for xmldir in ibm/valid/P*/ \
+              ibm/invalid/P*/ \
               xmltest/valid/ext-sa/ \
               xmltest/valid/not-sa/ \
+              xmltest/invalid/ \
+              xmltest/invalid/not-sa/ \
               xmltest/valid/sa/ \
-              sun/valid/ ; do
+              sun/valid/ \
+              sun/invalid/ ; do
   cd "$TS/xmlconf/$xmldir"
   mkdir -p "$OUTPUT$xmldir"
   for xmlfile in *.xml ; do
@@ -94,6 +100,10 @@
     fi
 done
 rm outfile
+
+##############################
+# not well-formed test cases #
+##############################
 
 cd "$TS/xmlconf"
 for xmldir in ibm/not-wf/P*/ \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.