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