]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Start a PHP5-to-C++11 SWIG layer (!).
[xml-template] / tests / test.sh
index ba04ecd51f276e39b84ffb0372c0c7b94b57a5fc..cb118beb4e3288f1cbea0f6ef4d2ae51e7e6329f 100755 (executable)
@@ -24,6 +24,9 @@ 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