GitHub

How do I prove the C routines work?

We use libtap to test C routines that are in lib/utils_*.c. The tests are in lib/tests/test_*.c.

The latest libtap version is currently 1.01. However, there is a bug with the thread implementation. To workaround, run:

$ CPPFLAGS="-UHAVE_LIBPTHREAD" ./configure
$ make
$ make check
$ make install

Now when you run the Monitoring Plugins ./configure script, it should find the libtap library and compile the tests and run them when you run make test.

Update: These days, the Monitoring Plugins tarball includes a copy of libtap which is used if you run ./configure --enable-libtap.