]> 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 14f26a9bacc7b2520b19db4c7ad2d1da5f49f2d3..24a105b616c491ee0cae8ccaf64d64e405d93a11 100755 (executable)
@@ -1,16 +1,23 @@
 #! /bin/sh
 
-TESTS="simple clone include attribute attribute2"
-LANGUAGES="perl php python"
+if [ -z "$TESTS" ]; then
+       TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty"
+fi
+if [ -z "$LANGUAGES" ]; then
+       LANGUAGES="perl perl-sax php python"
+fi
 
 for L in $LANGUAGES; do
        for T in $TESTS; do
-               echo -n "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