> Does anybody use cmockery with hudson or any other continuous
> integration server?
Yes, we use it here in a project in NetApp's Advanced Technology Group. We've modified cmockery to product JUnit-compatible XML reports, and cons'd up a test runner that walks a directory tree, runs all the unit-test executables it finds, and compiles the results into a JUnit-compatible <test_suites> XML report. It also can run a subset of the tests.
I've permission to release this code, but have yet to put the effort into getting it past our legal department's review. Unfortunately, to get cmockery working on LP64 platforms as well as the original ILP32 platform, we've had to make some tweaks to the API. Also, I've yet to test our changes on 32-bit and 64-bit Windows, although it's our intent to have our changes work on those platforms too. Is this code something you'd be interested in?
> Is there a C testing framework supported by a
> continuous integration server?
It's not too hard to cons up a JUnit-compatible report; see <http://ant.1045680.n5.nabble.com/schema-for-junit-xml-output-td1375274.html> for a description of the XML schema.
Have you considered using a C++ testing framework to test your C code? I think Google Test already outputs reports that Hudson can digest.
Best regards,
-Steve
--
Steve Byan <Steve...@netapp.com>
Member of Technical Staff
Network Appliance, Inc.
1601 Trapelo Road - Suite 16
Waltham, MA 02451
(781) 672-3853