integrated in "make tests" added -q option, and more conditional features

* Makefile.am gentest.py testapi.c: integrated in "make tests"
  added -q option, and more conditional features fixes
* catalog.c debugXML.c parser.c testThreads.c xmllint.c
  xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h
  include/libxml/debugXML.h: various compilation and conditional
  cleanups.
* doc/*: regenerated
Daniel
diff --git a/gentest.py b/gentest.py
index d66b50a..8975cd9 100755
--- a/gentest.py
+++ b/gentest.py
@@ -92,6 +92,7 @@
     "xmlValidGetPotentialChildren" : "LIBXML_VALID_ENABLED",
     "xmlValidGetValidElements" : "LIBXML_VALID_ENABLED",
     "docbDefaultSAXHandlerInit" : "LIBXML_DOCB_ENABLED",
+    "xmlTextReaderPreservePattern" : "LIBXML_PATTERN_ENABLED",
 }
 
 #
@@ -775,6 +776,7 @@
     for arg in t_args:
 	test.write("    }\n")
 
+    test.write("    function_tests++;\n")
     #
     # end of conditional
     #
@@ -787,7 +789,6 @@
     nb_tests = nb_tests + 1;
 
     test.write("""
-    function_tests++;
     return(test_ret);
 }
 
@@ -816,7 +817,7 @@
 test_%s(void) {
     int test_ret = 0;
 
-    printf("Testing %s : %d of %d functions ...\\n");
+    if (quiet == 0) printf("Testing %s : %d of %d functions ...\\n");
 """ % (module, module, nb_tests - nb_tests_old, i))
 
     # iterate over all functions in the module generating the call