]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Hack the XML diff script so it can deal with comments in-between. (Is that
[xml-template] / tests / test.sh
index b03a657dd8aa076fb9193e2eff06873cbb804934..24a105b616c491ee0cae8ccaf64d64e405d93a11 100755 (executable)
@@ -1,20 +1,23 @@
 #! /bin/sh
 
 if [ -z "$TESTS" ]; then
-       TESTS="passthru simple clone include attribute attribute2 attribute-empty"
+       TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty"
 fi
 if [ -z "$LANGUAGES" ]; then
-       LANGUAGES="perl php python"
+       LANGUAGES="perl perl-sax php python"
 fi
 
 for L in $LANGUAGES; do
        for T in $TESTS; do
-               printf "%-30s" "Testing $L/$T..."
+               printf "%-35s" "Testing $L/$T..."
                TEMPFILE=$( tempfile )
 
                if [ "$L" = "perl" ]; then
                        perl -I../perl ../perl/$T.pl > $TEMPFILE
                fi
+               if [ "$L" = "perl-sax" ]; then
+                       perl -I../perl-sax ../perl-sax/$T.pl > $TEMPFILE
+               fi
                if [ "$L" = "php" ]; then
                        php4-cgi -q ../php/$T.php > $TEMPFILE
                fi