#! /bin/sh
if [ -z "$TESTS" ]; then
- TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2"
+ 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"
+ LANGUAGES="perl perl-sax php4 php5 python ruby c++11"
fi
for L in $LANGUAGES; do
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
+ if [ "$L" = "php4" ]; then
+ php4-cgi -q ../php4/$T.php > $TEMPFILE
+ fi
+ if [ "$L" = "php5" ]; then
+ php5-cgi -q ../php5/$T.php > $TEMPFILE
+ fi
+ if [ "$L" = "php5-swig" ]; then
+ ( cd ../c++11 && make -s && cd ../php5-swig && make -s && sudo cp XML_Template_SWIG.so /usr/lib/php5/20090626+lfs ) && php5-cgi -q ../php5-swig/$T.php > $TEMPFILE
fi
if [ "$L" = "python" ]; then
python ../python/$T.py > $TEMPFILE
if [ "$L" = "ruby" ]; then
ruby -I../ruby ../ruby/$T.rb > $TEMPFILE
fi
+ if [ "$L" = "c++11" ]; then
+ ( cd ../c++11 && make -s $T ) && ../c++11/$T > $TEMPFILE
+ fi
perl ./xml-diff.pl $TEMPFILE reference/$T.xml
if [ $? = 0 ]; then