diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-01-13 22:29:51 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-01-13 22:29:51 +0000 |
commit | ed0f60dea291f7ef39a33f5e815f8ba90a72a90d (patch) | |
tree | d18f15a11a1b1a73ac3d3075ee25ddccef274a0d /tests | |
parent | 26897de4a7dd80c7e121af1308e2bbe799afbfb7 (diff) | |
download | libxslt-ed0f60dea291f7ef39a33f5e815f8ba90a72a90d.tar.gz libxslt-ed0f60dea291f7ef39a33f5e815f8ba90a72a90d.tar.bz2 libxslt-ed0f60dea291f7ef39a33f5e815f8ba90a72a90d.zip |
More general work, added for-each:
- test/Makefile.am test/REC*/Makefile.am: added first test
- libxslt/pattern.c libxslt/transform.c libxslt/xslt.c:
cleanup of nodes at reading of stylesheet, added support
for xsl:for-each and fixed a few recursion bugs
Daniel
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/REC1/Makefile.am | 13 | ||||
-rw-r--r-- | tests/REC1/result.xml | 28 | ||||
-rw-r--r-- | tests/REC2/Makefile.am | 13 |
4 files changed, 43 insertions, 15 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 083886fc..f682102d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -17,3 +17,7 @@ LDADDS = $(top_builddir)/libxslt/libxslt.la $(LIBXML_LIBS) #testevents_LDFLAGS = #testevents_DEPENDENCIES = $(DEPS) #testevents_LDADD = $(LDADDS) + +test: $(top_builddir)/libxslt/xsltproc + @(cd REC1 ; make test) + @(cd REC2 ; make test) diff --git a/tests/REC1/Makefile.am b/tests/REC1/Makefile.am new file mode 100644 index 00000000..a01976aa --- /dev/null +++ b/tests/REC1/Makefile.am @@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in + +$(top_builddir)/libxslt/xsltproc: + @(cd ../../libxslt ; make xsltproc) + +test: $(top_builddir)/libxslt/xsltproc + @(rm -f .memdump ; touch .memdump) + @($(top_builddir)/libxslt/xsltproc doc.xsl doc.xml > doc.res ; \ + diff result.xml doc.res ; \ + grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ + rm -f doc.res) + + diff --git a/tests/REC1/result.xml b/tests/REC1/result.xml index 4504627e..4e7836b3 100644 --- a/tests/REC1/result.xml +++ b/tests/REC1/result.xml @@ -1,18 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> <html xmlns="http://www.w3.org/TR/xhtml1/strict"> -<head> -<title>Document Title</title> -</head> -<body> -<h1>Document Title</h1> -<h2>Chapter Title</h2> -<h3>Section Title</h3> -<p>This is a test.</p> -<p class="note"> -<b>NOTE: </b>This is a note.</p> -<h3>Another Section Title</h3> -<p>This is <em>another</em> test.</p> -<p class="note"> -<b>NOTE: </b>This is another note.</p> -</body> + <head> + <title>Document Title</title> + </head> + <body> + <h1>Document Title</h1> + <h2>Chapter Title</h2> + <h3>Section Title</h3> + <p>This is a test.</p> + <p class="note"><b>NOTE: </b>This is a note.</p> + <h3>Another Section Title</h3> + <p>This is <em>another</em> test.</p> + <p class="note"><b>NOTE: </b>This is another note.</p> + </body> </html> diff --git a/tests/REC2/Makefile.am b/tests/REC2/Makefile.am new file mode 100644 index 00000000..a01976aa --- /dev/null +++ b/tests/REC2/Makefile.am @@ -0,0 +1,13 @@ +## Process this file with automake to produce Makefile.in + +$(top_builddir)/libxslt/xsltproc: + @(cd ../../libxslt ; make xsltproc) + +test: $(top_builddir)/libxslt/xsltproc + @(rm -f .memdump ; touch .memdump) + @($(top_builddir)/libxslt/xsltproc doc.xsl doc.xml > doc.res ; \ + diff result.xml doc.res ; \ + grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ + rm -f doc.res) + + |