Home | History | Annotate | Download | only in libxml2

Lines Matching defs:module

29 # defines for each module
307 def add_missing_functions(name, module):
312 list = missing_functions[module]
315 missing_functions[module] = [name]
321 def type_convert(str, name, info, module, function, pos):
342 if module == 'nanoftp' and name == 'ctx':
348 if module == 'nanohttp' and name == 'ctx':
392 if res == 'FILE_ptr' and module == 'debugXML':
395 if module == 'parser' or module == 'xmlreader':
418 if modules_defines.has_key(module):
419 test.write("#ifdef %s\n" % (modules_defines[module]))
540 module = enum.xpathEval('string(@file)')
564 if modules_defines.has_key(module):
565 test.write("#ifdef %s\n" % (modules_defines[module]))
584 if define == 0 and modules_defines.has_key(module):
585 test.write("#ifdef %s\n" % (modules_defines[module]))
605 # Some module may be skipped because they don't really consists
625 for module in modules:
626 test.write("static int test_%s(void);\n" % module);
636 * Main entry point of the tester for the full libxml2 module,
637 * it calls all the tester entry point for each module.
648 for module in modules:
649 test.write(" test_ret += test_%s();\n" % module)
664 def generate_test(module, node):
691 type = type_convert(rtype, nam, info, module, name, n)
710 type = type_convert(rtype, 'return', info, module, name, 0)
727 add_missing_functions(name, module)
872 # Generate all module callers
874 for module in modules:
875 # gather all the functions exported by that module
877 functions = ctxt.xpathEval("/api/symbols/function[@file='%s']" % (module))
879 print "Failed to gather functions from module %s" % (module)
882 # iterate over all functions in the module generating the test
887 generate_test(module, function);
895 """ % (module, module, nb_tests - nb_tests_old, i))
897 # iterate over all functions in the module generating the call
907 printf("Module %s: %%d errors\\n", test_ret);
910 """ % (module))
913 # Generate direct module caller
916 test_module(const char *module) {
918 for module in modules:
919 test.write(""" if (!strcmp(module, "%s")) return(test_%s());\n""" % (
920 module, module))
957 lst.write("Missing support per module");
958 for module in missing_functions.keys():
959 lst.write("module %s:\n %s\n" % (module, missing_functions[module]))