Skip to content

Commit

Permalink
preparing to make testsuite releases along with code source releases …
Browse files Browse the repository at this point in the history
…fixed

* xstc/Makefile.am README README.tests Makefile.tests Makefile.am:
  preparing to make testsuite releases along with code source releases
* gentest.py testapi.c: fixed a couple of problem introduced by
  the new Schemas support for Readers
* xpath.c: fixed the XPath attribute:: bug #309580, #309864 in a crude
  but simple way.
* xmlschemas.c include/libxml/tree.h: fixed a couple of problems
  raised by the doc builder.
* doc/*: made rebuild
Daniel
  • Loading branch information
Daniel Veillard committed Jul 10, 2005
1 parent df4223e commit 1f33c4d
Show file tree
Hide file tree
Showing 48 changed files with 9,512 additions and 9,121 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Sun Jul 10 23:33:41 CEST 2005 Daniel Veillard <[email protected]>

* xstc/Makefile.am README README.tests Makefile.tests Makefile.am:
preparing to make testsuite releases along with code source releases
* gentest.py testapi.c: fixed a couple of problem introduced by
the new Schemas support for Readers
* xpath.c: fixed the XPath attribute:: bug #309580, #309864 in a crude
but simple way.
* xmlschemas.c include/libxml/tree.h: fixed a couple of problems
raised by the doc builder.
* doc/*: made rebuild

Sun Jul 10 21:51:16 CEST 2005 Daniel Veillard <[email protected]>

* xmlschemas.c: fixed a bug introduced on last commit
Expand Down
7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -1063,13 +1063,15 @@ cleanup:

dist-hook: cleanup libxml2.spec
-cp libxml2.spec $(distdir)
(cd $(srcdir) ; tar -cf - --exclude CVS win32 macos vms bakefile test result SAXresult ) | (cd $(distdir); tar xf -)
(cd $(srcdir) ; tar -cf - --exclude CVS win32 macos vms bakefile test result) | (cd $(distdir); tar xf -)

dist-source: distdir
$(AMTAR) -chof - --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz

dist-test: distdir
$(AMTAR) -chof - $(distdir)/test $(distdir)/result $(distdir)/xstc/Test | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz
(cd $(srcdir) ; tar -cf - --exclude CVS xstc/Tests) | (cd $(distdir); tar xf -)
tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/testapi.c $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz
@(rm -rf $(distdir)/xstc/Test)

cleantar:
@(rm -f libxml*.tar.gz COPYING.LIB)
Expand Down Expand Up @@ -1106,6 +1108,7 @@ EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
triop.h triodef.h libxml.h elfgcchack.h \
testThreadsWin32.c genUnicode.py TODO_SCHEMAS \
dbgen.pl dbgenattr.pl regressions.py regressions.xml \
README.tests Makefile.tests \
$(CVS_EXTRA_DIST)


Expand Down
35 changes: 35 additions & 0 deletions Makefile.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# You may have to ajust to call the right compiler, or other oprions
# for compiling and linking
#

CFLAGS=`xml2-config --cflags`
LIBS=`xml2-config --libs`
THREADLIB= -lpthread
EXEEXT=

all: runtest$(EXEEXT) runsuite$(EXEEXT) testapi$(EXEEXT)

clean:
$(RM) runtest$(EXEEXT) runsuite$(EXEEXT) testapi$(EXEEXT)

check: do_runtest do_runsuite do_testapi

runtest$(EXEEXT): runtest.c
$(CC) -o runtest$(EXEEXT) $(CFLAGS) runtest.c $(LIBS) $(THREADLIB)

do_runtest: runtest$(EXEEXT)
./runtest

runsuite$(EXEEXT): runsuite.c
$(CC) -o runsuite$(EXEEXT) $(CFLAGS) runsuite.c $(LIBS)

do_runsuite: runsuite$(EXEEXT)
./runsuite

testapi$(EXEEXT): testapi.c
$(CC) -o testapi$(EXEEXT) $(CFLAGS) testapi.c $(LIBS)

do_testapi: testapi$(EXEEXT)
./testapi

4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ To assert build quality:
on an Unixised setup:
run make tests
otherwise:
There is 2 standalone tools runtest.c and testapi.c, which should
compile as part of the build or as any application would.
There is 3 standalone tools runtest.c runsuite.c testapi.c, which
should compile as part of the build or as any application would.
Launch them from this directory to get results, runtest checks
the proper functionning of libxml2 main APIs while testapi does
a full coverage check. Report failures to the list.
Expand Down
29 changes: 29 additions & 0 deletions README.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
README.tests

Instructions for standalone test regressions of libxml2

libxml2-tests-$version.tar.gz contains 3 standalone C programs as well
as a large amount of tests and results coming from libxml2 itself and
from W3C, NIST, Sun Microsystems, Microsoft and James Clark. Each C
program has a different testing purpose:

runtest.c : runs libxml2 basic internal regression tests
runsuite.c: runs libxml2 against external regression tests
testapi.c : exercises the library public entry points

The command:

make -f Makefile.tests

should be sufficient on an Unix system to build and exercise the tests
for the version of the library installed on the system. Note however
that there isn't backward compatibility provided so if the installed
version is older to the testsuite one, failing to compile or run the tests
is likely. In any event this won't work with an installed libxml2 older
than 2.6.20.
Building on other platfroms should be a matter of compiling the C files
like any other program using libxml2, running the test should be done
simply by launching the resulting executables.

Daniel Veillard
Sun Jul 10 2005
96 changes: 50 additions & 46 deletions doc/APIchunk0.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,30 @@
<a href="APIchunk3.html">F-I</a>
<a href="APIchunk4.html">J-N</a>
<a href="APIchunk5.html">O-P</a>
<a href="APIchunk6.html">Q-S</a>
<a href="APIchunk7.html">T-U</a>
<a href="APIchunk8.html">V-Z</a>
<a href="APIchunk9.html">a-a</a>
<a href="APIchunk10.html">b-b</a>
<a href="APIchunk11.html">c-c</a>
<a href="APIchunk12.html">d-d</a>
<a href="APIchunk13.html">e-e</a>
<a href="APIchunk14.html">f-f</a>
<a href="APIchunk15.html">g-h</a>
<a href="APIchunk16.html">i-i</a>
<a href="APIchunk17.html">j-l</a>
<a href="APIchunk18.html">m-m</a>
<a href="APIchunk19.html">n-n</a>
<a href="APIchunk20.html">o-o</a>
<a href="APIchunk21.html">p-p</a>
<a href="APIchunk22.html">q-r</a>
<a href="APIchunk23.html">s-s</a>
<a href="APIchunk24.html">t-t</a>
<a href="APIchunk25.html">u-v</a>
<a href="APIchunk26.html">w-w</a>
<a href="APIchunk27.html">x-x</a>
<a href="APIchunk28.html">y-z</a>
<a href="APIchunk6.html">Q-R</a>
<a href="APIchunk7.html">S-S</a>
<a href="APIchunk8.html">T-U</a>
<a href="APIchunk9.html">V-Z</a>
<a href="APIchunk10.html">a-a</a>
<a href="APIchunk11.html">b-b</a>
<a href="APIchunk12.html">c-c</a>
<a href="APIchunk13.html">d-d</a>
<a href="APIchunk14.html">e-e</a>
<a href="APIchunk15.html">f-f</a>
<a href="APIchunk16.html">g-h</a>
<a href="APIchunk17.html">i-i</a>
<a href="APIchunk18.html">j-l</a>
<a href="APIchunk19.html">m-m</a>
<a href="APIchunk20.html">n-n</a>
<a href="APIchunk21.html">o-o</a>
<a href="APIchunk22.html">p-p</a>
<a href="APIchunk23.html">q-r</a>
<a href="APIchunk24.html">s-s</a>
<a href="APIchunk25.html">t-t</a>
<a href="APIchunk26.html">u-v</a>
<a href="APIchunk27.html">w-w</a>
<a href="APIchunk28.html">x-x</a>
<a href="APIchunk29.html">y-z</a>
</h2><h2>Letter A:</h2><dl><dt>A-Z</dt><dd><a href="html/libxml-parserInternals.html#xmlCheckLanguageID">xmlCheckLanguageID</a><br />
</dd><dt>A-Za-z</dt><dd><a href="html/libxml-parserInternals.html#xmlParseEncName">xmlParseEncName</a><br />
</dd><dt>A-Za-z0-9</dt><dd><a href="html/libxml-parserInternals.html#xmlParseEncName">xmlParseEncName</a><br />
Expand Down Expand Up @@ -71,6 +72,8 @@
<a href="html/libxml-xmlschemastypes.html#xmlSchemaValueGetNext">xmlSchemaValueGetNext</a><br />
</dd><dt>Activation</dt><dd><a href="html/libxml-xmlreader.html#xmlTextReaderRelaxNGSetSchema">xmlTextReaderRelaxNGSetSchema</a><br />
<a href="html/libxml-xmlreader.html#xmlTextReaderRelaxNGValidate">xmlTextReaderRelaxNGValidate</a><br />
<a href="html/libxml-xmlreader.html#xmlTextReaderSchemaValidate">xmlTextReaderSchemaValidate</a><br />
<a href="html/libxml-xmlreader.html#xmlTextReaderSetSchema">xmlTextReaderSetSchema</a><br />
</dd><dt>Add</dt><dd><a href="html/libxml-catalog.html#xmlACatalogAdd">xmlACatalogAdd</a><br />
<a href="html/libxml-tree.html#xmlAddChild">xmlAddChild</a><br />
<a href="html/libxml-tree.html#xmlAddChildList">xmlAddChildList</a><br />
Expand Down Expand Up @@ -253,27 +256,28 @@
<a href="APIchunk3.html">F-I</a>
<a href="APIchunk4.html">J-N</a>
<a href="APIchunk5.html">O-P</a>
<a href="APIchunk6.html">Q-S</a>
<a href="APIchunk7.html">T-U</a>
<a href="APIchunk8.html">V-Z</a>
<a href="APIchunk9.html">a-a</a>
<a href="APIchunk10.html">b-b</a>
<a href="APIchunk11.html">c-c</a>
<a href="APIchunk12.html">d-d</a>
<a href="APIchunk13.html">e-e</a>
<a href="APIchunk14.html">f-f</a>
<a href="APIchunk15.html">g-h</a>
<a href="APIchunk16.html">i-i</a>
<a href="APIchunk17.html">j-l</a>
<a href="APIchunk18.html">m-m</a>
<a href="APIchunk19.html">n-n</a>
<a href="APIchunk20.html">o-o</a>
<a href="APIchunk21.html">p-p</a>
<a href="APIchunk22.html">q-r</a>
<a href="APIchunk23.html">s-s</a>
<a href="APIchunk24.html">t-t</a>
<a href="APIchunk25.html">u-v</a>
<a href="APIchunk26.html">w-w</a>
<a href="APIchunk27.html">x-x</a>
<a href="APIchunk28.html">y-z</a>
<a href="APIchunk6.html">Q-R</a>
<a href="APIchunk7.html">S-S</a>
<a href="APIchunk8.html">T-U</a>
<a href="APIchunk9.html">V-Z</a>
<a href="APIchunk10.html">a-a</a>
<a href="APIchunk11.html">b-b</a>
<a href="APIchunk12.html">c-c</a>
<a href="APIchunk13.html">d-d</a>
<a href="APIchunk14.html">e-e</a>
<a href="APIchunk15.html">f-f</a>
<a href="APIchunk16.html">g-h</a>
<a href="APIchunk17.html">i-i</a>
<a href="APIchunk18.html">j-l</a>
<a href="APIchunk19.html">m-m</a>
<a href="APIchunk20.html">n-n</a>
<a href="APIchunk21.html">o-o</a>
<a href="APIchunk22.html">p-p</a>
<a href="APIchunk23.html">q-r</a>
<a href="APIchunk24.html">s-s</a>
<a href="APIchunk25.html">t-t</a>
<a href="APIchunk26.html">u-v</a>
<a href="APIchunk27.html">w-w</a>
<a href="APIchunk28.html">x-x</a>
<a href="APIchunk29.html">y-z</a>
</h2><p><a href="bugs.html">Daniel Veillard</a></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>
94 changes: 48 additions & 46 deletions doc/APIchunk1.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,30 @@
<a href="APIchunk3.html">F-I</a>
<a href="APIchunk4.html">J-N</a>
<a href="APIchunk5.html">O-P</a>
<a href="APIchunk6.html">Q-S</a>
<a href="APIchunk7.html">T-U</a>
<a href="APIchunk8.html">V-Z</a>
<a href="APIchunk9.html">a-a</a>
<a href="APIchunk10.html">b-b</a>
<a href="APIchunk11.html">c-c</a>
<a href="APIchunk12.html">d-d</a>
<a href="APIchunk13.html">e-e</a>
<a href="APIchunk14.html">f-f</a>
<a href="APIchunk15.html">g-h</a>
<a href="APIchunk16.html">i-i</a>
<a href="APIchunk17.html">j-l</a>
<a href="APIchunk18.html">m-m</a>
<a href="APIchunk19.html">n-n</a>
<a href="APIchunk20.html">o-o</a>
<a href="APIchunk21.html">p-p</a>
<a href="APIchunk22.html">q-r</a>
<a href="APIchunk23.html">s-s</a>
<a href="APIchunk24.html">t-t</a>
<a href="APIchunk25.html">u-v</a>
<a href="APIchunk26.html">w-w</a>
<a href="APIchunk27.html">x-x</a>
<a href="APIchunk28.html">y-z</a>
<a href="APIchunk6.html">Q-R</a>
<a href="APIchunk7.html">S-S</a>
<a href="APIchunk8.html">T-U</a>
<a href="APIchunk9.html">V-Z</a>
<a href="APIchunk10.html">a-a</a>
<a href="APIchunk11.html">b-b</a>
<a href="APIchunk12.html">c-c</a>
<a href="APIchunk13.html">d-d</a>
<a href="APIchunk14.html">e-e</a>
<a href="APIchunk15.html">f-f</a>
<a href="APIchunk16.html">g-h</a>
<a href="APIchunk17.html">i-i</a>
<a href="APIchunk18.html">j-l</a>
<a href="APIchunk19.html">m-m</a>
<a href="APIchunk20.html">n-n</a>
<a href="APIchunk21.html">o-o</a>
<a href="APIchunk22.html">p-p</a>
<a href="APIchunk23.html">q-r</a>
<a href="APIchunk24.html">s-s</a>
<a href="APIchunk25.html">t-t</a>
<a href="APIchunk26.html">u-v</a>
<a href="APIchunk27.html">w-w</a>
<a href="APIchunk28.html">x-x</a>
<a href="APIchunk29.html">y-z</a>
</h2><h2>Letter C:</h2><dl><dt>C14N</dt><dd><a href="html/libxml-c14n.html#xmlC14NDocSaveTo">xmlC14NDocSaveTo</a><br />
<a href="html/libxml-c14n.html#xmlC14NExecute">xmlC14NExecute</a><br />
</dd><dt>CATALOG</dt><dd><a href="html/libxml-catalog.html#xmlLoadACatalog">xmlLoadACatalog</a><br />
Expand Down Expand Up @@ -346,27 +347,28 @@
<a href="APIchunk3.html">F-I</a>
<a href="APIchunk4.html">J-N</a>
<a href="APIchunk5.html">O-P</a>
<a href="APIchunk6.html">Q-S</a>
<a href="APIchunk7.html">T-U</a>
<a href="APIchunk8.html">V-Z</a>
<a href="APIchunk9.html">a-a</a>
<a href="APIchunk10.html">b-b</a>
<a href="APIchunk11.html">c-c</a>
<a href="APIchunk12.html">d-d</a>
<a href="APIchunk13.html">e-e</a>
<a href="APIchunk14.html">f-f</a>
<a href="APIchunk15.html">g-h</a>
<a href="APIchunk16.html">i-i</a>
<a href="APIchunk17.html">j-l</a>
<a href="APIchunk18.html">m-m</a>
<a href="APIchunk19.html">n-n</a>
<a href="APIchunk20.html">o-o</a>
<a href="APIchunk21.html">p-p</a>
<a href="APIchunk22.html">q-r</a>
<a href="APIchunk23.html">s-s</a>
<a href="APIchunk24.html">t-t</a>
<a href="APIchunk25.html">u-v</a>
<a href="APIchunk26.html">w-w</a>
<a href="APIchunk27.html">x-x</a>
<a href="APIchunk28.html">y-z</a>
<a href="APIchunk6.html">Q-R</a>
<a href="APIchunk7.html">S-S</a>
<a href="APIchunk8.html">T-U</a>
<a href="APIchunk9.html">V-Z</a>
<a href="APIchunk10.html">a-a</a>
<a href="APIchunk11.html">b-b</a>
<a href="APIchunk12.html">c-c</a>
<a href="APIchunk13.html">d-d</a>
<a href="APIchunk14.html">e-e</a>
<a href="APIchunk15.html">f-f</a>
<a href="APIchunk16.html">g-h</a>
<a href="APIchunk17.html">i-i</a>
<a href="APIchunk18.html">j-l</a>
<a href="APIchunk19.html">m-m</a>
<a href="APIchunk20.html">n-n</a>
<a href="APIchunk21.html">o-o</a>
<a href="APIchunk22.html">p-p</a>
<a href="APIchunk23.html">q-r</a>
<a href="APIchunk24.html">s-s</a>
<a href="APIchunk25.html">t-t</a>
<a href="APIchunk26.html">u-v</a>
<a href="APIchunk27.html">w-w</a>
<a href="APIchunk28.html">x-x</a>
<a href="APIchunk29.html">y-z</a>
</h2><p><a href="bugs.html">Daniel Veillard</a></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>
Loading

0 comments on commit 1f33c4d

Please sign in to comment.