mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Fix path in plugin tests
This commit is contained in:
parent
e96c48bbba
commit
1a42bd8fe2
3 changed files with 12 additions and 6 deletions
|
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More;
|
||||
if (! -e "./test_check_disk") {
|
||||
if (! -e "./tests/test_check_disk") {
|
||||
plan skip_all => "./test_check_disk not compiled - please enable libtap library to test";
|
||||
}
|
||||
exec "./test_check_disk";
|
||||
exec "./tests/test_check_disk";
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ $res = NPTest->testCmd( "./check_snmp -H 127.0.0.1 -C public -p $port_snmp -o .1
|
|||
is($res->return_code, 1, "Test multiply RC + thresholds" );
|
||||
like($res->output, '/.*4.20.* | iso.3.6.1.4.1.8072.3.2.67.19=4.20+;1/', "Test multiply .1 output + thresholds" );
|
||||
|
||||
if (! -e "./test_check_snmp") {
|
||||
if (! -e "./tests/test_check_snmp") {
|
||||
plan skip_all => "./test_check_snmp not compiled - please enable libtap library to test";
|
||||
}
|
||||
exec "./test_check_snmp";
|
||||
exec "./tests/test_check_snmp";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#!/usr/bin/perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More;
|
||||
if (! -e "./test_check_swap") {
|
||||
if (! -e "./tests/test_check_swap") {
|
||||
plan skip_all => "./test_check_swap not compiled - please enable libtap library to test";
|
||||
}
|
||||
exec "./test_check_swap";
|
||||
exec "./tests/test_check_swap";
|
||||
|
|
|
|||
Loading…
Reference in a new issue