From: sgunderson@bigfoot.com <> Date: Wed, 6 Sep 2006 14:14:34 +0000 (+0200) Subject: Add reference files, and fix a few bugs in the test harness. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4155b1d98117d8ffa9e5d95d2620264a78580e25;hp=005e885b91ffbe4ac3bd84215d10e781ac92128e;p=xml-template Add reference files, and fix a few bugs in the test harness. --- diff --git a/tests/reference/attribute.xml b/tests/reference/attribute.xml new file mode 100644 index 0000000..ac199bf --- /dev/null +++ b/tests/reference/attribute.xml @@ -0,0 +1,16 @@ + + +
+My favourite color is red; I like that very much. + All my favourite things:
+My favourite color is blue; I like that very much. + All my favourite things:
+My favourite color is blue; I like that very much. + All my favourite things:
+This document is simply being included into another document by + means of attaching DOM nodes together. My favourite color is now + red.
+ +Here is a second paragraph.
+ +Copyright information goes here.
+ + diff --git a/tests/reference/simple.xml b/tests/reference/simple.xml new file mode 100644 index 0000000..c79813e --- /dev/null +++ b/tests/reference/simple.xml @@ -0,0 +1,9 @@ + + + +Hello world!
+ + diff --git a/tests/test.sh b/tests/test.sh index fb31c5f..bbd9ccf 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -18,7 +18,7 @@ for L in $LANGUAGES; do python ../python/$T.py > $TEMPFILE fi - ./xml-diff.pl reference/$T.xml 2>/dev/null + perl ./xml-diff.pl $TEMPFILE reference/$T.xml 2>/dev/null if [ $? = 0 ]; then echo "passed." else