]> granicus.if.org Git - libexpat/commitdiff
Fix "make run-xmltest"
authorSebastian Pipping <sebastian@pipping.org>
Sat, 30 Apr 2016 19:11:02 +0000 (21:11 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 30 Apr 2016 19:11:02 +0000 (21:11 +0200)
expat/tests/xmltest.sh

index 793a5cc2819bb4cbc4714cf337e5783b8bdf75b2..64a17eec06f5b16c83fa02fd2c517589b740cd9f 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /usr/bin/env bash
 
 #   EXPAT TEST SCRIPT FOR W3C XML TEST SUITE
 
 # produced by xmlwf conforms to an older definition of canonical XML
 # and does not generate notation declarations.
 
+shopt -s nullglob
+
 MYDIR="`dirname \"$0\"`"
 cd "$MYDIR"
 MYDIR="`pwd`"
 XMLWF="`dirname \"$MYDIR\"`/xmlwf/xmlwf"
 # XMLWF=/usr/local/bin/xmlwf
-TS="$MYDIR/XML-Test-Suite"
+TS="$MYDIR"
 # OUTPUT must terminate with the directory separator.
 OUTPUT="$TS/out/"
 # OUTPUT=/home/tmp/xml-testsuite-out/
@@ -100,7 +102,7 @@ for xmldir in ibm/valid/P* \
       RunXmlwfWF "$xmlfile" "$xmldir/"
       UpdateStatus $?
   done
-  rm outfile
+  rm -f outfile
 done
 
 cd "$TS/xmlconf/oasis"