diff --git a/etg/_core.py b/etg/_core.py index 3a5cb315..5a60eadb 100644 --- a/etg/_core.py +++ b/etg/_core.py @@ -32,6 +32,7 @@ ITEMS = [ ] INCLUDES = [ # base and core stuff 'defs', + 'debug', 'object', 'wxpy_api', 'arrayholder', diff --git a/etg/debug.py b/etg/debug.py new file mode 100644 index 00000000..fd8be5fb --- /dev/null +++ b/etg/debug.py @@ -0,0 +1,52 @@ +#--------------------------------------------------------------------------- +# Name: etg/debug.py +# Author: Robin Dunn +# +# Created: 21-Dec-2012 +# Copyright: (c) 2012 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_core" +NAME = "debug" # Base name of the file to generate to for this script +DOCSTRING = "" + +# The classes and/or the basename of the Doxygen XML files to be processed by +# this script. +ITEMS = [ "debug_8h.xml", + ] + +#--------------------------------------------------------------------------- + +def run(): + # Parse the XML file(s) building a collection of Extractor objects + module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING) + etgtools.parseDoxyXML(module, ITEMS) + + #----------------------------------------------------------------- + # Tweak the parsed meta objects in the module object as needed for + # customizing the generated code and docstrings. + + # We only need a couple items from this interface file, so ignore + # everythign and just enable the ones we want. + for item in module: + item.ignore() + + module.find('wxAbort').ignore(False) + module.find('wxTrap').ignore(False) + module.find('wxDisableAsserts').ignore(False) + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/unittests/test_debug.py b/unittests/test_debug.py new file mode 100644 index 00000000..e14376a8 --- /dev/null +++ b/unittests/test_debug.py @@ -0,0 +1,16 @@ +import imp_unittest, unittest +import wtc +import wx + +#--------------------------------------------------------------------------- + +class debug_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_debug1(self): + self.fail("Unit tests for debug not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main()