X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Ftest.sh;h=9433d173b72355cd37a86e34780054086e999094;hb=463ec2a071522ca887d1548bc1a5f01ed0263b01;hp=19c6cf989dfbddf67eaa921bc8558a9c1d187d27;hpb=17ac5e1d2132faf14f3cb23a3511ccb891046154;p=xml-template diff --git a/tests/test.sh b/tests/test.sh index 19c6cf9..9433d17 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 attribute-empty" + TESTS="passthru simple clone include attribute attribute2 attribute3 attribute-empty namespace namespace2 structure" fi if [ -z "$LANGUAGES" ]; then - LANGUAGES="perl php python" + LANGUAGES="perl perl-sax php4 php5 python ruby c++0x" fi for L in $LANGUAGES; do @@ -15,12 +15,24 @@ for L in $LANGUAGES; do if [ "$L" = "perl" ]; then perl -I../perl ../perl/$T.pl > $TEMPFILE fi - if [ "$L" = "php" ]; then - php4-cgi -q ../php/$T.php > $TEMPFILE + if [ "$L" = "perl-sax" ]; then + perl -I../perl-sax ../perl-sax/$T.pl > $TEMPFILE + fi + 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 fi + if [ "$L" = "ruby" ]; then + ruby -I../ruby ../ruby/$T.rb > $TEMPFILE + fi + if [ "$L" = "c++0x" ]; then + ( cd ../c++0x && make $T ) && ../c++0x/$T $TEMPFILE + fi perl ./xml-diff.pl $TEMPFILE reference/$T.xml if [ $? = 0 ]; then