From 795100ae5124915bb647a304d5dfe2ada2f44ab0 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Mon, 30 Jan 2006 16:10:50 +0000 Subject: Added libtap tests for utils.c library functions. Removed redundant test files git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1303 f882894a-f735-0410-b71e-b25c423dba1c --- doc/developer-guidelines.sgml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'doc/developer-guidelines.sgml') diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index 3c37e5c1..ad6f59e9 100644 --- a/doc/developer-guidelines.sgml +++ b/doc/developer-guidelines.sgml @@ -209,7 +209,7 @@ Notes: - start > end + start ≤ end start and ":" is not required if start=0 @@ -598,7 +598,7 @@ need to be fixed. As long as the return code is 0, it will be reported as "test -If you want a summary test, run: "cd plugins && perl -MTest::Harness -e 'runtests(@ARGV)' t/check_disk.t". +If you want a summary test, run: "cd plugins && prove t/check_disk.t". This runs the test in a summary format. @@ -612,9 +612,23 @@ link
Testing the C library functions -Will be looking at using libtap, which is utilised by the FreeBSD team. The output is -based on perl's TAP (Test Anything Protocol) format, so that Test::Harness will understand -results. This is still in planning stages. +Uses the libtap library, which gives +perl's TAP +(Test Anything Protocol) output. This is used by the FreeBSD team for their regression testing. + + + +To run tests using the libtap library, download from http://people.freebsd.org/~nik/public_distfiles/ +and compile. There is a problem with tap-1.01 +where pthread support doesn't appear to work +properly on non-FreeBSD systems. Compile with 'CPPFLAGS="-UHAVE_LIBPTHREAD" ./configure'. You do not need +to install. + + + +You then have to run the Nagios Plugins' configure with the --with-libtap-object=full_path to the compiled +tap.o file. +Then run "make" and "make test" to run all tests.
-- cgit v1.2.3