summaryrefslogtreecommitdiffstats
path: root/NPTest.pm
diff options
context:
space:
mode:
authorMonitoring Plugins Development Team <devel@monitoring-plugins.org>2014-01-18 08:40:24 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2014-01-19 19:18:47 (GMT)
commit63734f52ab1b4b2c17545b26fc41016d6bbd80bd (patch)
treedcd7aa3fd9a2a6a69a47d3a7e6a18d034426087a /NPTest.pm
parent9db763963f3993f923619a2147e4313b09f12134 (diff)
downloadmonitoring-plugins-63734f52ab1b4b2c17545b26fc41016d6bbd80bd.tar.gz
Project rename initial commit.
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
Diffstat (limited to 'NPTest.pm')
-rw-r--r--NPTest.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/NPTest.pm b/NPTest.pm
index 9b85617..ebc2602 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -1,7 +1,7 @@
1package NPTest; 1package NPTest;
2 2
3# 3#
4# Helper Functions for testing Nagios Plugins 4# Helper Functions for testing Monitoring Plugins
5# 5#
6 6
7require Exporter; 7require Exporter;
@@ -25,14 +25,14 @@ $VERSION = "1556."; # must be all one line, for MakeMaker
25 25
26=head1 NAME 26=head1 NAME
27 27
28NPTest - Simplify the testing of Nagios Plugins 28NPTest - Simplify the testing of Monitoring Plugins
29 29
30=head1 DESCRIPTION 30=head1 DESCRIPTION
31 31
32This modules provides convenience functions to assist in the testing 32This modules provides convenience functions to assist in the testing
33of Nagios Plugins, making the testing code easier to read and write; 33of Monitoring Plugins, making the testing code easier to read and write;
34hopefully encouraging the development of a more complete test suite for 34hopefully encouraging the development of a more complete test suite for
35the Nagios Plugins. It is based on the patterns of testing seen in the 35the Monitoring Plugins. It is based on the patterns of testing seen in the
361.4.0 release, and continues to use the L<Test> module as the basis of 361.4.0 release, and continues to use the L<Test> module as the basis of
37testing. 37testing.
38 38
@@ -92,7 +92,7 @@ Testing of results would be done in your test script, not in this module.
92This function is obsolete. Use C<testCmd()> instead. 92This function is obsolete. Use C<testCmd()> instead.
93 93
94This function attempts to encompass the majority of test styles used 94This function attempts to encompass the majority of test styles used
95in testing Nagios Plugins. As each plug-in is a separate command, the 95in testing Monitoring Plugins. As each plug-in is a separate command, the
96typical tests we wish to perform are against the exit status of the 96typical tests we wish to perform are against the exit status of the
97command and the output (if any) it generated. Simplifying these tests 97command and the output (if any) it generated. Simplifying these tests
98into a single function call, makes the test harness easier to read and 98into a single function call, makes the test harness easier to read and
@@ -132,7 +132,7 @@ of either C<Test::ok(...)> or C<Test::skip(...)>, so remember this
132when counting the number of tests to place in the C<Test::plan(...)> 132when counting the number of tests to place in the C<Test::plan(...)>
133call. 133call.
134 134
135Many Nagios Plugins test network services, some of which may not be 135Many Monitoring Plugins test network services, some of which may not be
136present on all systems. To cater for this, C<checkCmd(...)> allows the 136present on all systems. To cater for this, C<checkCmd(...)> allows the
137tester to define exceptions based on the command's exit status. These 137tester to define exceptions based on the command's exit status. These
138exceptions are provided to skip tests if the test case developer 138exceptions are provided to skip tests if the test case developer
@@ -199,7 +199,7 @@ Copyright (c) 2005 Peter Bray. All rights reserved.
199 199
200This package is free software and is provided "as is" without express 200This package is free software and is provided "as is" without express
201or implied warranty. It may be used, redistributed and/or modified 201or implied warranty. It may be used, redistributed and/or modified
202under the same terms as the Nagios Plugins release. 202under the same terms as the Monitoring Plugins release.
203 203
204=cut 204=cut
205 205