2008-07-11

C-test libraries

  • CuTest was the simplest library I saw. It is very small (a single .c and .h file), easy to deploy, and compiles on almost any compiler. The README has more documentation and some sample test code.
  • Check is a much more sophisticated framework. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. However, the interface is still fairly simple to use. Documentation and tutorial are available here.
  • Some of the others I found were Gnu AutoInit and cUnit but both seemed more convoluted to use and harder to deploy since both require the use of glib (Gnome Library) which essentially means they will only deploy on Linux.

No comments: