]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Tweak C++0x API a bit, to prepare for include. Also, output to stdout instead of...
[xml-template] / tests / test.sh
index b66ed3812645e2d07d9fba3b6b64aec990ea568b..600f0955d3a9d0e47e4f87cc1f5ba457ede73d99 100755 (executable)
@@ -1,10 +1,10 @@
 #! /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++0x"
 fi
 
 for L in $LANGUAGES; do
@@ -18,8 +18,11 @@ 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" = "python" ]; then
                        python ../python/$T.py > $TEMPFILE
@@ -27,6 +30,9 @@ for L in $LANGUAGES; do
                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
+               fi
 
                perl ./xml-diff.pl $TEMPFILE reference/$T.xml
                if [ $? = 0 ]; then