X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Ftest.sh;h=600f0955d3a9d0e47e4f87cc1f5ba457ede73d99;hb=ad45bc892752571fec46b21564e4683c074f1d46;hp=3b281158f06c1bd37d2266d8ccd5bf8d256d73c9;hpb=bcaa7bbbb271d7d83017218b5e2965c239aaad8d;p=xml-template diff --git a/tests/test.sh b/tests/test.sh index 3b28115..600f095 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" + LANGUAGES="perl perl-sax php4 php5 python ruby c++0x" 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++0x" ]; then + ( cd ../c++0x && make -s $T ) && ../c++0x/$T > $TEMPFILE + fi perl ./xml-diff.pl $TEMPFILE reference/$T.xml if [ $? = 0 ]; then