3 if [ -z "$TESTS" ]; then
4 TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2 structure"
6 if [ -z "$LANGUAGES" ]; then
7 LANGUAGES="perl perl-sax php4 php5 python ruby c++11"
10 for L in $LANGUAGES; do
12 printf "%-35s" "Testing $L/$T..."
13 TEMPFILE=$( tempfile )
15 if [ "$L" = "perl" ]; then
16 perl -I../perl ../perl/$T.pl > $TEMPFILE
18 if [ "$L" = "perl-sax" ]; then
19 perl -I../perl-sax ../perl-sax/$T.pl > $TEMPFILE
21 if [ "$L" = "php4" ]; then
22 php4-cgi -q ../php4/$T.php > $TEMPFILE
24 if [ "$L" = "php5" ]; then
25 php5-cgi -q ../php5/$T.php > $TEMPFILE
27 if [ "$L" = "python" ]; then
28 python ../python/$T.py > $TEMPFILE
30 if [ "$L" = "ruby" ]; then
31 ruby -I../ruby ../ruby/$T.rb > $TEMPFILE
33 if [ "$L" = "c++11" ]; then
34 ( cd ../c++11 && make -s $T ) && ../c++11/$T > $TEMPFILE
37 perl ./xml-diff.pl $TEMPFILE reference/$T.xml