]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Adjust the columns in test.sh.
[xml-template] / tests / test.sh
index 269f2f8c1cf66864b67cf48151aa936c072eced0..19c6cf989dfbddf67eaa921bc8558a9c1d187d27 100755 (executable)
@@ -1,18 +1,22 @@
 #! /bin/sh
 
-TESTS="simple clone include attribute attribute2"
-LANGUAGES="perl php python"
+if [ -z "$TESTS" ]; then
+       TESTS="passthru simple clone include attribute attribute2 attribute-empty"
+fi
+if [ -z "$LANGUAGES" ]; then
+       LANGUAGES="perl 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" = "php" ]; then
-                       php4-cgi ../php/$T.php > $TEMPFILE
+                       php4-cgi -q ../php/$T.php > $TEMPFILE
                fi
                if [ "$L" = "python" ]; then
                        python ../python/$T.py > $TEMPFILE