From 4155b1d98117d8ffa9e5d95d2620264a78580e25 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Wed, 6 Sep 2006 16:14:34 +0200 Subject: [PATCH 1/1] 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 @@ + + + + Cloning test + + +

My favourite color is red; I like that very much. + All my favourite things:

+ + + diff --git a/tests/reference/attribute2.xml b/tests/reference/attribute2.xml new file mode 100644 index 0000000..d972834 --- /dev/null +++ b/tests/reference/attribute2.xml @@ -0,0 +1,16 @@ + + + + Cloning test + + +

My favourite color is blue; I like that very much. + All my favourite things:

+ + + diff --git a/tests/reference/clone.xml b/tests/reference/clone.xml new file mode 100644 index 0000000..9fca40b --- /dev/null +++ b/tests/reference/clone.xml @@ -0,0 +1,16 @@ + + + + Cloning test + + +

My favourite color is blue; I like that very much. + All my favourite things:

+ + + diff --git a/tests/reference/include.xml b/tests/reference/include.xml new file mode 100644 index 0000000..0bd8a4c --- /dev/null +++ b/tests/reference/include.xml @@ -0,0 +1,19 @@ + + + + Main HTML title + + +

Nice heading here

+ +

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 @@ + + + + A very basic example + + +

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.2