I've been doing C programming for a long time, and I've always rolled my own test <air_quotes>framework</air_quotes> for doing unit and regression tests. For the project I'm on now at my new employer, we'd like something a little more structured, but still hopefully lightweight enough that we don't spend half our time maintaining the test cases.
So, I was wondering if anyone uses, has used, or is familiar with a testing framework that I can integrate into our library, and eventually, the applications that sit on top of the library. The idea is that, as you're developing the code, you write test cases as functions in the same .c file, add them into the "bag of test cases" for that module, and then you can exercise those tests automatically after nightly builds, or run specific ones any time thereafter. Maybe even better would be some kind of system for passing in arbitrary sets of test data from flat text files and/or command line params to the test driver.
Any ideas?