X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Ftest.sh;h=1b66e17498ad17243d196a41a99c155e8ca81e0e;hb=cba8eef965a5c243cd8bf51059f3bdd98793a22c;hp=cb118beb4e3288f1cbea0f6ef4d2ae51e7e6329f;hpb=f08956eaa3c6683d1767e60862d0555846581902;p=xml-template diff --git a/tests/test.sh b/tests/test.sh index cb118be..1b66e17 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++11" + LANGUAGES="perl perl-sax php4 php5 python python3 ruby c++11" fi for L in $LANGUAGES; do @@ -28,7 +28,10 @@ for L in $LANGUAGES; do ( 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 + python2 ../python/$T.py > $TEMPFILE + fi + if [ "$L" = "python3" ]; then + python3 ../python/$T.py > $TEMPFILE fi if [ "$L" = "ruby" ]; then ruby -I../ruby ../ruby/$T.rb > $TEMPFILE