#! /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 namespace namespace2 structure"
+fi
+if [ -z "$LANGUAGES" ]; then
+ LANGUAGES="perl perl-sax php python ruby"
+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
if [ "$L" = "python" ]; then
python ../python/$T.py > $TEMPFILE
fi
+ if [ "$L" = "ruby" ]; then
+ ruby -I../ruby ../ruby/$T.rb > $TEMPFILE
+ fi
perl ./xml-diff.pl $TEMPFILE reference/$T.xml
if [ $? = 0 ]; then