[Baypiggies] C++ parsing in Python for testing backward compatibility

William Deegan bdbaddog at gmail.com
Fri Feb 29 06:47:20 CET 2008


On Thu, Feb 28, 2008 at 9:04 PM, Dennis O'Brien <DOBrien at leapfrog.com>

> Hi,
> I hope this is on-topic.
> I have a project (C++ code) that will soon be complete, or at least,
> 1.0.  Other developers will be using this API and library while
> development on 1.1, etc., continues.  All future releases of this
> library need to be backward compatible with games built against 1.0 of
> the API.
> Our team has a wide range of C++ expertise, and we've already discovered
> some subtle ways to break backward compatiliby in C++.
> Does anyone know of a solution using Python to test backward
> compatibility of C++ classes in header files?

Not necessarily a python solution, but..
Can you use cppunit to craft the suite of tests?
Also I think boost has a c++ parser, and there's a python layer for boost.
(Though I'm not sure it hooks into the boost c++ parser).


> The closest thing I've found for parsing C++ code in Python is GCC-XML.
> http://www.gccxml.org/HTML/Index.html
> It looks like a good start for building a compatibility tester, but
> before I go down this road, I thought it would be wise to ask people
> wiser than myself.
> Ultimately I'd like to integrate this with Buildbot so that every commit
> is tested for compatibility with the 1.0 API.
> thanks,
> Dennis
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/baypiggies/attachments/20080228/4da446c1/attachment.htm 

More information about the Baypiggies mailing list