1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
Description: Add test script directory perl search path.
To fix CVE-2016-1238 . has been removed from @INC.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://github.com/flackem/check_multi/pull/15
--- a/plugins/t/10_check_multi.t.in
+++ b/plugins/t/10_check_multi.t.in
@@ -5,6 +5,8 @@
#
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/20_check_multi_macros.t.in
+++ b/plugins/t/20_check_multi_macros.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/30_check_multi_perfdata.t.in
+++ b/plugins/t/30_check_multi_perfdata.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/50_check_multi_checkresults.t.in
+++ b/plugins/t/50_check_multi_checkresults.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/60_check_multi_feeds_passive.t.in
+++ b/plugins/t/60_check_multi_feeds_passive.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/70_check_multi_statusdat.t.in
+++ b/plugins/t/70_check_multi_statusdat.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/80_check_multi_livestatus.t.in
+++ b/plugins/t/80_check_multi_livestatus.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/90_extreme_tags.t.in
+++ b/plugins/t/90_extreme_tags.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
--- a/plugins/t/91_extreme_timeout.t.in
+++ b/plugins/t/91_extreme_timeout.t.in
@@ -6,6 +6,8 @@
use strict;
use Test::More;
+use FindBin;
+use lib "$FindBin::Bin";
use NPTest;
use testopts;
|