From 1a42bd8fe2c049ec9e1b923c64f7b9eb7e940089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:35:29 +0100 Subject: [PATCH] Fix path in plugin tests --- plugins/tests/check_disk.t | 7 +++++-- plugins/tests/check_snmp.t | 4 ++-- plugins/tests/check_swap.t | 7 +++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/plugins/tests/check_disk.t b/plugins/tests/check_disk.t index 56354650..d6099bb3 100755 --- a/plugins/tests/check_disk.t +++ b/plugins/tests/check_disk.t @@ -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"; diff --git a/plugins/tests/check_snmp.t b/plugins/tests/check_snmp.t index c9b90c0f..2bdbfed1 100755 --- a/plugins/tests/check_snmp.t +++ b/plugins/tests/check_snmp.t @@ -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"; diff --git a/plugins/tests/check_swap.t b/plugins/tests/check_swap.t index 826fae01..b3768d7f 100755 --- a/plugins/tests/check_swap.t +++ b/plugins/tests/check_swap.t @@ -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";