X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Ftest.sh;h=cb118beb4e3288f1cbea0f6ef4d2ae51e7e6329f;hb=1725768e2eaf68a1445f1aef9d95da0bf461e88b;hp=600f0955d3a9d0e47e4f87cc1f5ba457ede73d99;hpb=ad45bc892752571fec46b21564e4683c074f1d46;p=xml-template diff --git a/tests/test.sh b/tests/test.sh index 600f095..cb118be 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -4,7 +4,7 @@ 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 php4 php5 python ruby c++0x" + LANGUAGES="perl perl-sax php4 php5 python ruby c++11" fi for L in $LANGUAGES; do @@ -24,14 +24,17 @@ for L in $LANGUAGES; do 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 fi if [ "$L" = "ruby" ]; then ruby -I../ruby ../ruby/$T.rb > $TEMPFILE fi - if [ "$L" = "c++0x" ]; then - ( cd ../c++0x && make -s $T ) && ../c++0x/$T > $TEMPFILE + if [ "$L" = "c++11" ]; then + ( cd ../c++11 && make -s $T ) && ../c++11/$T > $TEMPFILE fi perl ./xml-diff.pl $TEMPFILE reference/$T.xml