#! /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 "%-30s" "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" = "php" ]; then
+ if [ "$L" = "python" ]; then
python ../python/$T.py > $TEMPFILE
fi
- perl ./xml-diff.pl $TEMPFILE 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