matt11235 wrote:There's a wiki entry for
Unit_Testing but it seems quite barebones.
Has anyone here set up unit tests for their OS that runs through a CI service and reports on Git commits? I don't really know the best way to go about it.
While the actual unit tests would be OS specific....
I can recommend CMake/CTest & CDash
see
www.cmake.org
Example live site: Visualization Toolkit (VTK) CI Dashboard --
https://open.cdash.org/index.php?project=VTK
CMake to build your code/unit tests
CTest to run the tests (including downloading latest git repos, patching, etc...)
CDash to act as a CI dashboard of said tests...
If you take the time to work with it - it can be extremely powerful... for example
I have added clang/llvm static analysis of code and post metrics to CDash
Probably the trickiest part is setting QEMU for example - to save serial output to a file and to actually auto shutdown after N seconds or system reset (there is a thread in the forum about this...)
Altogether these are pretty damn good
cheers