From 4155b1d98117d8ffa9e5d95d2620264a78580e25 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Wed, 6 Sep 2006 16:14:34 +0200 Subject: [PATCH] Add reference files, and fix a few bugs in the test harness. --- tests/reference/attribute.xml | 16 ++++++++++++++++ tests/reference/attribute2.xml | 16 ++++++++++++++++ tests/reference/clone.xml | 16 ++++++++++++++++ tests/reference/include.xml | 19 +++++++++++++++++++ tests/reference/simple.xml | 9 +++++++++ tests/test.sh | 2 +- 6 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 tests/reference/attribute.xml create mode 100644 tests/reference/attribute2.xml create mode 100644 tests/reference/clone.xml create mode 100644 tests/reference/include.xml create mode 100644 tests/reference/simple.xml 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 -- 2.39.5