]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Add a new "attribute3" test, for testing undef/NULL/None behaviour (new
[xml-template] / tests / test.sh
index 2587b4451646bc1c8e564abae8323572222ed2b0..38ab5e4a7336f9919aca5bd3bf1c58f7e4ee1713 100755 (executable)
@@ -1,11 +1,15 @@
 #! /bin/sh
 
-TESTS="passthru 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 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