def main(): app_config = shell.get_config() print config # step 1. wakl the code base, list out the header and source files path src = walker.headers(app_config) inc = walker.sources(app_config) # step 2. custimize the doxygen configuration doxygen_config = {'EXTRACT_ALL' : 'YES', 'INPUT' : src, 'INLINE_SOURCES' : 'YES', 'GENERATE_LATEX' : 'NO', 'INCLUDE_PATH' : inc + " " + src, 'HAVE_DOT' : 'YES', 'CALL_GRAPH' : 'YES', 'CALLER_GRAPH' : 'YES', 'DOTFILE_DIRS' : 'dotfile', 'DOT_CLEANUP' : 'NO'} print app_config config.inject(doxygen_config, app_config) # step 3. generate the dots files of doxygen # TODO: shall indicate the dots files path command = 'doxygen ' + app_config['doxygen_config'] shell.execute_command(command) # step 4. generate the lizard report # step 5. generate the statistics raw json file report = method_graph.generate_report(app_config)
def test_inject_config_entries(self): items = { 'SRC': '../name/workspace/src', 'INC': '../name/include', 'CALLER': 'YES' } app_config = {'doxygen_config': 'Doxygen'} config.inject(items, app_config)
def test_inject_config_entries(self): items = {'SRC':'../name/workspace/src', 'INC':'../name/include', 'CALLER':'YES'} app_config = {'doxygen_config':'Doxygen'} config.inject(items, app_config)