Skip to content

Commit

Permalink
patches from John Carr to start cleaning up 'make diskcheck' problems…
Browse files Browse the repository at this point in the history
… c.f.

* check-relaxng-test-suite2.py check-relaxng-test-suite.py
  Makefile.am python/tests/Makefile.am python/Makefile.am
  check-xsddata-test-suite.py: patches from John Carr to
  start cleaning up 'make diskcheck' problems c.f. #506228
Daniel

svn path=/trunk/; revision=3674
  • Loading branch information
Daniel Veillard committed Jan 11, 2008
1 parent 5608b17 commit 9ebb632
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 8 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
Fri Jan 11 15:13:35 CST 2008 Daniel Veillard <daniel@veillard.com>

* check-relaxng-test-suite2.py check-relaxng-test-suite.py
Makefile.am python/tests/Makefile.am python/Makefile.am
check-xsddata-test-suite.py: patches from John Carr to
start cleaning up 'make diskcheck' problems c.f. #506228

Fri Jan 11 14:48:40 CST 2008 Daniel Veillard <daniel@veillard.com>

* xmllint.c: apply fix from Stefan Kost to avoid a crash
Expand Down
19 changes: 14 additions & 5 deletions Makefile.am
Expand Up @@ -856,23 +856,23 @@ Automatatests: testAutomata$(EXEEXT)
rm result.$$name ; \
fi ; fi ; done)

$(srcdir)/dba100000.xml: dbgenattr.pl
dba100000.xml: dbgenattr.pl
@echo "## generating dba100000.xml"
@($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > $(srcdir)/dba100000.xml)
@($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > dba100000.xml)

Timingtests: xmllint$(EXEEXT) $(srcdir)/dba100000.xml
Timingtests: xmllint$(EXEEXT) dba100000.xml
@echo "## Timing tests to try to detect performance"
@echo "## as well a memory usage breakage when streaming"
@echo "## 1/ using the file interface"
@echo "## 2/ using the memory interface"
@echo "## 3/ repeated DOM parsing"
@echo "## 4/ repeated DOM validation"
-@($(top_builddir)/xmllint --stream --timing $(srcdir)/dba100000.xml; \
-@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
exit 0)
-@($(top_builddir)/xmllint --stream --timing --memory $(srcdir)/dba100000.xml; \
-@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
Expand Down Expand Up @@ -1177,6 +1177,15 @@ install-data-local:
-@INSTALL@ -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR)
-@INSTALL@ -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR)

uninstall-local:
rm $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c
rm $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c
rm $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c
rm $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c
rm -rf $(DESTDIR)$(EXAMPLES_DIR)
rm $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)/Copyright
rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)

tst: tst.c
$(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz

Expand Down
2 changes: 1 addition & 1 deletion check-relaxng-test-suite.py
Expand Up @@ -16,7 +16,7 @@
#
# the testsuite description
#
CONF="test/relaxng/OASIS/spectest.xml"
CONF=os.path.join(os.path.dirname(__file__), "test/relaxng/OASIS/spectest.xml")
LOG="check-relaxng-test-suite.log"
RES="relaxng-test-results.xml"

Expand Down
2 changes: 1 addition & 1 deletion check-relaxng-test-suite2.py
Expand Up @@ -15,7 +15,7 @@
#
# the testsuite description
#
CONF="test/relaxng/testsuite.xml"
CONF=os.path.join(os.path.dirname(__file__), "test/relaxng/testsuite.xml")
LOG="check-relaxng-test-suite2.log"

log = open(LOG, "w")
Expand Down
2 changes: 1 addition & 1 deletion check-xsddata-test-suite.py
Expand Up @@ -16,7 +16,7 @@
#
# the testsuite description
#
CONF="test/xsdtest/xsdtestsuite.xml"
CONF=os.path.join(os.path.dirname(__file__), "test/xsdtest/xsdtestsuite.xml")
LOG="check-xsddata-test-suite.log"

log = open(LOG, "w")
Expand Down
6 changes: 6 additions & 0 deletions python/Makefile.am
Expand Up @@ -49,6 +49,12 @@ install-data-local:
@(for doc in $(DOCS) ; \
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)

uninstall-local:
@(for doc in $(DOCS) ; \
do rm $(DESTDIR)$(DOCS_DIR)/`basename $$doc` ; done)
rm $(DESTDIR)$(pythondir)/drv_libxml2.py
rm $(DESTDIR)$(pythondir)/libxml2.py

GENERATE = generator.py
API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
GENERATED= libxml2class.py \
Expand Down
4 changes: 4 additions & 0 deletions python/tests/Makefile.am
Expand Up @@ -77,3 +77,7 @@ install-data-local:
-(for test in $(PYTESTS) $(XMLS); \
do @INSTALL@ -m 0644 $(srcdir)/$$test $(DESTDIR)$(EXAMPLE_DIR) ; done)

uninstall-local:
@(for test in $(PYTESTS) $(XMLS) ; \
do rm $(DESTDIR)$(EXAMPLE_DIR)/`basename $$test` ; done)

0 comments on commit 9ebb632

Please sign in to comment.