]> git.sesse.net Git - xml-template/blobdiff - tests/test.sh
Hand-merge from borked repository. Main changes are a Ruby version (with
[xml-template] / tests / test.sh
index 24a105b616c491ee0cae8ccaf64d64e405d93a11..b66ed3812645e2d07d9fba3b6b64aec990ea568b 100755 (executable)
@@ -1,10 +1,10 @@
 #! /bin/sh
 
 if [ -z "$TESTS" ]; then
-       TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty"
+       TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2"
 fi
 if [ -z "$LANGUAGES" ]; then
-       LANGUAGES="perl perl-sax php python"
+       LANGUAGES="perl perl-sax php python ruby"
 fi
 
 for L in $LANGUAGES; do
@@ -24,6 +24,9 @@ for L in $LANGUAGES; do
                if [ "$L" = "python" ]; then
                        python ../python/$T.py > $TEMPFILE
                fi
+               if [ "$L" = "ruby" ]; then
+                       ruby -I../ruby ../ruby/$T.rb > $TEMPFILE
+               fi
 
                perl ./xml-diff.pl $TEMPFILE reference/$T.xml
                if [ $? = 0 ]; then