3 if [ -z "$TESTS" ]; then
4 TESTS="passthru simple clone include attribute attribute2 attribute-empty"
6 if [ -z "$LANGUAGES" ]; then
7 LANGUAGES="perl php python"
10 for L in $LANGUAGES; do
12 printf "%-30s" "Testing $L/$T..."
13 TEMPFILE=$( tempfile )
15 if [ "$L" = "perl" ]; then
16 perl -I../perl ../perl/$T.pl > $TEMPFILE
18 if [ "$L" = "php" ]; then
19 php4-cgi -q ../php/$T.php > $TEMPFILE
21 if [ "$L" = "python" ]; then
22 python ../python/$T.py > $TEMPFILE
25 perl ./xml-diff.pl $TEMPFILE reference/$T.xml