summaryrefslogtreecommitdiff
path: root/tests/documents
diff options
context:
space:
mode:
Diffstat (limited to 'tests/documents')
-rw-r--r--tests/documents/Makefile.am42
-rw-r--r--tests/documents/bredfort.out (renamed from tests/documents/result.xhtml)0
-rw-r--r--tests/documents/bredfort.xml (renamed from tests/documents/index.xml)0
-rw-r--r--tests/documents/fragment.out (renamed from tests/documents/fragment.result)0
-rw-r--r--tests/documents/message.err (renamed from tests/documents/message.result)0
-rw-r--r--tests/documents/test.out (renamed from tests/documents/test.result)0
-rw-r--r--tests/documents/test_bad.err4
-rw-r--r--tests/documents/test_bad.out (renamed from tests/documents/test_bad.result)0
-rw-r--r--tests/documents/test_bad.xsl16
9 files changed, 18 insertions, 44 deletions
diff --git a/tests/documents/Makefile.am b/tests/documents/Makefile.am
deleted file mode 100644
index 97c9fd8d..00000000
--- a/tests/documents/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-$(top_builddir)/xsltproc/xsltproc:
- @(cd ../../xsltproc ; $(MAKE) xsltproc)
-
-EXTRA_DIST = \
- bredfort.css bredfort.xsl doc_file.xml docfile.xml \
- fragment2.xml fragment.result fragment.xml fragment.xsl \
- index.xml menu.xml message.result message.xml message.xsl \
- result.xhtml system.xml test_bad.err test_bad.result \
- test_bad.xml test.result test.xml test.xsl worklog.xml
-
-CLEANFILES = .memdump
-
-valgrind:
- @echo '## Running the regression tests under Valgrind'
- $(MAKE) CHECKER='libtool --mode=execute valgrind -q --leak-check=full' tests
-
-test tests: $(top_builddir)/xsltproc/xsltproc
- @(echo > .memdump)
- @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/bredfort.xsl $(srcdir)/index.xml > result ; \
- diff $(srcdir)/result.xhtml result; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
- rm -f result)
- @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test.xml > result ; \
- diff $(srcdir)/test.result result; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
- rm -f result)
- @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test_bad.xml > result 2>err ; \
- diff $(srcdir)/test_bad.result result; \
- diff $(srcdir)/test_bad.err err; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
- rm -f result err)
- @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/message.xsl $(srcdir)/message.xml > result 2>&1 ; \
- diff $(srcdir)/message.result result; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
- rm -f result)
- @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/fragment.xsl $(srcdir)/fragment.xml > result 2>&1 ; \
- diff $(srcdir)/fragment.result result; \
- grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\
- rm -f result)
-
diff --git a/tests/documents/result.xhtml b/tests/documents/bredfort.out
index f02fbb88..f02fbb88 100644
--- a/tests/documents/result.xhtml
+++ b/tests/documents/bredfort.out
diff --git a/tests/documents/index.xml b/tests/documents/bredfort.xml
index 3ca2af32..3ca2af32 100644
--- a/tests/documents/index.xml
+++ b/tests/documents/bredfort.xml
diff --git a/tests/documents/fragment.result b/tests/documents/fragment.out
index 2c4565b4..2c4565b4 100644
--- a/tests/documents/fragment.result
+++ b/tests/documents/fragment.out
diff --git a/tests/documents/message.result b/tests/documents/message.err
index 965a84b4..965a84b4 100644
--- a/tests/documents/message.result
+++ b/tests/documents/message.err
diff --git a/tests/documents/test.result b/tests/documents/test.out
index faa008cc..faa008cc 100644
--- a/tests/documents/test.result
+++ b/tests/documents/test.out
diff --git a/tests/documents/test_bad.err b/tests/documents/test_bad.err
index 52e8b02c..e2ec793e 100644
--- a/tests/documents/test_bad.err
+++ b/tests/documents/test_bad.err
@@ -1,2 +1,2 @@
-warning: failed to load external entity "foofile.xml"
-warning: failed to load external entity "foo_file.xml"
+I/O warning : failed to load external entity "foofile.xml"
+I/O warning : failed to load external entity "foo_file.xml"
diff --git a/tests/documents/test_bad.result b/tests/documents/test_bad.out
index 2b636bfb..2b636bfb 100644
--- a/tests/documents/test_bad.result
+++ b/tests/documents/test_bad.out
diff --git a/tests/documents/test_bad.xsl b/tests/documents/test_bad.xsl
new file mode 100644
index 00000000..5c5aab09
--- /dev/null
+++ b/tests/documents/test_bad.xsl
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+<xsl:output method="text" encoding="iso-8859-1"/>
+
+<xsl:template match="/files/file">
+ <xsl:variable name="file" select="document(@name)"/>
+ <xsl:if test="not($file)">
+ <xsl:text>Can't Open File: </xsl:text>
+ <xsl:value-of select="@name"/>
+ </xsl:if>
+ <xsl:value-of select="$file/tag1"/>
+</xsl:template>
+
+</xsl:stylesheet>