Some small steps to add testing infrastructure to close Issue #11:
For the tests to run Check needs to be installed in your OS or vagrant.
Tests should be written in the $(ROOT)/tests/ directory using the check syntax.
Additional info can be found reading the man page:
# man checkmk
Also, tests can be coded directly in C in $(ROOT)/tests/ directory, no problem with that. I plan to add a sample shortly, but if you do it before me and the Makefile is unable to compile them, please open an issue and I'll check.
Test samples are fairly inconsequential :)
The Makefile doesn't run the tests, this has to be done manually or via CI running the binaries compiled by the Makefile in $(ROOT)/tests/ directory. They can be identified by the .run extension. @zachflower can you add them to Travis CI?
Some small steps to add testing infrastructure to close Issue #11: