Fix path in plugin tests

This commit is contained in:
Lorenz Kästle 2026-03-19 12:35:29 +01:00
parent e96c48bbba
commit 1a42bd8fe2
3 changed files with 12 additions and 6 deletions

View file

@ -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";

View file

@ -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";

View file

@ -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";