]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Add a trivial new “pass through” test.
[xml-template] / tests / test.sh
index fb31c5f2de1d12e3d3401085304bcdfc95c13a7d..2587b4451646bc1c8e564abae8323572222ed2b0 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-TESTS="simple clone include attribute attribute2"
+TESTS="passthru simple clone include attribute attribute2"
 LANGUAGES="perl php python"
 
 for L in $LANGUAGES; do
@@ -12,17 +12,15 @@ for L in $LANGUAGES; do
                        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" = "php" ]; then
+               if [ "$L" = "python" ]; then
                        python ../python/$T.py > $TEMPFILE
                fi
 
-               ./xml-diff.pl reference/$T.xml 2>/dev/null
+               perl ./xml-diff.pl $TEMPFILE reference/$T.xml
                if [ $? = 0 ]; then     
                        echo "passed."
-               else 
-                       echo "FAILED."
                fi
 
                rm -f $TEMPFILE