aboutsummaryrefslogtreecommitdiff
path: root/plugins/t/check_ntp.t
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2014-06-24 15:07:44 +0200
committerGravatar Sven Nierlein <sven@nierlein.de> 2014-06-24 15:07:44 +0200
commitb35d12e931c6d330291f5c5f4847c33a122c63cb (patch)
tree65a773b10464cf527a6402e207f92ac1118f2542 /plugins/t/check_ntp.t
parent580bdd286379f6d8b678b9a7472572cfa2684aaf (diff)
downloadmonitoring-plugins-b35d12e931c6d330291f5c5f4847c33a122c63cb.tar.gz
tests: always build and test on travis
also make test is now working on travis-ci Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins/t/check_ntp.t')
-rw-r--r--plugins/t/check_ntp.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/t/check_ntp.t b/plugins/t/check_ntp.t
index 3eee6e17..74d890fa 100644
--- a/plugins/t/check_ntp.t
+++ b/plugins/t/check_ntp.t
@@ -23,12 +23,12 @@ my $no_ntp_service = getTestParameter( "NP_NO_NTP_SERVICE",
"A host NOT providing the NTP service",
"localhost" );
-my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE",
+my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE",
"The hostname of system not responsive to network requests",
"10.0.0.1" );
-my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID",
- "An invalid (not known to DNS) hostname",
+my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID",
+ "An invalid (not known to DNS) hostname",
"nosuchhost");
my $ntp_okmatch1 = '/^NTP\sOK:\sOffset\s-?[0-9]+(\.[0-9]+)?(e-[0-9]{2})?\ssecs/';
@@ -43,7 +43,7 @@ my $ntp_nosuchhost = '/^check_ntp.*: Invalid hostname/address - ' . $hostname_in
foreach my $plugin (@PLUGINS1) {
SKIP: {
- skip "No NTP server defined", 1 unless $ntp_service;
+ skip "No NTP server defined", 6 unless $ntp_service;
$res = NPTest->testCmd(
"./$plugin -H $ntp_service -w 1000 -c 2000"
);
@@ -88,7 +88,7 @@ foreach my $plugin (@PLUGINS1) {
foreach my $plugin (@PLUGINS2) {
SKIP: {
- skip "No NTP server defined", 1 unless $ntp_service;
+ skip "No NTP server defined", 6 unless $ntp_service;
$res = NPTest->testCmd(
"./$plugin -H $ntp_service -w 1000 -c 2000 -W 20 -C 21 -j 100000 -k 200000 -m 1: -n 0:"
);