Lines Matching refs:module
29 # defines for each module
303 def add_missing_functions(name, module):
308 list = missing_functions[module]
311 missing_functions[module] = [name]
317 def type_convert(str, name, info, module, function, pos):
338 if module == 'nanoftp' and name == 'ctx':
344 if module == 'nanohttp' and name == 'ctx':
388 if res == 'FILE_ptr' and module == 'debugXML':
391 if module == 'parser' or module == 'xmlreader':
414 if modules_defines.has_key(module):
415 test.write("#ifdef %s\n" % (modules_defines[module]))
536 module = enum.xpathEval('string(@file)')
560 if modules_defines.has_key(module):
561 test.write("#ifdef %s\n" % (modules_defines[module]))
580 if define == 0 and modules_defines.has_key(module):
581 test.write("#ifdef %s\n" % (modules_defines[module]))
601 # Some module may be skipped because they don't really consists
621 for module in modules:
622 test.write("static int test_%s(void);\n" % module);
632 * Main entry point of the tester for the full libxml2 module,
633 * it calls all the tester entry point for each module.
644 for module in modules:
645 test.write(" test_ret += test_%s();\n" % module)
660 def generate_test(module, node):
687 type = type_convert(rtype, nam, info, module, name, n)
706 type = type_convert(rtype, 'return', info, module, name, 0)
723 add_missing_functions(name, module)
868 # Generate all module callers
870 for module in modules:
871 # gather all the functions exported by that module
873 functions = ctxt.xpathEval("/api/symbols/function[@file='%s']" % (module))
875 print "Failed to gather functions from module %s" % (module)
878 # iterate over all functions in the module generating the test
883 generate_test(module, function);
891 """ % (module, module, nb_tests - nb_tests_old, i))
893 # iterate over all functions in the module generating the call
906 """ % (module))
909 # Generate direct module caller
912 test_module(const char *module) {
914 for module in modules:
915 test.write(""" if (!strcmp(module, "%s")) return(test_%s());\n""" % (
916 module, module))
953 lst.write("Missing support per module");
954 for module in missing_functions.keys():
955 lst.write("module %s:\n %s\n" % (module, missing_functions[module]))