]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Rename C++0x port to C++11, since that will be the official name.
[xml-template] / tests / test.sh
index 3b281158f06c1bd37d2266d8ccd5bf8d256d73c9..ba04ecd51f276e39b84ffb0372c0c7b94b57a5fc 100755 (executable)
@@ -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"
+       LANGUAGES="perl perl-sax php4 php5 python ruby c++11"
 fi
 
 for L in $LANGUAGES; do
@@ -30,6 +30,9 @@ for L in $LANGUAGES; do
                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