...
Unit tests are run via the 'make test' target and are stored the source tree in files named test_XXX where XXX is a particular unit to be tested. Each of these should generate a standalone executable to execute the unit test. Success is indicated by exit(0) and failure by exit(X) where X != 0. Appropriate error messages should be printed to stderr on error and otherwise the test should be silent. Debugging messages should depend on optional command line arguments.
For examples, please see:
- libinktomi++/test_*