• Home
  • Raw
  • Download

Lines Matching +full:regression +full:- +full:test

3 ACLOCAL_AMFLAGS = -I m4
9 AM_CPPFLAGS = -I$(top_builddir)/include -I$(srcdir)/include
20 bin_SCRIPTS=xml2-config
33 -version-info $(LIBXML_VERSION_INFO) \
64 man_MANS = xml2-config.1 libxml.3
171 testdso_la_LDFLAGS = -module -no-undefined -avoid-version -rpath $(libdir)
175 -@(if [ "$(PYTHON)" != "" ] ; then \
181 -@(if [ "$(PYTHON)" != "" ] ; then \
203 [ -d test ] || $(LN_S) $(srcdir)/test .
204 [ -d result ] || $(LN_S) $(srcdir)/result .
217 check-valgrind valgrind: all
218 @echo '## Running the regression tests under Valgrind'
220 $(MAKE) CHECKER='valgrind -q' runtests
224-fsanitize=address,undefined -Wformat -Werror=format-security -Werror=array-bounds -g" CXXFLAGS="-
230 $(MAKE) -s tests ; fi)
231 @(cd doc/examples ; $(MAKE) -s tests)
234 @echo "## Running the API regression tests this may take a little while"
235 -@(ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) $(top_builddir)/testapi -q)
239 @echo "## HTML regression tests"
240 -@(for i in $(srcdir)/test/HTML/* ; do \
242 if [ ! -d $$i ] ; then \
243 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
244 echo New test file $$name ; \
248 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
250 diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
253 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
258 @echo "## Push HTML regression tests"
259 -@(for i in $(srcdir)/test/HTML/* ; do \
261 if [ ! -d $$i ] ; then \
262 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
263 echo New test file $$name ; \
264 …$(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/H…
266 log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
267 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
269 cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
270 cut -b 1-15 error.$$name > errorcut2.$$name; \
271 diff -b errorcut.$$name errorcut2.$$name ; \
272 $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
274 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
277 @echo "## HTML SAX regression tests"
278 -@(for i in $(srcdir)/test/HTML/* ; do \
280 if [ ! -d $$i ] ; then \
281 if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
282 echo New test file $$name ; \
283 $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
285 log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
286 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
288 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
291 @echo "## Push HTML SAX regression tests"
292 -@(for i in $(srcdir)/test/HTML/* ; do \
294 if [ ! -d $$i ] ; then \
295 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
296 echo New test file $$name ; \
297 $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
299 log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \
300 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
302 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
308 @echo "## XML regression tests"
309 -@(for i in $(srcdir)/test/* ; do \
311 if [ ! -d $$i ] ; then \
312 if [ ! -f $(srcdir)/result/$$name ] ; then \
313 echo New test file $$name ; \
315 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
318 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
320 …$(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load e…
321 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
323 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
326 @echo "## XML regression tests on memory"
327 -@(for i in $(srcdir)/test/* ; do \
329 if [ ! -d $$i ] ; then \
330 if [ ! -f $(srcdir)/result/$$name ] ; then \
331 echo New test file $$name ; \
332 $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
333 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
335 log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \
336 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
338 …$(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed …
339 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`; \
340 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
347 @echo "## XML push regression tests"
348 -@(for i in $(srcdir)/test/* ; do \
350 if [ ! -d $$i ] ; then \
351 if [ ! -f $(srcdir)/result/$$name ] ; then \
352 echo New test file $$name ; \
353 $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
354 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
356 log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \
357 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
359 …$(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to…
360 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
362 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
368 @echo "## XML Namespaces regression tests"
369 -@(for i in $(srcdir)/test/namespaces/* ; do \
371 if [ ! -d $$i ] ; then \
372 if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \
373 echo New test file $$name ; \
377 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
380 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
383 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
389 @echo "## xml:id regression tests"
390 -@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \
392 if [ ! -d $$i ] ; then \
393 if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \
394 echo New test file $$name ; \
395 $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \
398 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
400 … log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \
401 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
404 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
410 @echo "## Error cases regression tests"
411 -@(for i in $(srcdir)/test/errors/*.xml ; do \
413 if [ ! -d $$i ] ; then \
414 if [ ! -f $(srcdir)/result/errors/$$name ] ; then \
415 echo New test file $$name ; \
419 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
422 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
425 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
428 @echo "## Error cases regression tests (old 1.0)"
429 -@(for i in $(srcdir)/test/errors10/*.xml ; do \
431 if [ ! -d $$i ] ; then \
432 if [ ! -f $(srcdir)/result/errors10/$$name ] ; then \
433 echo New test file $$name ; \
434 $(CHECKER) $(top_builddir)/xmllint --oldxml10 $$i \
437 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
439 log=`$(CHECKER) $(top_builddir)/xmllint --oldxml10 $$i 2> error.$$name > result.$$name ; \
440 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
443 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
446 @echo "## Error cases stream regression tests"
447 -@(for i in $(srcdir)/test/errors/*.xml ; do \
449 if [ ! -d $$i ] ; then \
450 if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \
451 echo New test file $$name ; \
452 $(CHECKER) $(top_builddir)/xmllint --stream $$i \
455 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
457 log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > /dev/null ; \
458 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
460 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
468 @echo "## XML entity subst regression tests"
469 -@(for i in $(srcdir)/test/* ; do \
471 if [ ! -d $$i ] ; then \
472 if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
473 echo New test file $$name ; \
474 $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
475 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
477 log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \
478 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
480 $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \
481 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
483 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
489 @echo "## URI module regression tests"
490 -@(for i in $(srcdir)/test/URI/*.data ; do \
492 if [ ! -d $$i ] ; then \
493 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
494 echo New test file $$name ; \
495 …$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(s…
496 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
498 …log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i …
499 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
501 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
504 -@(for i in $(srcdir)/test/URI/*.uri ; do \
506 if [ ! -d $$i ] ; then \
507 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
508 echo New test file $$name ; \
510 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
513 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
515 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
521 @echo "## XPath regression tests"
522 -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
524 for i in $(srcdir)/test/XPath/expr/* ; do \
526 if [ ! -d $$i ] ; then \
527 if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \
528 echo New test file $$name ; \
529 …$(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name 2> /dev/nu…
530 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
532 log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i > result.$$name 2> /dev/null ; \
533 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
535 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
538 for i in $(srcdir)/test/XPath/docs/* ; do \
539 if [ ! -d $$i ] ; then \
541 for j in $(srcdir)/test/XPath/tests/$$doc* ; do \
542 if [ ! -f $$j ] ; then continue ; fi ; \
544 if [ ! -d $$j ] ; then \
545 if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \
546 echo New test file $$name ; \
547 $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \
548 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
550 log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \
551 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
553 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
559 @echo "## XPointer regression tests"
560 -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
562 for i in $(srcdir)/test/XPath/docs/* ; do \
563 if [ ! -d $$i ] ; then \
565 for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \
566 if [ ! -f $$j ] ; then continue ; fi ; \
568 if [ ! -d $$j ] ; then \
569 if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \
570 echo New test file $$name ; \
571 …$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name 2> /…
572 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
574 … log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > result.$$name 2> /dev/null ; \
575 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
577 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
583 @echo "## XInclude regression tests"
584 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
586 if [ ! -d $$i ] ; then \
587 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
588 echo New test file $$name ; \
589 …$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name 2…
590 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
592 …log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 2>error.$$name …
593 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
596 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
599 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
601 if [ ! -d $$i ] ; then \
602 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
603 echo New test file $$name ; \
604 …$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > $(srcdir)/result/XInclude/$$…
605 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
607 …log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > result.$$name 2>error.$…
608 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
611 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
615 @echo "## XInclude xmlReader regression tests"
616 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
618 if [ ! -d $$i ] ; then \
619 if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
620 echo New test file $$name ; \
621 …$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > $(srcdir)/result/…
622 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
624 …log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$nam…
625 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
628 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
631 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
633 if [ ! -d $$i ] ; then \
634 if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
635 echo New test file $$name ; \
636 …$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode --stream --debug $$i > $(srcdir)/r…
637 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
639 …log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$nam…
640 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
643 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
649 @echo "## Scripts regression tests"
651 -@(for i in $(srcdir)/test/scripts/*.script ; do \
653 xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \
654 if [ -f $$xml ] ; then \
655 if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
656 echo New test file $$name ; \
657 …$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcd…
658 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
660 …log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ;…
661 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
664 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
670 @echo "## Catalog regression tests"
671 -@(for i in $(srcdir)/test/catalogs/*.script ; do \
673 xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \
674 if [ -f $$xml ] ; then \
675 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
676 echo New test file $$name ; \
677 …$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name …
678 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
680 log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \
681 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
683 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
686 -@(for i in $(srcdir)/test/catalogs/*.script ; do \
688 sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \
689 if [ -f $$sgml ] ; then \
690 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
691 echo New test file $$name ; \
692 … $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \
693 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
695 log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \
696 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
698 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
702 -@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \
703 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
704 …$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/m…
705 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
706 …$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs…
707 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
708 …$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs…
709 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
711 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
712 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \
713 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
714 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \
715 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
716 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \
717 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
719 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
720 rm -f $(srcdir)/result/catalogs/mycatalog)
723 @echo "## SVG parsing regression tests"
724 -@(for i in $(srcdir)/test/SVG/* ; do \
726 if [ ! -d $$i ] ; then \
727 if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
728 echo New test file $$name ; \
730 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
734 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
737 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
743 @echo "## Threaded regression tests"
744 -@($(CHECKER) $(top_builddir)/testThreads ; \
745 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
750 @echo "## Reader regression tests"
751 -@(for i in $(srcdir)/test/* ; do \
753 if [ ! -d $$i ] ; then \
754 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
755 echo New test file $$name ; \
756 …$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/d…
757 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
759 …log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ;…
760 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
762 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
765 @echo "## Reader on memory regression tests"
766 -@(for i in $(srcdir)/test/* ; do \
768 if [ ! -d $$i ] ; then \
769 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
770 echo New test file $$name ; \
771 …$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name…
772 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
774 …log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/d…
775 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
777 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
781 @echo "## Walker regression tests"
782 -@(for i in $(srcdir)/test/* ; do \
784 if [ ! -d $$i ] ; then \
785 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
786 echo New test file $$name ; \
787 …$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > $(srcdir)/result/$$name.rdr 2>/d…
788 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
790 …log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > result.$$name 2>/dev/null ;…
791 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
793 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
796 @echo "## Reader entities substitution regression tests"
797 -@(for i in $(srcdir)/test/* ; do \
799 if [ ! -d $$i ] ; then \
800 if [ ! -f $(srcdir)/result/$$name.rde ] ; then \
801 echo New test file $$name ; \
802 …$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > $(srcdir)/result/$$name.…
803 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
805 …log=`$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > result.$$name 2>/de…
806 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
808 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
814 @echo "## SAX1 callbacks regression tests"
815 -@(for i in $(srcdir)/test/* ; do \
817 if [ ! -d $$i ] ; then \
818 if [ ! -f $(srcdir)/result/$$name.sax ] ; then \
819 echo New test file $$name ; \
821 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
824 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
826 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
829 @echo "## SAX2 callbacks regression tests"
830 -@(for i in $(srcdir)/test/* ; do \
832 if [ ! -d $$i ] ; then \
833 if [ ! -f $(srcdir)/result/$$name.sax2 ] ; then \
834 echo New test file $$name ; \
835 $(CHECKER) $(top_builddir)/testSAX --sax2 $$i > $(srcdir)/result/$$name.sax2 2> /dev/null ; \
836 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
838 log=`$(CHECKER) $(top_builddir)/testSAX --sax2 $$i > result.$$name 2> /dev/null ; \
839 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
841 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
844 @echo "## SAX2 callbacks regression tests with entity substitution"
845 -@(for i in $(srcdir)/test/* ; do \
847 if [ ! -d $$i ] ; then \
848 if [ ! -f $(srcdir)/result/noent/$$name.sax2 ] ; then \
849 echo New test file $$name ; \
850 …$(CHECKER) $(top_builddir)/testSAX --sax2 --noent $$i > $(srcdir)/result/noent/$$name.sax2 2> /dev…
851 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
853 log=`$(CHECKER) $(top_builddir)/testSAX --sax2 --noent $$i > result.$$name 2> /dev/null ; \
854 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
856 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
862 @echo "## Valid documents regression tests"
863 -@(for i in $(srcdir)/test/VCM/* ; do \
865 if [ ! -d $$i ] ; then \
866 log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
867 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`;\
868 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
870 @echo "## Validity checking regression tests"
871 -@(for i in $(srcdir)/test/VC/* ; do \
873 if [ ! -d $$i ] ; then \
874 if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
875 echo New test file $$name ; \
876 $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
877 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
879 log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \
880 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
882 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
885 @echo "## General documents valid regression tests"
886 -@(for i in $(srcdir)/test/valid/* ; do \
888 if [ ! -d $$i ] ; then \
889 if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
890 echo New test file $$name ; \
891 …$(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/…
892 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
894 log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \
895 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
898 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
904 @echo "## Regexp regression tests"
905 -@(for i in $(srcdir)/test/regexp/* ; do \
907 if [ ! -d $$i ] ; then \
908 if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \
909 echo New test file $$name ; \
910 …$(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name 2> $(srcdir)/result/…
911 …if [ ! -s "$(srcdir)/result/regexp/$$name.err" ] ; then rm $(srcdir)/result/regexp/$$name.err; fi …
912 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
914 log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i > result.$$name 2> error.$$name ; \
915 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
917 …if [ -s "$(srcdir)/result/regexp/$$name.err" -o -s "error.$$name" ] ; then diff $(srcdir)/result/r…
918 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
924 @echo "## Formal expressions regression tests"
925 -@(for i in $(srcdir)/test/expr/* ; do \
927 if [ ! -d $$i ] ; then \
928 if [ ! -f $(srcdir)/result/expr/$$name ] ; then \
929 echo New test file $$name ; \
930 $(CHECKER) $(top_builddir)/testRegexp --expr -i $$i > $(srcdir)/result/expr/$$name; \
931 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
933 log=`$(CHECKER) $(top_builddir)/testRegexp --expr -i $$i 2>&1 > result.$$name ; \
934 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
936 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
942 @echo "## Automata regression tests"
943 -@(for i in $(srcdir)/test/automata/* ; do \
945 if [ ! -d $$i ] ; then \
946 if [ ! -f $(srcdir)/result/automata/$$name ] ; then \
947 echo New test file $$name ; \
949 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
952 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
954 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
969 -@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
972 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
974 -@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
977 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
979 -@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
982 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
986-@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210…
989 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
993 @echo "## C14N and XPath regression tests"
994 -@(for m in with-comments without-comments 1-1-without-comments exc-without-comments ; do \
995 for i in $(srcdir)/test/c14n/$$m/*.xml ; do \
996 if [ ! -d $$i ] ; then \
998 cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \
999 if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \
1000 cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \
1001 if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \
1002 cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \
1005 $$cmdline > $(srcdir)/test/c14n/test.tmp 2> /dev/null; \
1006 if [ $$? -eq 0 ]; then \
1007 diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \
1008 if [ $$? -ne 0 ]; then \
1009 echo "Test $$m/$$name failed"; \
1010 cat $(srcdir)/test/c14n/test.tmp; \
1015 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1017 rm -f $(srcdir)/test/c14n/test.tmp; \
1023 @echo "## Schemas regression tests"
1024 -@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \
1027 for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \
1028 if [ -f $$j ] ; then \
1030 if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \
1032 echo New test file "$$name"_"$$sno"_"$$xno" ; \
1036 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1040 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1046 if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo "$$log" ; fi ; \
1053 @echo "## Relax-NG regression tests"
1054 -@(for i in $(srcdir)/test/relaxng/*.rng ; do \
1056 if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \
1058 …$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$…
1061 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1063 …log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.r…
1065 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1069 err.$$name | grep -v "error detected at";\
1071 if [ -n "$$log" ] ; then echo schemas $$name result ; echo "$$log" ; fi ; \
1074 for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
1075 if [ -f $$j ] ; then \
1077 if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
1079 echo New test file "$$name"_"$$xno" ; \
1080 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
1083 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1085 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
1087 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1091 err.$$name | grep -v "error detected at";\
1093 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo "$$log" ; fi ; \
1097 @echo "## Relax-NG streaming regression tests"
1098 -@(for i in $(srcdir)/test/relaxng/*.rng ; do \
1100 for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
1101 if [ -f $$j ] ; then \
1103 if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
1105 echo New test file "$$name"_"$$xno" ; \
1106 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
1109 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1111 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \
1113 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1115 …if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" -a "$$name" != "…
1117 err.$$name | grep -v "error detected at";\
1119 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo "$$log" ; fi ; \
1126 @echo "## Schematron regression tests"
1127 -@(for i in $(srcdir)/test/schematron/*.sct ; do \
1129 for j in $(srcdir)/test/schematron/"$$name"_*.xml ; do \
1130 if [ -f $$j ] ; then \
1132 if [ ! -f $(srcdir)/result/schematron/"$$name"_"$$xno" ]; \
1134 echo New test file "$$name"_"$$xno" ; \
1135 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
1138 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1140 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
1142 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1146 err.$$name | grep -v "error detected at";\
1148 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo "$$log" ; fi ; \
1154 @(if [ -x $(PYTHON) ] ; then \
1159 echo "## Relax-NG Python based test suite 1" ; \
1160 $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite.py ; \
1161 echo "## Relax-NG Python based test suite 2" ; \
1162 $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite2.py ; \
1166 @(if [ -x $(PYTHON) ] ; then \
1171 echo "## XML Schemas datatypes Python based test suite" ; \
1173 $(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \
1175 @(if [ -x $(PYTHON) -a -d xstc ] ; then cd xstc ; $(MAKE) CHECKER="$(CHECKER)" pytests ; fi)
1179 @echo "## Pattern regression tests"
1180 -@(for i in $(srcdir)/test/pattern/*.pat ; do \
1182 if [ -f $(srcdir)/test/pattern/$$name.xml ] ; then \
1183 if [ ! -f $(srcdir)/result/pattern/$$name ] ; then \
1184 rm -f result.$$name ; \
1185 echo New test file $$name ; \
1187 …$(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml >> $…
1188 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1191 rm -f result.$$name ; \
1193 …for pat in $$lst ; do $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/p…
1194 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1197 if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
1206 -@(find . -name .\#\* -exec rm {} \;)
1207 -@(find . -name \*.gcda -o -name \*.gcno -exec rm -f {} \;)
1208 -@(find . -name \*.orig -o -name \*.rej -o -name \*.old -exec rm -f {} \;)
1210 dist-hook: cleanup libxml2.spec
1211 -cp libxml2.spec $(distdir)
1212 …cdir) ; tar -cf - --exclude CVS --exclude .svn --exclude .git win32 macos os400 vms VxWorks bakefi…
1214 dist-source: distdir
1215 …AMTAR) -chof - --exclude Tests --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip
1217 dist-test: distdir
1218 (mkdir -p $(distdir))
1219 …(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn --exclude .git xstc/Tests) | (cd $(distdir)…
1220-cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests $(distdir)/Makefile.tests $(distdir…
1221 @(rm -rf $(distdir)/xstc/Test)
1224 @(rm -f libxml*.tar.gz COPYING.LIB)
1227 @(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz)
1236 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
1237 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
1238 -e 's?\@VERSION\@?$(VERSION)?g' \
1239 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
1240 -e 's?\@XML_PRIVATE_LIBS\@?$(XML_PRIVATE_LIBS)?g' \
1244 CLEANFILES = runxmlconf.log test.out xml2Conf.sh *.gcda *.gcno *.res
1250 EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
1251 libxml.m4 Copyright check-xml-test-suite.py gentest.py \
1252 check-relaxng-test-suite.py check-relaxng-test-suite2.py \
1253 check-xsddata-test-suite.py check-xinclude-test-suite.py \
1255 $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
1256 libxml2-config.cmake.in autogen.sh \
1263 CMakeLists.txt config.h.cmake.in libxml2-config.cmake.cmake.in \
1268 pkgconfig_DATA = libxml-2.0.pc
1271 cmake_DATA = libxml2-config.cmake
1277 DOC_MODULE=libxml2-$(VERSION)
1280 install-data-local:
1282 -$(INSTALL) -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
1284 -$(INSTALL) -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR)
1285 -$(INSTALL) -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR)
1286 -$(INSTALL) -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR)
1287 -$(INSTALL) -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR)
1289 uninstall-local:
1290 rm -f $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c
1291 rm -f $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c
1292 rm -f $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c
1293 rm -f $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c
1294 rm -rf $(DESTDIR)$(EXAMPLES_DIR)
1295 rm -f $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)/Copyright
1296 rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
1299 $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz -llzma
1311 cov: clean-cov
1314 if [ ! -x $(LCOV) -o ! -x $(GENHTML) ] ; then \
1316 -@($(MAKE) check)
1317 -@(./runsuite$(EXEEXT))
1319 $(LCOV) -c -o $(top_builddir)/coverage/libxml2.info.tmp -d $(top_srcdir)
1320 $(LCOV) -r $(top_builddir)/coverage/libxml2.info.tmp -o $(top_builddir)/coverage/libxml2.info *usr*
1322 …$(GENHTML) -s -t "libxml2" -o $(top_builddir)/coverage --legend $(top_builddir)/coverage/libxml2.i…
1325 clean-cov:
1326 rm -rf $(top_builddir)/coverage