[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[xml] tests not using local xmllint



I was trying to build libxml on RH 7.3 and discovered the timing tests
are not using xmllint from the build directory (--stream option is
relatively new). This attached patch should fix the problem.

Charlie B.
Index: Makefile.am
===================================================================
RCS file: /cvs/gnome/libxml2/Makefile.am,v
retrieving revision 1.219
diff -c -r1.219 Makefile.am
*** Makefile.am	21 Feb 2004 11:53:08 -0000	1.219
--- Makefile.am	26 Feb 2004 01:42:13 -0000
***************
*** 728,751 ****
  	@echo "## 2/ using the memory interface"
  	@echo "## 3/ repeated DOM parsing"
  	@echo "## 4/ repeated DOM validation"
! 	-@(xmllint --stream --timing $(srcdir)/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)
! 	-@(xmllint --stream --timing --memory $(srcdir)/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)
! 	-@(xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.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)
  
  VTimingtests: xmllint$(EXEEXT)
! 	-@(xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.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";\
--- 728,751 ----
  	@echo "## 2/ using the memory interface"
  	@echo "## 3/ repeated DOM parsing"
  	@echo "## 4/ repeated DOM validation"
! 	-@($(top_builddir)/xmllint --stream --timing $(srcdir)/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; \
  	   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 --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.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)
  
  VTimingtests: xmllint$(EXEEXT)
! 	-@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.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";\


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]