This is an RFC for something I have needed for a while. As you noticed, the fast pace of the driver also introduces unintended regressions. Many code changes are incredibly hard to test however since they sometimes rely on specific hardware, a specific setup or even timing.
Many bugs can be found however by good old unit-testing. This RFC contains a patch series that adds unittesting to the driver. As shown in the example patches 4 and 5, this way we can check the behaviour of internal function (and even the X server API) to be consistent over time. If something breaks, make check will tell us. Patch 3 has more details on how it works. If nothing else, writing a test usually at least forces one to rethink the API of a particular function, think of the side-effects and much more. Cheers, Peter ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
