gnumaniacs/netsniff-ng — Issue #12: Evaluate test frameworks
Author: eroullit
Created: 2011-10-25 10:57:26+00:00
State: open

Test framework would allow us to quickly write some tests to perform sanity checks.
Such tests would be very useful to spot regressions and could be also used to validate a release.

For now, I see two serious possibilty:
* Ctest (http://www.vtk.org/Wiki/CMake_Testing_With_CTest)
* Shareness (https://github.com/mlafeldt/Sharness)

Ctest integrates nicely with CMake and it is a very powerful tool.
By writing small test programs, specific functions can be isolated and fully tested.

Shareness has simplicity on its side and would be an extra tool to integrate. It has a clear output syntax (TAP) and it very efficient to test actions on larger scale.

Maybe the two can be combined to cover specific testing and more generic testing