X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Ftest.sh;fp=tests%2Ftest.sh;h=b66ed3812645e2d07d9fba3b6b64aec990ea568b;hb=7d86bc42d79ffdf9a9bd601716c2f832a123a1ce;hp=24a105b616c491ee0cae8ccaf64d64e405d93a11;hpb=0b5e750eae0d8d58ae293beeaf29368431d5b618;p=xml-template diff --git a/tests/test.sh b/tests/test.sh index 24a105b..b66ed38 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -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